From 0b59a8e135c7ddc326d6d04dff7c4d2a6d29d92e Mon Sep 17 00:00:00 2001 From: Thomas Cherry Date: Fri, 30 Apr 2021 13:17:36 -0400 Subject: [PATCH] cmr-7220 follow up: changed tag, updated api doc (#1239) * CMR-7220 * updating api doc * changing the tag, removing a period, now is gov.nasa.earthdatacloud.s3 --- indexer-app/src/cmr/indexer/data/concepts/tag.clj | 4 ++-- indexer-app/test/cmr/indexer/test/data/concepts/tag.clj | 2 +- search-app/docs/api.md | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/indexer-app/src/cmr/indexer/data/concepts/tag.clj b/indexer-app/src/cmr/indexer/data/concepts/tag.clj index b3ded30522..95b9c36ed2 100644 --- a/indexer-app/src/cmr/indexer/data/concepts/tag.clj +++ b/indexer-app/src/cmr/indexer/data/concepts/tag.clj @@ -30,10 +30,10 @@ (def earthdata-cloud-s3-tag "The Earthdata cloud tag for s3 resources" - "gov.nasa.earthdata.cloud.s3") + "gov.nasa.earthdatacloud.s3") (defn has-cloud-s3-tag? "Looks through a list of tags and returns true if one of them is the - gov.nasa.earthdata.cloud.s3 tag" + earthdata-cloud-s3-tag" [tags] (some? (some #(= (:tag-key-lowercase %) earthdata-cloud-s3-tag) tags))) diff --git a/indexer-app/test/cmr/indexer/test/data/concepts/tag.clj b/indexer-app/test/cmr/indexer/test/data/concepts/tag.clj index 60e35543b3..75c50d092b 100644 --- a/indexer-app/test/cmr/indexer/test/data/concepts/tag.clj +++ b/indexer-app/test/cmr/indexer/test/data/concepts/tag.clj @@ -16,7 +16,7 @@ (deftest does-has-cloud-s3-tag-work "The function has-cloud-s3-tag should only return true if there is a - gov.nasa.earthdata.cloud.s3 tag in the list" + earthdata-cloud-s3-tag in the list" (let [bad1 (create-tag "This-Is-Not-The-Tag-Your-Looking-For" "My-Id" "Value") bad2 (create-tag "This-Is-Also-Not-The-Tag-Your-Looking-For" "My-Id" "Value") good (create-tag tag/earthdata-cloud-s3-tag "My-Id" "Value") diff --git a/search-app/docs/api.md b/search-app/docs/api.md index f37bde06f6..77b3f754df 100644 --- a/search-app/docs/api.md +++ b/search-app/docs/api.md @@ -1888,7 +1888,9 @@ The `has_granules_or_opensearch` parameter can be set to "true" or "false". When curl "%CMR-ENDPOINT%/collections?has_opendap_url=true" -#### Find collections that have a `DirectDistributionInformation` element or have been tagged with `gov.nasa.earthdata.cloud.s3`. +#### Find collections with data that is hosted in the cloud. + +The `cloud_hosted` parameter can be set to "true" or "false". When true, the results will be restricted to collections that have a `DirectDistributionInformation` element or have been tagged with `gov.nasa.earthdatacloud.s3`. curl "%CMR-ENDPOINT%/collections?cloud_hosted=true"