Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-1203

Agreement Resources Export contains duplicate resources and incorrect agreement line information

    XMLWordPrintable

Details

    • ERM Sprint 101
    • Bienenvolk
    • Q3 2020 Bug Fix

    Description

      Overview:
      Steps to Reproduce:

      1. Create an Agreement (Agreement A) and add a package to the agreement as an agreement line
      2. Create an Agreement (Agreement B) and add a single title from the same package to the agreement as an agreement line
      3. Open Agreement with the single title (Agreement B), navigate to "E-resources covered by this agreement" and click "Export as..." choosing "JSON"

      Expected Results:

      1. JSON exports with a resource with an agreementLine object included, and in the agreementLine object the agreementLine.id is for the agreement line attached to Agreement B

      Actual Results:

      1. JSON exports with a resource with an agreementLine object included, and in the agreementLine object the agreementLine.id is for the agreement line attached to Agreement A (the "package" agreement line

      Additional Information:
      Can recreate on Honeysuckle and Snapshot
      For each Agreement to which the same package is attached, an additional resource is added to the JSON export - one per agreement line for the package
      The KBART export is also affected but only noticeable if you have multiple agreements for the Package - this will lead the KBART export of the "title only" agreement resources to include the same resource repeated multiple times

      Attached JSON is based on example where there are two agreements for the package "Edward Elgar:Edward Elgar E-Book Archive in Business & Management, Economics and Finance:Nationallizenz" (uuid b844a663-443b-4723-a5ad-a914b3260f30) and one agreement for a title in that package "\"Institutions, industrial upgrading, and economic performance in Japan: the \"\"flying-geese\"\" paradigm of catch-up growth\" (uuid 2c91809a758bc28601758bc4cc5c0009).

      The export is for the agreement containing the single title, but you can see that the JSON contains the resource twice. In each case the Agreement Line UUID is incorrect and refers to AL for the package in the other two agreements

      URL:
      Interested parties:

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                ostephens Owen Stephens
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases