-
Notifications
You must be signed in to change notification settings - Fork 31
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
Filter owners and groups dropdown lists #592
Filter owners and groups dropdown lists #592
Conversation
This pull request has been mentioned on Image.sc Forum. There might be relevant details there: https://forum.image.sc/t/omero-figure-filtering-users-by-group/101933/2 |
@JensWendt would you be able to give this a test? Thanks! |
Hey @will-moore yes I will. Promised. |
eeeehhhmm, stupid question, but.... where do I find |
@will-moore *Bump |
@JensWendt Do you have a local omero-web dev environment? I thought you would have done for #589 ?
That will compile the JS and copy it to the installed app |
Okay, that is what I lowkey feared :/ |
I tried it, filtering figures on the production server is much smoother. After File → Open If I look to filter per User, it lists all users of my OMERO. That's a lot, but expected (there's no filter on the group yet) ✅ (no change) If I look to filter per Group, it only shows me the group I'm part of ✅ (change for admin user) After filtering per Group, I now only see in Users the users of that group. ✅ (change for all) As an admin, if I want to check a figure from a group I'm not part of, I have for the Users to select first "Show all". Then I would see all groups listed. This PR makes it less intuitive for admins to search for a figure of a group (is it an issue? i don't know) 🟧 Could the groups be listed for admins like on the main OMERO.web page ? Group you belong to first, then all groups? |
@Tom-TBT - Thanks for testing. We don't have info in hand about which groups an Admin (or anyone else) is actually in. We only know which groups and owners are assigned to the list of Figures, so it's not so easy to replicate the webclient behaviour here. |
Ah - my bad, @Tom-TBT. I was testing with Admin as But even with this fix, I still don't have the info on Admin status of group-membership status to know which groups I'm a member of and this is probably out of scope for this PR. |
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.
@will-moore I believe what @Tom-TBT means is that when you come in to Figure first time as an admin (NOT root, but admin), you will see the following empty canvas. I do not think this is a mild or acceptable change. I will be hitting the below every time in a workshop, as my user is always an admin. imho this should be fixed.
Edit: sorry, see comment #592 (comment) below.
This PR is not changing the behaviour of the workflow as I thought it would. The reason I was seeing the empty canvas is that the dialog always only showed your own
figures by default, and my user did not have any own figures.
@will-moore sorry, I realized the comment #592 (review) needs to be modified. I am seeing as admin an empty canvas, because I have myself no figures. If I create a figure which belongs to me (user-6 which is an admin) I can see that figure and nothing else. I will never see any other figure unless I figure out that I have to click A different thing is also the order of columns -> Edit: At this stage, I would suggest that @JensWendt gets a chance to test the behaviour. |
After @will-moore clarified and we tested that actually, before this PR as well as with this PR, you only ever see your own figures by default when you come to the menu in question for the first time (does not matter if you are admin or not), I am much more positive about the PR. |
I've updated the PR description above to clarify the changes in behaviour and also improved the Files dialog to show the current filtering status more clearly (see new screenshots above) |
I don't think the admin scenario I mentioned is needed very often, so I'm okay without it. However, I revisited the issue, and the way groups are initially filtered seems problematic to me. From the description:
If I understand correctly, the PI won't see the group listed as a filter if they don't have any Figures in it (e.g., all Figures belong to the students). This makes the described workflow inaccurate.
True, but wouldn’t it be worth retrieving it?
I haven't dived into the logic of the file filtering so I don't know how many changes that implies. |
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.
This PR is still an improvement IMO.
I concur. After studying it repeatedly, and now when the indication what is being filtered on is implemented (e.g. in the column header, the selection Owner
-> user-6
is indicated once you selected filtering for user-6
) the PR is a great improvement for my workflows.
I think the biggest say now should come from @JensWendt as we are at the stage of imagining
somebody elses problems/workflows which can be tricky.
Hello, First of all, thank you all a lot for writing and testing this change!!
Would that mean, that a user who is in 2 of possible dozens of groups will see all users from all groups in that dropdown menu? If so, that is a change to the current status, where you just see users listed which have a Figure in groups you belong to.
I agree with Tom here, that this is not good/intuitive for two important use cases.
I agree with Toms proposed workflow, as the most likely one for everyday use-cases.
I also like that The issue @pwalczysko raised with
is a valid point, but a very minor nuisance in my opinion. If it can get changed easily, fine, if not, don't bother. As I don't have a dev setup for Figure, is there a way I can clone the PR branch and |
@JensWendt Did you get my e-mail with testing instructions on our merge-ci server? |
@JensWendt There is NO change to the initial filtering.
No - There is no change here. You will only see figures listed that you can access. The Groups and Owners menus are the Groups and Owners of that list of figures which you can see, so they must belong to groups that you are a member of (unless you are an Admin and can see all Figures).
This is not necessary. If you have NO figures, but other users do (and you can access those figure) then you simply need to switch the Owner filter to a different user (or to "All users") and you will see their figures. When I said "The Owner drop-down menu initially contains All users" I mean "All Owners of figures you can see". If you can
Then you should see the changes when you refresh the figure app. I'm going to make these changes...
|
Made a few changes and now deployed on merge-ci for testing. I also updated the description with the new behaviour. |
Thank you Will. I prefer the current version with no filtering on the groups. |
See https://forum.image.sc/t/omero-figure-filtering-users-by-group/101933
When you filter the File > Open list by a Group, the owners list is also filtered to only show Owners within that Group.
Also, the columns now show the current status of Filtering:
This PR changes the display of the Owners menu in the File choose dialog. It does not change the actual behaviour of filtering Files.
To clarify the changes in this PR, I'll compare the behaviour BEFORE and AFTER...
NB: The Groups and Owners menus are only populated based on the Groups and Owners of the Figures you can access (that are loaded in the Files dialog). They are not generated based on Groups and Owners listed from OMERO. We also have no info on who is an Admin, so all users will get the same behaviour.
BEFORE:
AFTER:
Initially the default filtering is to filter by Owner = YOU and ALL Groups. (No Change)
The Owner drop-down menu initially contains All users, since we are filtering by ALL groups (No Change). The Groups menu also shows ALL groups that contain figures (No Change)
Now, when you filter by Group, the Owners menu only shows users who own figures in that Group.
To find Figures that belong to another user, you can directly filter by that Owner (No Change), or filter by Group to reduce the number of Owners, then filter by Owner.
If someone (E.g. a PI) wants to find figures belonging to a member of his/her Group, they can filter first by that Group, then choose to filter by Owner (which now ONLY shows owners in the selected Group). Previously this owner list still listed ALL owners.