-
Notifications
You must be signed in to change notification settings - Fork 26
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
STCOR-905: based on 'users-keycloak' interface use bl-users or users-keycloak for _self endpoint in useUserTenantPermissions #1556
Conversation
Bigtest Unit Test Results192 tests ±0 187 ✅ ±0 6s ⏱️ ±0s Results for commit c9fb762. ± Comparison against base commit 921f0ab. This pull request removes 194 and adds 192 tests. Note that renamed tests count towards both.
This pull request removes 5 skipped tests and adds 5 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Jest Unit Test Results 1 files ±0 55 suites - 2 1m 31s ⏱️ -1s Results for commit c9fb762. ± Comparison against base commit 921f0ab. This pull request removes 4 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Is this still a draft PR? |
Just wanted to change implementation of useUserTenantPermissions. |
Please fix lint issue. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look correct to me, but changing the hook's name is a breaking change. If the target is sunflower, that's OK (we know that release will contain breaking changes), but we should do that work in two phases:
- in stripes-core, export this hook by its old and new names
- in other repositories, refactor to the new name
- in stripes-core, remove the export of the old name
That avoids the need to merge PRs here and across the UI repositories at the same moment. If we go that route, how about a shorter name, e.g. useTenantPermissions
? Permissions don't exist outside the context of a user, so that part of the name feels redundant.
Alternatively, just leave the name as-is. That allows consumers of this hook (inventory, marc-authorities, quick-marc, and stripes-authority-components) to stay as-is, and ui-users can name its local hook whatever it wants to, even if it overlaps; because it isn't importing from stripes-core there isn't a naming conflict, even if it's confusing.
Also, lint :)
Let's choose the easiest way, leave it as is and go further. Developers can decide how to call their local hooks whatever they want :) |
Quality Gate passedIssues Measures |
Purpose
STCOR-905 - based on 'users-keycloak' interface use bl-users or users-keycloak for _self endpoint in useUserTenantPermissions #1556
Approach
Remove redundant hooks and make changes in useUserTenantPermissions