Skip to content

Commit

Permalink
update to migrate collectionprogress down to planned instead of complete
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaeng72 committed Oct 29, 2024
1 parent 834b333 commit 3f758f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1905,7 +1905,7 @@
"URL": {
"description": "This element represents the URL where the schema lives. The schema can be downloaded.",
"type": "string",
"enum": ["https://cdn.earthdata.nasa.gov/umm/collection/v1.18.1"]
"enum": ["https://cdn.earthdata.nasa.gov/umm/collection/v1.18.2"]
},
"Name": {
"description": "This element represents the name of the schema.",
Expand All @@ -1915,7 +1915,7 @@
"Version": {
"description": "This element represents the version of the schema.",
"type": "string",
"enum": ["1.18.1"]
"enum": ["1.18.2"]
}
},
"required": ["URL", "Name", "Version"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@
(if (or (= "PREPRINT" collectionProgress)
(= "INREVIEW" collectionProgress)
(= "SUPERSEDED" collectionProgress))
"COMPLETE"
"PLANNED"
collectionProgress)))

(defmethod interface/migrate-umm-version [:collection "1.18.2" "1.18.1"]
Expand All @@ -791,7 +791,7 @@
(-> coll
(util/update-in-each [:AssociatedDOIs] migrate-associated-doi-type-down))
coll))
;; Change CollectionProgress enum to COMPLETED if its enum value is PREPRINT, INREVIEW, or SUPERSEDED
;; Change CollectionProgress enum to PLANNED if its enum value is PREPRINT, INREVIEW, or SUPERSEDED
(as-> coll (if (contains? coll :CollectionProgress)
(-> coll
(update :CollectionProgress migrate-collection-progress-down))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3887,7 +3887,7 @@

"Migrating CollectionProgress enum PREPRINT back to COMPLETED"
;; expected
{:CollectionProgress "COMPLETED"
{:CollectionProgress "PLANNED"
:MetadataSpecification {:URL "https://cdn.earthdata.nasa.gov/umm/collection/v1.18.1",
:Name "UMM-C",
:Version "1.18.1"}}
Expand All @@ -3899,7 +3899,7 @@

"Migrating CollectionProgress enum PREPRINT back to COMPLETED"
;; expected
{:CollectionProgress "COMPLETED"
{:CollectionProgress "PLANNED"
:MetadataSpecification {:URL "https://cdn.earthdata.nasa.gov/umm/collection/v1.18.1",
:Name "UMM-C",
:Version "1.18.1"}}
Expand All @@ -3911,7 +3911,7 @@

"Migrating CollectionProgress enum SUPERSEDED back to COMPLETED"
;; expected
{:CollectionProgress "COMPLETED"
{:CollectionProgress "PLANNED"
:MetadataSpecification {:URL "https://cdn.earthdata.nasa.gov/umm/collection/v1.18.1",
:Name "UMM-C",
:Version "1.18.1"}}
Expand Down

0 comments on commit 3f758f6

Please sign in to comment.