The Finance Data Catalogue enables users to discover data holdings at the BC Ministry of Finance and offers information and functionality that benefits consumers of data for business purposes. The product is built using Drupal and adheres to the Government of BC's Core Administrative and Descriptive etadata Standard.
Other
6
stars
0
forks
source link
Warn users about creation of a new saved search when they already have one with the same label, and allow overwriting the existing ones #545
As a general user of the saved searches feature, I'd like to avoid confusion from having multiple saved searches with the same label, and be able to overwrite a previous saved search when trying to save a new one with the same name (effectively being able to edit existing saved searches).
This feature supports the following requirements
Additional context
Proposed solution
Upon clicking the "Save search" button, if the label of the proposed saved search is the same as that of any of the user's already-existing saved searches, give the user a prompt to overwrite/replace one of those already-existing saved searches, or create a new one with the same name, or cancel the operation. Ex.
You already have existing saved searches with the same label. What would you like to do?
existing search
overwrite?
\<link to saved search that opens in new tab>
Overwrite
\<link to saved search that opens in new tab>
Overwrite
Create a new one anywayCancel
Further, related enhancements:
When a user opens one of their saved searches, the input for entering the label for a new saved search is automatically populated with the label of the opened saved search (the current behaviour seems to be to automatically populate with the text of the search query).
Inform the user in the edit page for a saved search that they can effectively overwrite the search parameters of that saved search when requesting to save a new search with the same label.
Add documentation for the implemented feature.
Estimated level of effort
3 days
Definition of done (DoD)
[ ] The proposed solution is implemented, or an alternative design that addresses the same user story.
Testing
This feature requires manual testing
Create a saved search with any name.
Attempt to create a saved search with the same name used in step 1.
Check that the user is prompted to overwrite one of their existing saved search with the same label, or create a new one with the same label anyway, or to cancel the operation.
Check that the action buttons in the prompt do what they are supposed to do.
User story
As a general user of the saved searches feature, I'd like to avoid confusion from having multiple saved searches with the same label, and be able to overwrite a previous saved search when trying to save a new one with the same name (effectively being able to edit existing saved searches).
This feature supports the following requirements
Additional context
Proposed solution
Upon clicking the "Save search" button, if the label of the proposed saved search is the same as that of any of the user's already-existing saved searches, give the user a prompt to overwrite/replace one of those already-existing saved searches, or create a new one with the same name, or cancel the operation. Ex.
Further, related enhancements:
When a user opens one of their saved searches, the input for entering the label for a new saved search is automatically populated with the label of the opened saved search (the current behaviour seems to be to automatically populate with the text of the search query).
Inform the user in the edit page for a saved search that they can effectively overwrite the search parameters of that saved search when requesting to save a new search with the same label.
Add documentation for the implemented feature.
Estimated level of effort
Definition of done (DoD)
Testing
This feature requires manual testing