Skip to content

deep-registry-archive will grab the latest LIDVIDs only, not the LIDVIDs associated with the bundle VIDΒ #203

@tbarnes4

Description

@tbarnes4

Checked for duplicates

Yes - I've already checked

πŸ› Describe the bug

Two, I believe related, bugs:

(1) When I run pds-deep-registry-archive on a bundle that has a collection with which the inventory file contains multiple VIDs of a single LID, only the most recent LIDVID product files are included in the manifest files. This is a problem for archiving as all the products listed should be included. This is a greater problem for us in that the first version of many of our collections contain multiple versions of a product due to migration. I will note that this issue did not exist in April 2024 when I ran the utility on urn:nasa:pds:nh_mvic::1.0.

(2) When I run pds-deep-registry-archive on bundle VID that is not the most recent, the utility correctly grabs the bundle VID requested bundle products, but incorrectly grabs the latest collection VID instead of the collection VID associated with this older bundle VID as specified in the bundle product.

Note that I discovered these issues when I saw that the produced manifest files record count did match the number of files I expected to be included.

πŸ•΅οΈ Expected behavior

For (1) and (2), I would expect the utility grab all collection VIDs from the bundle product and all these collection's child products from the correct collection VID's collection product inventory file. I believe that this is the case when running pds-deep-archive (which cannot be run on *.lblx, see #157 ), and was the case with a prior version of pds-deep-registry-archive.

πŸ“œ To Reproduce

For (1) run:
pds-deep-registry-archive -s PDS_SBN urn:nasa:pds:nh_mvic::1.0

Sort and compare these results with those posted in the previously produced manifests (see nh_mvic_v1.0_20240415* files, noting that several versioned files are now missing).

For (2) run:
pds-deep-registry-archive -s PDS_SBN urn:nasa:pds:nh_documents::2.0

Note that the collection urn:nasa:pds:nh_documents:mission::2.0 child products (seen with pds4-nh_documents:mission-v2.0/" are picked up even though this bundle should be picking up urn:nasa:pds:nh_documents:mission::1.0 files only.

πŸ–₯ Environment Info

  • Version of this software: pds-deep-registry-archive 1.3.0
  • Operating System: macOS Monterey Version 12.7.6

πŸ“š Version of Software Used

pds-deep-registry-archive 1.3.0

🩺 Test Data / Additional context

No response

πŸ¦„ Related requirements

πŸ¦„ #xyz

Acceptance Criteria

Given
When I perform
Then I expect

βš™οΈ Engineering Details

No response

πŸŽ‰ Integration & Test

No response

Metadata

Metadata

Assignees

Type

Projects

Status

ToDo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions