Uploaded image for project: 'mod-finance'
  1. mod-finance
  2. MODFIN-121

Return helpful and clear error code, when Group name already exist

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 88
    • Story Points:
      1
    • Development Team:
      Thunderjet

      Description

      Overview

      Need to support requirements from UIF-188 - Error message not helpful when saving group
      If we try to create Group with existing name storage module returns generic error, when name is unique.

      Approach

      Error code from storage level will be "uniqueRestrictionGroupNameError". Please recheck in MODFISTO-101
      In finance module already exist generic approach how to handle errors from storage level and return helpful error code org.folio.rest.util.HelperUtils#getErrorByCode if it exists in org.folio.rest.util.ErrorCodes

      Acceptance criteria

      Source code is changed
      Unit test updated
      API test updated

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                yauheni_kuzmianok Yauheni Kuzmianok
                Reporter:
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases