bcgov / MFIN-Data-Catalogue

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

Open david-fong-bc opened 1 month ago

david-fong-bc commented 1 month ago

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.

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 anyway Cancel

Further, related enhancements:

Estimated level of effort

Definition of done (DoD)

Testing

This feature requires manual testing

  1. Create a saved search with any name.
  2. Attempt to create a saved search with the same name used in step 1.
  3. 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.
  4. Check that the action buttons in the prompt do what they are supposed to do.
NicoledeGreef commented 1 month ago

After our initial discussion on Oct 2, the ask is to investigate further and identify possible improvements.