Skip to content

Commit c398315

Browse files
CMR-11422: Comment and documentation
1 parent aa022c1 commit c398315

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

ingest-app/docs/api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,8 @@ The following fields are validated:
173173

174174
**Note**: if cmr-validate-keywords header is not set explicitly, it will behave as if it was set to FALSE by default behind the scenes
175175

176+
**Note**: cmr-validate-keywords is being deprecated by provider to prevent ESDIS providers from using it and thus putting stale keywords onto the system
177+
176178
**Note**: that when multiple fields are present the combination of keywords are validated to match a known combination.
177179

178180
**Note**: Among the validation fields above, [Platforms], [Instruments], [Projects], [Science Keywords], [Location Keywords] and [Data Centers] are also validated when the `Cmr-Validate-Keywords` header is not set to `true` except that validation errors will be returned to users as warnings.

ingest-app/src/cmr/ingest/api/collections.clj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
"Returns a map of validation options with boolean values"
2626
[headers provider-id]
2727
(let [validate-keywords-value
28+
;; There is a temporary carveout for the KMS API itself until we resolve the cache delay issue either by removing the CMR cache entirely
29+
;; or having KMS issue a cache refresh to CMR see CMR-11524.
2830
(if (and (not (contains? headers SEND_KMS_METADATA_FIXER_HEADER))
2931
(contains? (set (ingest-config/keyword-enforced-providers)) provider-id))
3032
true

0 commit comments

Comments
 (0)