-
Notifications
You must be signed in to change notification settings - Fork 0
Implement authorisation rules #1523 #1597
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
base: implement-base-authorisation-#1472
Are you sure you want to change the base?
Implement authorisation rules #1523 #1597
Conversation
…g items between systems
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
…o implement-authorisation-for-bypassing-rules-#1523
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## implement-base-authorisation-#1472 #1597 +/- ##
======================================================================
- Coverage 98.82% 98.66% -0.17%
======================================================================
Files 114 115 +1
Lines 21920 22728 +808
Branches 2512 2613 +101
======================================================================
+ Hits 21663 22425 +762
- Misses 256 302 +46
Partials 1 1 ☔ View full report in Codecov by Sentry. |
src/systems/__snapshots__/systemItemsDialog.component.test.tsx.snap
Outdated
Show resolved
Hide resolved
| const populateUsageStatuses = React.useCallback(() => { | ||
| const usageStatusId = | ||
| srcSystemTypeId === dstSystemTypeId || selectedRules?.length === 0 | ||
| ? undefined | ||
| : selectedRules?.[0]?.dst_usage_status?.id; | ||
|
|
||
| setUsageStatuses( | ||
| usageStatuses.map((usage_status) => { | ||
| return { | ||
| ...usage_status, | ||
| usage_status_id: | ||
| usageStatusId ?? | ||
| selectedItems.find((item) => item.id == usage_status.item_id) | ||
| ?.usage_status_id ?? | ||
| '', | ||
| }; | ||
| }) | ||
| ); | ||
| }, [ | ||
| dstSystemTypeId, | ||
| selectedItems, | ||
| selectedRules, | ||
| srcSystemTypeId, | ||
| usageStatuses, | ||
| ]); |
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.
This works well with the expected current data volume. Just a note: if usage statuses or selected items become large, this population step could weirdness when moving to the next step.
Not urgent, but something to keep an eye on.
|
Works well, just a few minor comments to address |
…union, and address other comments
Description
see #1472
Note this PR follows on from #1518 but does not need to wait on any PRs in ims-api or ldap
Testing instructions
Add a set up instructions describing how the reviewer should test the code
Agile board tracking
closes #1472