Skip to content

Conversation

@tcnichol
Copy link
Contributor

I'll open this as a draft. Right now there are some things that still need fixing:

  1. The dataset name isn't appearing correctly in the modals
  2. After changing the roleType, the page does not reflect the new role until it is refreshed.
  3. There was an error on the backend where user_ids were being removed from an empty list - I fixed this but need to check and make sure that my fix isn't a hack.

Feel free to check it out and list any other problems that come up or design/UI issues.

@tcnichol tcnichol linked an issue Apr 10, 2023 that may be closed by this pull request
@tcnichol
Copy link
Contributor Author

Question. Right now when I change the role for either a user or a group, the page does not refresh and it still shows the old role. Is there a way to get the dataset page to refresh but to have the the sharing tab selected after the action completes?

@tcnichol tcnichol marked this pull request as ready for review April 11, 2023 18:51
@tcnichol tcnichol added this to the Sprint April 13 2023 milestone Apr 11, 2023
@tcnichol tcnichol self-assigned this Apr 13, 2023
for u in group.users:
auth_db.user_ids.remove(u.user.email)
if u.user.email in auth_db.user_ids:
auth_db.user_ids.remove(u.user.email)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can probably stay for now, but it really indicates an issue with the group/user auth maintenance as there is a mismatch between what users are in the group and what users have permission in the auth record. not sure if you encountered this from just old records from db or a leaky endpoint somewhere however.

@max-zilla max-zilla merged commit 72572db into main Apr 13, 2023
@max-zilla max-zilla deleted the 403-implement-role-change-on-shared-tab branch April 13, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Implement Role Change on Shared Tab

3 participants