-
Notifications
You must be signed in to change notification settings - Fork 37
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
Add support to filter out folders and tasks by assignment #622
base: develop
Are you sure you want to change the base?
Add support to filter out folders and tasks by assignment #622
Conversation
@@ -49,12 +49,16 @@ def __init__(self, controller, parent): | |||
folders_filter_text = PlaceholderLineEdit(folders_wrapper) | |||
folders_filter_text.setPlaceholderText("Filter folders...") | |||
|
|||
show_only_assignments = QtWidgets.QCheckBox("Show only assignments") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think this wording is a bit weird. It's not showing assignments, it's still showing folder and tasks - but just filters to those assigned to you.
This would already be clearer "Show only assigned folders"
Even more explicit if it refers to assignments to "You" maybe - although that may be just me overthinking this and could be easily added in a tooltip.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wrote it like this knowing that I was going to use the same filter to filter out tasks, does that now change your thinking about the wording too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or I could change it to Show only my assignments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if anyone else's mind trips over this so I'll leave to anyone else to confirm from a UX perspective what they like instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I do prefer Show only my assignments
tbh
|
…hey don't get applied on all FoldersWidget/TasksWidget uses
…com/fabiaserra/ayon-core into feature/filter_launcher_assignments
If a child folder is assigned (i.e. /season/seq/sh010) this | ||
function will also return all the parent entities on the | ||
hierarchy (i.e. ["/season", "/season/seq"]) as those are | ||
implicitly assigned to the user as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand reasoning as to why we might want to include parents for filtering for filtering logic where we still want to access the child. But the wording here is a bit weird since I don't understand why "implicitly" it means the parent folder is also assigned to the user - that seems odd and not the case in the frontend?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you suggest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest just explaining it as:
If a child folder is assigned (i.e. /season/seq/sh010) this
function will also return all the parent entities on the
hierarchy (i.e. ["/season", "/season/seq"]) because it
contains children folders assigned to the user.
But maybe I'm misinterpreting why it's returning the parent entities?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand both the same way but I will change it to your phrasing
show_only_my_assignments = QtWidgets.QCheckBox( | ||
"Show only my assignments" | ||
) | ||
show_only_my_assignments.setChecked(True) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Admittedly now it starts feeling weird there's so much duplicated code for this hierarchy widget that also allows filtering across the codebase - but hey, we likely have good reasons for it :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah... I felt a bit like playing whac-a-mole trying to add it on all the places
Oh yeah, I have fixed that on my fork, let me push it here as well EDIT: done here 6e0de41 |
No reason really, we should probably just expose it as addon settings to let each studio choose their defaults |
The error vanished. Thanks. |
Good catch, but the reason is because I'm only calling the function |
Fixed here 6dde360 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog Description
This adds a toggle in the Launcher, Workfile Manager and a few other widgets that show a folder hierarchy to filter out the folders and tasks shown by whether the user has it assigned or not:
Launcher
With filter
Without filter
Creator
Workfile manager
Scene Inventory
Additional info
The next step would be to also filter out the tasks by whether they are assigned or notDone here 6187065Testing notes: