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

fix: Use the context version of usePermissions #1977

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

gkarat
Copy link
Contributor

@gkarat gkarat commented Aug 14, 2023

Follows up on #1963.

usePermissions is unstable and cause bugs in apps that import the InventoryTable module. This makes it stick to the RBAC context and guarantees that RD are not checked.

How to test

Try to run this PR together with any other app - Inventory consumer. Make sure Inventory and the apps are not crashing (that used to be the case when there was usePermissions version).

usePermissions is unstable and cause bugs in apps that import the
InventoryTable module. This makes it stick to the RBAC context and
guarantees that RD are not checked.
@gkarat gkarat added the bug Something isn't working label Aug 14, 2023
@gkarat gkarat self-assigned this Aug 14, 2023
@gkarat gkarat requested a review from a team as a code owner August 14, 2023 09:18
Copy link
Contributor

@Fewwy Fewwy left a comment

Choose a reason for hiding this comment

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

LGTM

@gkarat gkarat merged commit f75fc01 into RedHatInsights:master Aug 14, 2023
@gkarat gkarat deleted the fix-use-permissions-hook branch August 14, 2023 09:44
@gkarat
Copy link
Contributor Author

gkarat commented Aug 14, 2023

🎉 This PR is included in version 1.35.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants