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

In the case of a package harvested from GOKb/external source lacking key information about the package, log the issue and fail gracefully

    XMLWordPrintable

Details

    • ERM Sprint 127, ERM Sprint 128, ERM Sprint 129
    • Bienenvolk
    • Lotus R1 2022

    Description

      Purpose/Overview:
      When harvesting a package from GOKb then it can fail if key information is lacking in the GOKb XML being processed for the package. Specifically:

      • package_record.name?.text() [used to populate the package name]
      • package_record.shortcode?.text() [used to populate the packageSlug / package reference]

      In the cases where this information is missing for the package, the package should be skipped and the information recorded in the info log

      Scenario 1:
      Given: a package in the GOKb XML being processed by the adapter
      When: the package lacks a name
      Then: the package should be skipped and an info log entry created indicating that the package has been skipped with a reference to the GOKb package.id

      Scenario 2:
      Given: a package in the GOKb XML being processed by the adapter
      When: the package lacks a shortcode
      Then: the package should be skipped and an info log entry created indicating that the package has been skipped with a reference to the GOKb package.name or package.id

      example GOKb package xml:

      <package id="4193008" uuid="d1ce975f-0345-4de3-9f11-0a8c5932a9c3">
          <name>Springer:Ebooks:ProfApplComputing:2019</name>
          <status>Current</status>
          <editStatus>In Progress</editStatus>
          <language/>
          <shortcode>Springer:Ebooks:ProfApplComputing:2019</shortcode>
          <identifiers/>
          <scope>Front File</scope>
          <listStatus>Checked</listStatus>
          <breakable>No</breakable>
          <consistent>Yes</consistent>
          <fixed>Yes</fixed>
          <paymentType>Unknown</paymentType>
          <global>Consortium</global>
          <globalNote/>
          <contentType/>
          <nominalPlatform id="87420" uuid="7da0d0d0-b03f-4a84-bd41-a0cde1350154">
              <primaryUrl>http://link.springer.com</primaryUrl>
              <name>SpringerLink</name>
          </nominalPlatform>
          <nominalProvider id="85324" uuid="66f28d3a-327f-4eab-9579-cad5f2b305dc">
              <name>Springer</name>
          </nominalProvider>
          <listVerifiedDate/>
          <curatoryGroups/>
          <dateCreated>2019-09-30T17:45:27Z</dateCreated>
          <TIPPs count="204">TIPPs would be listed here</TIPPs>
      </package>
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases