Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
None
Description
Purpose: We want all the controlled vocab CRUD lists to behave similarly to Patron Group CRUD.
Scenarios:
- Scenario
- Given the controlled vocab CRUD pages
- When displayed
- Then a column containing Number of <objects> (e.g. users, items etc) (the count of records assigned to Value X) should display, as shown in the below linked patron group CRUD mockups (see
UIU-266for more detailed test scenarios)
- Scenario
- Given the Number of assigned objects displaying
- When > 0
- Then:
- The count should be a link to the search results page in the related app
- The search results should be pre-filtered to only those using Value X
- Value X should be selected in the filter sidebar
- Scenario
- Given the controlled vocab CRUD pages
- When displayed
- Then a column labelled "Last updated" should display as shown in linked patron group CRUD mockups
- Scenario
- Given the controlled vocab CRUD pages
- When a controlled vocab value is created
- Then the Last updated column should be populated with, "<dateCreated> by <creatorLastName>, <creatorFirstName>" as shown in the mockups
- Scenario
- Given the controlled vocab CRUD pages
- When a controlled vocab value is edited
- Then the Last updated column should be populated with, "<dateEdited> by <editorLastName>, <editorFirstName>"
- Scenario
- Given a user does not have a First name specified
- When displayed in the Last updated column
- Then the comma between last and first name should not display
- Scenario
- Given the controlled vocab CRUD pages
- When User A is displayed in the Last updated column
- Then the name should be a link to User A record
- Scenario
- Given the dates displaying in the Last updated column
- When locale is changed in Settings > Organization > Language and localization
- Then the date format should update accordingly
- Scenario
- Given a value row in the controlled vocab table
- When displayed
- Then a delete button/icon should be displayed
- Scenario
- Given the Delete button/icon on controlled vocab pages
- When the value is in use by one or more record
Then the Delete button will be disabledThen the Delete button will not be disabled CB: Per discussion in roundup, this creates a performance issue
- Scenario
Given a disabled Delete buttonWhen hovered overThen hover text will appear: "<controlledVocabType> cannot be deleted when used by one or more <objectTypes>" (e.g. "Patron group cannot be deleted when used by one or more users")
- Scenario
Given the disabled Delete buttonWhen clickedNo deletion will occur and hover text will appear: "Patron group cannot be deleted when used by one or more users"
- Scenario CB: Adding this scenario mid-sprint per discussion with the tech team on roundup. Disabling the delete button, while better from a UX perspective, isn't technically feasible. MD: I've split this scenario out into
STCOM-237- Given a controlled vocab value is in use by one or more record
- When delete button is clicked
- Then:
- No deletion will occur and hover text will appear
- Popup should display:
- Header: Cannot delete <controlledVocabType>
- Body: This <controlledVocabType> cannot be deleted, as it is in use by one or more record.
- Buttons: Okay
- Scenario
- Given a controlled vocab value is NOT in use by one or more record
- When delete button/icon is clicked
- Then a window will pop up asking user to confirm the deletion or cancel the deletion as shown here: https://drive.google.com/file/d/0By8ccf5VV4EWZkRSVXc2cE1IbmM/view?usp=sharing
- Header: Delete <controlledVocabType>? CB: Please use sentence case, despite the title case used in the mock-ups
- Body: <valueName> will be removed from <controlledVocabType>.
- Buttons: Cancel, Delete
- Scenario
- Given the Delete button on the delete confirmation popup
- When clicked
- Then the value will be deleted and a confirmation will appear after the deletion has occurred reading, "The <controlledVocabType> <valueName> was successfully deleted." See https://drive.google.com/file/d/0By8ccf5VV4EWVTlzZFVaTExGLVU/view?usp=sharing
- Scenario
- Given the Cancel button on the delete confirmation window
- When clicked
- Then the value will not be deleted and the modal popup will close
- Scenario
- Given a controlled vocabulary value with no name specified (name is, for example, "Address type", "Patron group", "Material type")
- When save is attempted
- Then:
- Save is not allowed
- Validation message should display reading, "Please fill this in to continue"
- Scenario
- Given a controlled vocabulary value with no description specified
- When save is attempted
- Then save IS allowed (description should not be required)
Out of Scope:
-
- Undo functionality on delete confirmation
Mockups: These mockups are for patron group CRUD but we want to use the same pattern consistently for the other controlled vocab CRUD pages (e.g. Loan Types, Material Types, Address Types etc.)
https://drive.google.com/drive/folders/0By8ccf5VV4EWWjhNLTVkMmNQbW8
TestRail: Results
Attachments
Issue Links
- is blocked by
-
MODINVSTOR-71 Add FOLIO update date metadata to more records
-
- Closed
-
-
MODUSERS-63 Add FOLIO update date metadata to Address Types
-
- Closed
-
-
RMB-146 Add support for faceting on fields in arrays
-
- Closed
-
- relates to
-
STCOM-237 ControlledVocab should report prettier errors for failed deletes
-
- Closed
-
-
UIORG-55 Set Tenant Time Zone
-
- Closed
-
-
UIU-439 Settings: Inconsistent behavior when entering blank Patron Group
-
- Closed
-
-
STCOM-229 Fix Disabled IconButton/label-less Button Styling
-
- Closed
-
-
UIIN-105 Deletion of a Material Type requires a check to determine if it is in use
-
- Closed
-
-
UIIN-106 Deletion of a Loan Type requires a check to determine if it is in use
-
- Closed
-
-
UIORG-54 Institution CRUD UI v1
-
- Closed
-
-
UIU-264 CRUD Patron Groups column headers and icons
-
- Closed
-
-
UIU-265 CRUD Patron Groups add column for Last Updated
-
- Closed
-
-
UIU-266 CRUD Patron Groups add column for Number of Users
-
- Closed
-
-
UIU-364 Disable Delete button for Patron Group that is in use by one or more users
-
- Closed
-
-
UIU-367 Add confirmation for Patron Group Deletion
-
- Closed
-
-
UIU-431 Patron Group Delete Button Should Display Disabled When PG Is In Use
-
- Closed
-
-
UIU-438 Settings: Should not be able to enter blank Address Type
-
- Closed
-