Uploaded image for project: 'mod-inventory'
  1. mod-inventory
  2. MODINV-588

Implement deduplication for Instances

    XMLWordPrintable

Details

    • Folijet Sprint 129, Folijet Sprint 130
    • 8
    • Folijet
    • Lotus R1 2022

    Description

      Currently instance id equals to record id, that adds some confusion. Need to implement approach to generate different UUIDs for these entities and at the same to prevent duplicates processing.

      The approach has been designed in scope of spike: MODDATAIMP-500  and needs the creation of new table for deduplication purposes. The working flow described in the diagrams below. Currently mod-inventory does not have a database schema and code to work with it, so need to add these capabilities in scope of current story. 

      Diagram of instance id generation logic:

      Class diagram:

      What needs to be done:

      1. Add/enable possibility for database schema changes

      2. Add db schema change, that includes creating of new mod-inventory database schema and new table records_instances

      3. Add new InstanceIdStorageService class and DAO layer for it, that calls newly added table records_instances

      4. Modify CreateInstanceHandler to call new InstanceIdStorageService for checking UUIDs.

      5. Cover with tests.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Aivar Iusupov Aivar Iusupov
                Nosko Serhii Nosko
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases