Skip to content

Commit 0b59a8e

Browse files
authored
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
1 parent f7acc67 commit 0b59a8e

File tree

3 files changed

+6
-4
lines changed
  • indexer-app
    • src/cmr/indexer/data/concepts
    • test/cmr/indexer/test/data/concepts
  • search-app/docs

3 files changed

+6
-4
lines changed

indexer-app/src/cmr/indexer/data/concepts/tag.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030

3131
(def earthdata-cloud-s3-tag
3232
"The Earthdata cloud tag for s3 resources"
33-
"gov.nasa.earthdata.cloud.s3")
33+
"gov.nasa.earthdatacloud.s3")
3434

3535
(defn has-cloud-s3-tag?
3636
"Looks through a list of tags and returns true if one of them is the
37-
gov.nasa.earthdata.cloud.s3 tag"
37+
earthdata-cloud-s3-tag"
3838
[tags]
3939
(some? (some #(= (:tag-key-lowercase %) earthdata-cloud-s3-tag) tags)))

indexer-app/test/cmr/indexer/test/data/concepts/tag.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
(deftest does-has-cloud-s3-tag-work
1818
"The function has-cloud-s3-tag should only return true if there is a
19-
gov.nasa.earthdata.cloud.s3 tag in the list"
19+
earthdata-cloud-s3-tag in the list"
2020
(let [bad1 (create-tag "This-Is-Not-The-Tag-Your-Looking-For" "My-Id" "Value")
2121
bad2 (create-tag "This-Is-Also-Not-The-Tag-Your-Looking-For" "My-Id" "Value")
2222
good (create-tag tag/earthdata-cloud-s3-tag "My-Id" "Value")

search-app/docs/api.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1888,7 +1888,9 @@ The `has_granules_or_opensearch` parameter can be set to "true" or "false". When
18881888

18891889
curl "%CMR-ENDPOINT%/collections?has_opendap_url=true"
18901890

1891-
#### <a name="c-cloud-hosted"></a> Find collections that have a `DirectDistributionInformation` element or have been tagged with `gov.nasa.earthdata.cloud.s3`.
1891+
#### <a name="c-cloud-hosted"></a> Find collections with data that is hosted in the cloud.
1892+
1893+
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`.
18921894

18931895
curl "%CMR-ENDPOINT%/collections?cloud_hosted=true"
18941896

0 commit comments

Comments
 (0)