Institution CRUD: Disallow Delete When in Use
Description
Environment
None
Potential Workaround
None
is blocked by
is cloned by
Checklist
hideTestRail: Results
Activity
Show:
Zak Burke April 26, 2018 at 8:19 PM
The backend will send a 400 if we attempt to delete an in-use item, and thanks to awesome work by @md331, the ControlledVocab
component will catch that and display a nice error message.
Done
Created March 24, 2018 at 10:08 AM
Updated June 7, 2018 at 12:41 PM
Resolved May 15, 2018 at 7:12 PM
TestRail: Cases
TestRail: Runs
User story:
As an administrator who is managing FOLIO institutions, I should not be able to delete an institution that is in use by one or more location record
Scenarios:
Scenario CB: Disabling the delete button, while better from a UX perspective, isn't technically feasible.
Given a controlled vocab value is in use by one or more record
When delete button is clicked
Then:
No deletion will occur
Popup should display:
Header: Cannot delete institution
Body: This institution cannot be deleted, as it is in use by one or more record.
Buttons: Okay
Mockups:
https://drive.google.com/file/d/1T-kU4k5zALanLdUVXBvkTmI2xOcYANDp/view?usp=sharing
https://drive.google.com/file/d/1B1xPXwFx06XOzNKVgMqnYYO7yWDBEsjX/view?usp=sharing
https://drive.google.com/file/d/1yzsRF2XLXaVkx8BXAHUHv3KxjfWCdF7w/view?usp=sharing