Uploaded image for project: 'stripes-smart-components'
  1. stripes-smart-components
  2. STSMACOM-227

Controlled Vocab Duplicate Issues: Handle server errors during item creation.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Template:
    • Sprint:
      EPAM-Veg Sprint 23, EPAM-Veg Sprint 24, EPAM-Veg Sprint 25, EPAM-Veg Sprint 26
    • Story Points:
      2
    • Development Team:
      Vega

      Description

      Overview:
      When a duplicate term is entered in controlled vocab CRUD component in Settings, the addition fails with a weird server error. This applies in e.g. Settings > Inventory > Holdings, Holdings type, and Settings > Inventory > Instance, Holdings, Item > Call number type and more (basically everywhere this component is used in both Inventory and User settings.

      This story will address fields outlined in the below bug. Additional stories will be created to address other fields.
      Steps to Reproduce:

      • Log into http://folio-snapshot.aws.indexdata.com as diku_admin
      • Go to Settings > Inventory > Holdings, Holdings type, and Settings > Inventory > Instance, Holdings, Item > Call number type
      • Create a new term with the same Name as an existing term

      Expected Results:
      The server will respond with the error code which will be handled on the UI

      Actual Results:
      The server responds with:
      duplicate key value violates unique constraint "loan_type_name_idx_unique": Key (lower(f_unaccent(jsonb ->> 'name'::text)))=(can circulate) already exists.

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Oleksandr_Antonenko Oleksandr
                Reporter:
                Oleksandr_Antonenko Oleksandr
                Tester Assignee:
                Khalilah Gambrell Khalilah Gambrell
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases