-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I should be able to filter on workspaceMember = me #8016
Comments
/assign |
This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest |
assign me if sanjay is not working on this . |
i am not working on it . you (@ketanMehtaa )can work on it |
/oss.gg 1000 |
Thanks for opening an issue! It's live on oss.gg! |
This issue is already assigned to another person. Please find more issues here. |
1 similar comment
This issue is already assigned to another person. Please find more issues here. |
@sanjay-gangwar4410 please unassign yourself, if you are not working. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
/assign |
This issue is already assigned to another person. Please find more issues here. |
Some rubber ducking / notes:I need to add something like To do this, I think passing I think it would be good to wrap TODO - continuing here tomorrow: Is there any reason against wrapping all functions where resolveFilterValue is used with hooks to be able to use the In the long term I think the most elegant solution would be to call the Downside: That would be a bigger refactoring than I first thought. |
Thanks @eliasylonen! |
@eliasylonen We most probably shouldn't work at this abstraction level and instead focus on trying to turn every specific hard coded case into a generic record filter so that all this low-level generic logic isn't aware of anything we're doing above it. CURRENT_WORKSPACE_MEMBER is just something high level to indicate that we want to add a filter id on workspaceMember, which is something generic that can be stored as a filter like anything related to this in the future. We should work on something like an adapter that turns everything into a generic record filter |
I'll refactor filtering to work like this:
|
@lucasbordeau Filter value resolution in object filter component: Passing current workspace member id to the util function that generates the GraphQL query - I think a hook would be better? |
New branch based on feedback in PR #8950 and issue #8016 --------- Co-authored-by: ad-elias <[email protected]> Co-authored-by: Lucas Bordeau <[email protected]>
Context
In #7196 we introduce "variable filters" such as "today" or "in the future", in which the frontend dynamically replaces the value before throwing the query.
Current behavior
Desired behavior
We would like to introduce a "current user" option for workspaceMember relations, for example assignee on Tasks.
See how Linear is also doing it:
Figma
circle-dashed-x
no field-name
e.g no owner, no assignee...me
value withuser-circle
iconhttps://www.figma.com/design/xt8O9mFeLl46C5InWwoMrN/Twenty?node-id=43752-81861&node-type=instance&t=tFDldeynurqAJQpp-11
The text was updated successfully, but these errors were encountered: