Uploaded image for project: 'mod-finance-storage'
  1. mod-finance-storage
  2. MODFISTO-124

Return helpful information when store Expense Class with name/code which already exist

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 6.0.0
    • None

    Description

      Purpose/Overview:
      Error message not helpful when saving expense class
      If we try to create "Expense class" with existing name or code, then exception is thrown from DB, where name is unique.

      Requirements/Scope:
      Unique codes are defined:
      1. "uniqueFieldExpenseClassNameError" for name
      2. "uniqueFieldExpenseClassCodeError" for code

      Approach:
      Take a look approach from https://issues.folio.org/browse/MODFISTO-101
      Main idea build string, which valid _org.folio.rest.jaxrs.model.Error _
      Catch unique exception and send in Error codes "uniqueFieldExpenseClassNameError" or "uniqueFieldExpenseClassCodeError"

      Acceptance criteria:
      Source code is changed
      Unit test updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases