CMR-11237: Validate Ingest and invoke Metadata Fix Service - #2471
Open
eudoroolivares2016 wants to merge 17 commits into
Open
CMR-11237: Validate Ingest and invoke Metadata Fix Service#2471eudoroolivares2016 wants to merge 17 commits into
eudoroolivares2016 wants to merge 17 commits into
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #2471 +/- ##
==========================================
- Coverage 57.93% 57.91% -0.03%
==========================================
Files 1073 1074 +1
Lines 74658 74699 +41
Branches 2175 2173 -2
==========================================
+ Hits 43251 43259 +8
- Misses 29379 29408 +29
- Partials 2028 2032 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…t this is going to
eudoroolivares2016
marked this pull request as ready for review
July 29, 2026 21:15
eudoroolivares2016
requested review from
daniel-zamora,
eereiter,
isja17,
jceaser and
jmaeng72
July 30, 2026 14:45
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.
Overview
What is the objective?
This addresses an issue with the collection metadata that prevents the metadata-fixer service (a KMS module to update collection conceptId keywords on keyword updates) from being fully effective. There are some collections where ingests with the old keywords have to be allowed to ingest so those updates don't get blocked. This is a problem because if the metadata fixer service has updated the collection a subsequent ingest with the flag set to false will just override that. This PR when that condition is met will make a request from CMR to that new KMS service which in turn will ingest a new revision of the collection but, with the correct keyword
What are the changes?
Threading through the coll ingest a new bool for keyword-errors. This denotes cases where this would have caused an ingest error but, of course with the keyword flag in place may be allowed to ingest. After we get a conceptId back from the metadatadb we send that off to the kms fixer service. This is done using
asyc/gosimilar to how we reconcile providers with thecmr-orderingservice. That is a fire-and-forget so it won't slow down ingest. In transmit lib I've added a method to send this to the KMS which sits in the CMR load balancer and I'm leaving some rich comments for easily testing the integration Since we can't fully test that end to end locally because KMS isn't spun up by the REPL.All formating is done just using the
lein cljfmttool. I've split out variable validation just to keep the namespaces from getting longer than neededWhat areas of the application does this impact?
Collection ingest amd validation
Required Checklist
Additional Checklist