Uploaded image for project: 'mod-gobi'
  1. mod-gobi
  2. MODGOBI-77

Contributor-name-type is required for contributor added to POL

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.6.0
    • None
    • ACQ Sprint 67
    • 2
    • Thunderjet

    Description

      Purpose:

      Currently we've hardcoded the contributor-name-type to name: "Personal name" which is present in the inventory reference data (see MODORDERS-204). However, there's no guarantee that the reference data will be loaded/used by all tenants. As a result, we need to allow the tenant to specify which contributor-name-type they want to use when creating instances upon order placement.

      Approach

      contributor.json has 2 properties: contributor (any string) which is used by UI and contributorType (UUID of the type record) which is not in use. The MODORDERS-247 renames contributorType to contributorNameTypeId and makes it required.
      The existing contributor name types can be fetched from inventory-storage by calling GET /contributor-name-types

      User "Personal Name" by default. If it doesn't exist, use the first from the list of contributorNameTypes. If no contributorNameTypes exist, fail the request. This is consistent with other "lookups" in mod-gobi.

      Acceptance Criteria

      • The mapping logic is updated
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                KVupp Kruthi Vuppala
                piotr_kalashuk Piotr Kalashuk
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases