Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-2377

Show a user-friendly message when deleting a pick list with 0 values which is assigned to a Supplementary Property

    XMLWordPrintable

Details

    • ERM Sprint 150
    • Bienenvolk
    • Nolana (R3 2022)
    • TBD

    Description

      In Settings, when attempting to delete a pick list which has 0 pick list values, and is in use on a supplementary property, a technical error message is displayed. Instead a user-friendly error message should be displayed.

      Steps to generate error:

      1. In Settings > Agreements > Pick lists, add a new pick list. Do not add any pick list values.
      2. In Settings > Agreements > Supplementary Properties, add a new supp prop with Type=Pick list or Pick list multi-select
      3. Go back to Settings > Agreements > Pick lists and delete the pick list. A callout is displayed with the message:

      org.hibernate.exception.ConstraintViolationException

      Instead the message should read:

      Error: Pick list picklist-name was not deleted. This is likely to be because it has been applied to one or more supplementary properties. To fix, remove the pick list from all supplementary properties, then try to delete the pick list again.

      Additional Information
      This follows on from ERM-2214

       

       

      Dev task breakdown

      I believe this should be as simple as adding a translation: 

      refdataCategory.deleteRefdataCategory.errorMessage: "<strong>Error</strong>: Pick list <strong>{label}</strong> was not deleted. This is likely to be because it has been applied to one or more supplementary properties. To fix, remove the pick list from all supplementary properties, then try to delete the pick list again."
      

      This is the relevant translation: https://github.com/folio-org/ui-agreements/blob/master/translations/ui-agreements/en.json#L727

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ostephens Owen Stephens
                gosguthorpe Gill Osguthorpe
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases