Skip to content

Conversation

@tcnichol
Copy link
Contributor

This should fix both sharing tab bugs.

The error for both changing the user role and the group role were that the wrong arguments were getting passed to the remove_dataset_user_role and remove_dataset_group_role methods. That was causing indexing on elasticsearch to fail. Now both should be fixed.

'allow' should not be sent in to remove dataset role, it is the wrong boolean
fixing the user role update the same way. elasticsearch needed to be passed in before other arguments, indexing was failing.
@tcnichol tcnichol requested a review from max-zilla as a code owner September 17, 2023 20:33
@tcnichol tcnichol linked an issue Sep 17, 2023 that may be closed by this pull request
@tcnichol tcnichol requested review from a team and longshuicy September 17, 2023 20:33
@tcnichol
Copy link
Contributor Author

I added some new tests for sharing a dataset with a user and changing the role, and sharing the dataset with a group and changing the role.

They should catch similar bugs in the future.

Copy link
Member

@longshuicy longshuicy left a comment

Choose a reason for hiding this comment

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

Work as expected. Approve

Copy link
Member

@ddey2 ddey2 left a comment

Choose a reason for hiding this comment

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

works. Thanks for adding the tests

@lmarini lmarini merged commit 2f110ca into main Sep 19, 2023
@lmarini lmarini deleted the 735-sharing-tab-bugs branch September 19, 2023 14:25
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.

Sharing tab bugs

5 participants