Uploaded image for project: 'mod-entities-links'
  1. mod-entities-links
  2. MODELINKS-123

Local Authority Files: Validate file creation

    XMLWordPrintable

Details

    • 3
    • Spitfire
    • Quesnelia (R1 2024)
    • TBD

    Description

      Purpose
      To have the ability to create local authority source files we should validate some field before creation and updating.

      Approach

      New parameter 'startNumber' for authority source file creation is presented 

      Implement AuthoritySourceFileHridManager:
       Validate source file during creation:
          - File have 'source' = 'local' and 'codes.size' != 1 -> throw exception
          - File have 'source' = 'local' and 'startNumber' = null. -> Set startValue = 1

       Validate source file during update:
         - Prevent user to update "start with" after file creation
         - Prevent user to update array "codes" (prefix) after file creation (Should be discussed with PO)

      Acceptance criteria

      • Covered by unit tests
      • Module documentation updated
      • Logging is well-defined

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                Shans Shans Kaluhin
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:

                  TestRail: Runs

                    TestRail: Cases