-
Notifications
You must be signed in to change notification settings - Fork 18
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
UIIN-2452: Enable/disable consortial holdings/item actions based on User permissions #2284
Merged
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
e9ff698
Consortial holdings acc
mariia-aloshyna f5c029c
UIIN-2410: Adjustments
mariia-aloshyna 4a08c0c
UIIN-2410: Add new hook
mariia-aloshyna 5dfcf0d
UIIN-2410: Add tests
mariia-aloshyna 188acc3
UIIN-2452: Disable buttons when member tenant does not have permissions
OleksandrHladchenko1 58f4cd4
UIIN-2410: Instance 3rd pane: Add consortial holdings/item accordion
mariia-aloshyna dc2e0d0
UIIN-2452: Add unit tests & switching affiliation when view holdings …
OleksandrHladchenko1 108f852
UIIN-2410: Fix tests
mariia-aloshyna 3f42476
Merge branch 'master' into UIIN-2410
mariia-aloshyna 9e1b138
UIIN-2452: Add switching affiliation when click on item barcode & Add…
OleksandrHladchenko1 872f7be
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 c8e3f29
UIIN-2452: Add behaviour for non-consortial tenant
OleksandrHladchenko1 f57ce13
Merge branch 'UIIN-2452' of https://github.com/folio-org/ui-inventory…
OleksandrHladchenko1 5726f06
UIIN-2452: Fix tests
OleksandrHladchenko1 d25021e
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 767a4a1
Update HoldingAccordion.js
OleksandrHladchenko1 5769fca
Update HoldingButtonsGroup.js
OleksandrHladchenko1 fc4b05a
UIIN-2452: Fix tests
OleksandrHladchenko1 1c5bcd1
Merge branch 'UIIN-2452' of https://github.com/folio-org/ui-inventory…
OleksandrHladchenko1 081f18b
Update HoldingsListMovement.js
OleksandrHladchenko1 60b4011
Update HoldingContainer.js
OleksandrHladchenko1 9c397c8
UIIN-2452: Add returning to the previous affiliation
OleksandrHladchenko1 483d77e
Merge branch 'UIIN-2452' of https://github.com/folio-org/ui-inventory…
OleksandrHladchenko1 7894483
UIIN-2452: Add tenantId to props validation
OleksandrHladchenko1 a7efac1
UIIN-2452: Add behaviour for non-consortial tenant
OleksandrHladchenko1 42f16f0
Fix some comments
mariia-aloshyna 22d2dc9
Fix perms handling
mariia-aloshyna ae50bd4
Merge branch 'master' into UIIN-2452
mariia-aloshyna 69396b4
Fix warnings
mariia-aloshyna 4244578
Adjust tests
mariia-aloshyna 39c34b5
Merge branch 'master' into UIIN-2452
mariia-aloshyna 27fc561
Fix tests
mariia-aloshyna 2398063
Merge remote-tracking branch 'origin/UIIN-2452' into UIIN-2452
mariia-aloshyna a603d03
UIIN-2452: Switch user affiliation using validateUser
OleksandrHladchenko1 b313553
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 e18e43c
Update HoldingAccordion.js
OleksandrHladchenko1 f72699c
Supress Add holding & Add item & View holdings buttons if user doesn'…
OleksandrHladchenko1 10a2e3a
Resolve conflicts
OleksandrHladchenko1 773e3c1
UIIN-2452: Fix comments & add unit tests
OleksandrHladchenko1 76a05f7
UIIN-2452: Fixes after review
OleksandrHladchenko1 4d4d213
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 355c482
UIIN-2452: Fix code smells
OleksandrHladchenko1 00589ea
Merge branch 'UIIN-2452' of https://github.com/folio-org/ui-inventory…
OleksandrHladchenko1 51f91bf
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 e81a420
Merge branch 'master' into UIIN-2452
OleksandrHladchenko1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix some comments
- Loading branch information
commit 42f16f012e0fa54037e867309006210cdf008a67
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think we shouldn't display elements if a user doesn't have permission. I guess it's a FOLIO pattern.
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.
Yep, that's the FOLIO UX I'm familiar with. I will follow up with the PO here as I see the story was written specifically with disabled elements, and I've seen similar stories in ui-users. We need to figure out if we are purposely abandoning that pattern or if this was just a goof.
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.
@zburke and @Dmytro-Melnyshyn This is a requirement for this story, but we discussed with PO that suppressing these buttons from a user instead of disabling them will make the page kinda less noisy and will free up more space. We decided to go with the disabled buttons in the main release and after further testing and feedback from users, we might end up hiding these buttons.
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.
Yes, I understand the story was written this way, but the point @Dmytro-Melnyshyn and I are making is that the story was written incorrectly. Given that we know the story was written incorrectly, why would deliberately do the wrong thing and add debt when we could just do it the right thing?