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

ACM-16020 Refactor multi-namespace self access checks [release-2.11] #4114

Open
wants to merge 1 commit into
base: release-2.11
Choose a base branch
from

Conversation

KevinFCormier
Copy link
Contributor

Previously, when a user could see a large number of namespaces, UI buttons could sometimes flap between enabled and disabled. This was because a failed network connection counted as no access. This PR makes a few improvements:

  • Self access checks across multiple namespaces are batched to avoid overwhelming the browser
  • Once a button becomes enabled, it will not become disabled until we confirm that there is no access in any namespace
  • Logic is centralized in a reusable hook to reduce code duplication for each button that uses this RBAC check

ACM-16020

Copy link

openshift-ci bot commented Nov 29, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: KevinFCormier

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

@KevinFCormier
Copy link
Contributor Author

/test unit-tests-sonarcloud

Copy link

sonarcloud bot commented Nov 29, 2024

@KevinFCormier
Copy link
Contributor Author

/cc @jeswanke

@openshift-ci openshift-ci bot requested a review from jeswanke November 29, 2024 18:44
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.

1 participant