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

Make sure nonexistent user group not change the permission of current admin permission #953

Merged

Conversation

DaoDaoNoCode
Copy link
Member

@DaoDaoNoCode DaoDaoNoCode commented Feb 14, 2023

Description

Closes #878
The reason is when a group is not found, an error will be thrown, which will break the whole check access loop. If we put the try-catch block inside the loop, the problem will be fixed.

How Has This Been Tested?

See the instructions in the issue, the same way to test it.

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@DaoDaoNoCode
Copy link
Member Author

/hold Waiting for an image built to deploy on the cluster to test.

@openshift-ci openshift-ci bot added the do-not-merge/hold This PR is hold for some reason label Feb 14, 2023
@DaoDaoNoCode
Copy link
Member Author

Verified, I can still see the settings as an RHODS admin (not cluster admin) and the error will prompt properly.
Screenshot 2023-02-14 at 3 14 52 PM

@DaoDaoNoCode
Copy link
Member Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold This PR is hold for some reason label Feb 14, 2023
Copy link
Contributor

@lucferbux lucferbux left a comment

Choose a reason for hiding this comment

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

Great catch!

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, lucferbux

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved label Mar 9, 2023
@openshift-merge-robot openshift-merge-robot merged commit a9513ae into opendatahub-io:main Mar 9, 2023
lucferbux pushed a commit to lucferbux/odh-dashboard that referenced this pull request Mar 13, 2023
bartoszmajsak pushed a commit to maistra/odh-dashboard that referenced this pull request Mar 30, 2023
strangiato pushed a commit to strangiato/odh-dashboard that referenced this pull request Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: RHODS Admins (Non-Cluster) Have Permission issues when a group is deleted in OCP
4 participants