Skip to content
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

chgrp owner not in group #212

Merged
merged 1 commit into from
Sep 11, 2020
Merged

Conversation

will-moore
Copy link
Member

Error reported at https://www.openmicroscopy.org/qa2/qa/feedback/29521/

We previously assumed that the owner of the data we're chgrp-ing is a member of the
group that the data starts in. But this may not be true (see workflow described on QA link).

To test:

  • Choose some data (P/D/I etc) that you want to move to a new user and group, where the user is not a member of the starting group.
  • Use $ omero chown username Dataset:1 to change the ownership
  • Login to webclient as an Admin, browse to the group showing data from "All Members"
  • Select the object(s) - see that the ownership has been switched to the target user (that isn't a member of the current group)
  • Choose chgrp...
  • You should see a list of the groups that the data owner is a member of (this failed before)
  • choose one, and move the data to that group as normal.

targetGroupIds are all the groups that the data owner belongs to.
If the data owner might not be a member of the group that the data is in
@mtbc
Copy link
Member

mtbc commented Sep 4, 2020

Ah yes, the "All Members" trick is useful. 👍

@will-moore will-moore added this to the 5.8.0 milestone Sep 7, 2020
@sbesson sbesson merged commit 3266e65 into ome:master Sep 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants