Fix set-archive-status bare LID resolution and silent bundle cascade failure - #57
Draft
jordanpadams with Copilot wants to merge 3 commits into
Draft
Fix set-archive-status bare LID resolution and silent bundle cascade failure#57jordanpadams with Copilot wants to merge 3 commits into
jordanpadams with Copilot wants to merge 3 commits into
Conversation
…de, improve help text Agent-Logs-Url: https://github.com/NASA-PDS/registry-loader/sessions/ce52854d-a13e-4593-a0c6-86051ec310eb Co-authored-by: jordanpadams <33492486+jordanpadams@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix cascade status update for set-archive-status command
Fix set-archive-status bare LID resolution and silent bundle cascade failure
Mar 28, 2026
- Move TestProductService to proper package (gov.nasa.pds.registry.common.es.service) - Fix early return in bundle cascade that skipped final log message - Handle null collectionIds gracefully to ensure consistent logging These changes improve code organization and ensure the "Updated a total of X products" message is always logged regardless of the bundle cascade outcome. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
jordanpadams
marked this pull request as ready for review
July 2, 2026 23:50
jordanpadams
marked this pull request as draft
July 2, 2026 23:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.




set-archive-status -lidvid <bare-LID>silently did nothing becausegetProductClass()performs a direct document ID lookup (stored as LIDVIDs), so a bare LID 404s and is swallowed. Additionally, bundle→collection cascade silently skipped all collections whenref_lid_collection/ref_lidvid_collectionfields were absent.Changes
ProductService.updateArchiveStatus(String, String)getProductClass()returningnull, if input has no::, attemptgetLatestLidVids()to resolve to latest LIDVID and retry. On continued failure, throw a descriptiveExceptioninstead of silently returning.WARNif the resulting set is empty, pointing to the missing fields.SetArchiveStatusCmd.printHelp()TestProductService(new)ProductDaostub covering: bare LID resolution, unknown identifier error path, empty bundle cascade, cascade by LID reference, cascade by LIDVID reference, and collection inventory cascade.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
central.sonatype.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/registry-loader/registry-loader org.codehaus.plexus.classworlds.launcher.Launcher -f pom.xml -B -V -e -Dfindbugs.skip -Dcheckstyle.skip -Dpmd.skip=true -Dspotbugs.skip -Denforcer.skip -Dmaven.javadoc.skip(dns block)repo.osgeo.org/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/registry-loader/registry-loader org.codehaus.plexus.classworlds.launcher.Launcher --quiet compile -pl common 1/REQUIREMENTS.md 0/REQUIREMENTS.md 0/REQUIREMENTS.md 0/REQUIREMENTS.md 0/REQUIREMENTS.md 1/REQUIREMENTS.md 1/REQUIREMENTS.md(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/registry-loader/registry-loader org.codehaus.plexus.classworlds.launcher.Launcher -pl common test(dns block)/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --enable-native-access=ALL-UNNAMED -classpath /usr/share/apache-maven-3.9.14/boot/plexus-classworlds-2.9.0.jar -Dclassworlds.conf=/usr/share/apache-maven-3.9.14/bin/m2.conf -Dmaven.home=/usr/share/apache-maven-3.9.14 -Dlibrary.jansi.path=/usr/share/apache-maven-3.9.14/lib/jansi-native -Dmaven.multiModuleProjectDirectory=/home/REDACTED/work/registry-loader/registry-loader org.codehaus.plexus.classworlds.launcher.Launcher --quiet package -DskipTests(dns block)If you need me to access, download, or install something from one of these locations, you can either:
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.