Closed tdddblog closed 2 years ago
Add supersede / update product version functionality in Registry Manager
Build the projects (1) Build and install "registry-common" jar first (see https://github.com/NASA-PDS/registry-common/pull/24) (2) Build registry manager
Test
Ingest two documents (also attached to https://github.com/NASA-PDS/registry/issues/55) (1) https://pds.nasa.gov/data/pds4/context-pds4/instrument/vg1.crs_1.0_deprecated.xml (2) https://pds.nasa.gov/data/pds4/context-pds4/instrument/vg1.crs_1.0.xml
Create a CSV file with one row and 2 columns (old and new LIDVIDs):
urn:nasa:pds:context:instrument:crs.vg1::1.0,urn:nasa:pds:context:instrument:vg1.crs::1.0
Run registry manager's new "update-alt-ids" command. Pass a file path of the CSV file:
registry-manager update-alt-ids -file /tmp/alt-ids.csv
Check OpenSearch index. Both urn:nasa:pds:context:instrument:crs.vg1::1.0 and urn:nasa:pds:context:instrument:vg1.crs::1.0 documents should have following "alternative_ids" values:
urn:nasa:pds:context:instrument:crs.vg1::1.0
urn:nasa:pds:context:instrument:vg1.crs::1.0
["urn:nasa:pds:context:instrument:crs.vg1", "urn:nasa:pds:context:instrument:crs.vg1::1.0", "urn:nasa:pds:context:instrument:vg1.crs", "urn:nasa:pds:context:instrument:vg1.crs::1.0"]
https://github.com/NASA-PDS/registry/issues/56 https://github.com/NASA-PDS/registry/issues/59
https://github.com/NASA-PDS/registry-api/issues/426 https://github.com/NASA-PDS/registry-api/issues/427
🗒️ Summary
Add supersede / update product version functionality in Registry Manager
⚙️ Test Data and/or Report
Build the projects (1) Build and install "registry-common" jar first (see https://github.com/NASA-PDS/registry-common/pull/24) (2) Build registry manager
Test
Ingest two documents (also attached to https://github.com/NASA-PDS/registry/issues/55) (1) https://pds.nasa.gov/data/pds4/context-pds4/instrument/vg1.crs_1.0_deprecated.xml (2) https://pds.nasa.gov/data/pds4/context-pds4/instrument/vg1.crs_1.0.xml
Create a CSV file with one row and 2 columns (old and new LIDVIDs):
Run registry manager's new "update-alt-ids" command. Pass a file path of the CSV file:
Check OpenSearch index. Both
urn:nasa:pds:context:instrument:crs.vg1::1.0
andurn:nasa:pds:context:instrument:vg1.crs::1.0
documents should have following "alternative_ids" values:♻️ Related Issues
https://github.com/NASA-PDS/registry/issues/56 https://github.com/NASA-PDS/registry/issues/59
https://github.com/NASA-PDS/registry-api/issues/426 https://github.com/NASA-PDS/registry-api/issues/427