Skip to content

Commit 7962599

Browse files
abbottrymacrouch
authored andcommitted
GQL-34: Adds support for UMM-C v1.18.0
1 parent c23f4af commit 7962599

File tree

4 files changed

+95
-9
lines changed

4 files changed

+95
-9
lines changed

serverless-configs/env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ default_env: &default_env
2626
lambdaTimeout: ${env:LAMBDA_TIMEOUT, '30'}
2727

2828
# Pinned UMM versions
29-
ummCollectionVersion: '1.17.2'
29+
ummCollectionVersion: '1.18.0'
3030
ummGranuleVersion: '1.6.5'
3131
ummOrderOptionVersion: '1.0.0'
3232
ummServiceVersion: '1.5.2'

src/resolvers/__tests__/collection.test.js

Lines changed: 81 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -170,19 +170,43 @@ describe('Collection', () => {
170170
DataCenters: [],
171171
DataDates: [],
172172
DataLanguage: 'English',
173+
DataMaturity: 'Validated',
173174
DirectDistributionInformation: {
174175
region: 'us-east-2',
175176
s3BucketAndObjectPrefixNames: ['TestBucketOrObjectPrefix'],
176177
s3CredentialsApiEndpoint: 'https://DAACCredentialEndpoint.org',
177178
s3CredentialsApiDocumentationUrl: 'https://DAACCredentialDocumentation.org'
178179
},
179180
DirectoryNames: [],
180-
DOI: {},
181+
DOI: {
182+
DOI: '10.1234/NASA/Example.01',
183+
PreviousVersion: {
184+
Version: 'A.1',
185+
Description: 'The version before this one',
186+
DOI: '10.1234/NASA/Example.02',
187+
Published: '2024-02-14T08:01:00Z'
188+
}
189+
},
190+
FileNamingConvention: {
191+
Convention: 'YYYY-MM-DD.Short-Name',
192+
Description: 'ISO date followed by the short name'
193+
},
181194
ISOTopicCategories: [],
182195
LocationKeywords: [],
183196
MetadataAssociations: [],
184197
MetadataDates: [],
185198
MetadataLanguage: 'English',
199+
OtherIdentifiers: [
200+
{
201+
Identifier: 'ECSE-1475-Internal',
202+
Type: 'Other',
203+
DescriptionOfOtherType: 'Jira number'
204+
},
205+
{
206+
Identifier: 'ECSE-1475-Internal',
207+
Type: 'ArchiveSetsNumber'
208+
}
209+
],
186210
PaleoTemporalCoverages: [],
187211
Platforms: [{
188212
Type: 'Not Specified',
@@ -210,10 +234,24 @@ describe('Collection', () => {
210234
Quality: 'Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.',
211235
RelatedUrls: [],
212236
ScienceKeywords: [],
213-
SpatialExtent: {},
237+
SpatialExtent: {
238+
SpatialCoverageType: 'LUNAR',
239+
GranuleSpatialRepresentation: 'CARTESIAN'
240+
},
214241
SpatialInformation: {},
215242
StandardProduct: true,
216-
TemporalExtents: [],
243+
TemporalExtents: [
244+
{
245+
EndsAtPresentFlag: false,
246+
SingleDateTimes: [
247+
'2024-02-14T13:14:15.000Z'
248+
],
249+
TemporalResolution: {
250+
Unit: 'Year',
251+
Value: 42
252+
}
253+
}
254+
],
217255
TemporalKeywords: [],
218256
TilingIdentificationSystems: {},
219257
UseConstraints: [],
@@ -238,8 +276,8 @@ describe('Collection', () => {
238276
ancillaryKeywords
239277
archiveAndDistributionInformation
240278
archiveCenter
241-
associationDetails
242279
associatedDois
280+
associationDetails
243281
boxes
244282
browseFlag
245283
cloudHosted
@@ -254,6 +292,7 @@ describe('Collection', () => {
254292
dataCenters
255293
dataDates
256294
dataLanguage
295+
dataMaturity
257296
datasetId
258297
directDistributionInformation
259298
directoryNames
@@ -276,6 +315,7 @@ describe('Collection', () => {
276315
onlineAccessFlag
277316
organizations
278317
originalFormat
318+
otherIdentifiers
279319
paleoTemporalCoverages
280320
platforms
281321
points
@@ -390,6 +430,7 @@ describe('Collection', () => {
390430
dataCenters: [],
391431
dataDates: [],
392432
dataLanguage: 'English',
433+
dataMaturity: 'Validated',
393434
datasetId: 'Condimentum Quam Mattis Cursus Pharetra',
394435
directDistributionInformation: {
395436
region: 'us-east-2',
@@ -398,7 +439,15 @@ describe('Collection', () => {
398439
s3CredentialsApiDocumentationUrl: 'https://DAACCredentialDocumentation.org'
399440
},
400441
directoryNames: [],
401-
doi: {},
442+
doi: {
443+
doi: '10.1234/NASA/Example.01',
444+
previousVersion: {
445+
description: 'The version before this one',
446+
doi: '10.1234/NASA/Example.02',
447+
published: '2024-02-14T08:01:00Z',
448+
version: 'A.1'
449+
}
450+
},
402451
hasFormats: true,
403452
hasGranules: true,
404453
hasSpatialSubsetting: true,
@@ -415,6 +464,17 @@ describe('Collection', () => {
415464
nativeId: 'test-guid',
416465
nativeDataFormats: ['ASCII'],
417466
onlineAccessFlag: true,
467+
otherIdentifiers: [
468+
{
469+
descriptionOfOtherType: 'Jira number',
470+
identifier: 'ECSE-1475-Internal',
471+
type: 'Other'
472+
},
473+
{
474+
identifier: 'ECSE-1475-Internal',
475+
type: 'ArchiveSetsNumber'
476+
}
477+
],
418478
organizations: [],
419479
originalFormat: 'RISUS',
420480
paleoTemporalCoverages: [],
@@ -449,11 +509,25 @@ describe('Collection', () => {
449509
relatedUrls: [],
450510
scienceKeywords: [],
451511
shortName: 'LOREM-QUAM',
452-
spatialExtent: {},
512+
spatialExtent: {
513+
granuleSpatialRepresentation: 'CARTESIAN',
514+
spatialCoverageType: 'LUNAR'
515+
},
453516
spatialInformation: {},
454517
standardProduct: true,
455518
tags: {},
456-
temporalExtents: [],
519+
temporalExtents: [
520+
{
521+
endsAtPresentFlag: false,
522+
singleDateTimes: [
523+
'2024-02-14T13:14:15.000Z'
524+
],
525+
temporalResolution: {
526+
unit: 'Year',
527+
value: 42
528+
}
529+
}
530+
],
457531
temporalKeywords: [],
458532
tilingIdentificationSystems: {},
459533
timeEnd: '2016-04-04T08:00:00.000Z',

src/types/collection.graphql

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ type Collection {
6868
"Describes the language used in the preparation, storage, and description of the collection. It is the language of the collection data themselves. It does not refer to the language used in the metadata record (although this may be the same language)."
6969
dataLanguage: String
7070

71+
"The Data Maturity element is used to inform users on where the collection is in a collection's life cycle."
72+
dataMaturity: String
73+
7174
"This element allows end users to get direct access to data products that are stored in the Amazon Web Service (AWS) S3 buckets. The sub elements include S3 credentials end point and a documentation URL as well as bucket prefix names and an AWS region."
7275
directDistributionInformation: JSON
7376

@@ -83,6 +86,9 @@ type Collection {
8386
"Entry Title"
8487
entryTitle: String @deprecated(reason: "Use `title`.")
8588

89+
"The File Naming Convention refers to the naming convention of the data set's (Collection's) data files along with a description of the granule file construction."
90+
fileNamingConvention: JSON
91+
8692
"An array containing all of the different formats of the underlying data of a collection."
8793
nativeDataFormats: [String]
8894

@@ -131,6 +137,9 @@ type Collection {
131137
"Spatial coverage of the collection."
132138
lines: [String]
133139

140+
"Provides additional or provider defined identifiers of the collection."
141+
otherIdentifiers: JSON
142+
134143
"Controlled hierarchical keywords used to specify the spatial location of the collection. The controlled vocabulary for spatial keywords is maintained in the Keyword Management System (KMS). The Spatial Keyword hierarchy includes one or more of the following layers: Category (e.g., Continent), Type (e.g. Africa), Subregion1 (e.g., Central Africa), Subregion2 (e.g., Cameroon), and Subregion3. DetailedLocation exists outside the hierarchy."
135144
locationKeywords: JSON
136145

src/utils/umm/collectionKeyMap.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"additionalAttributes": "umm.AdditionalAttributes",
1919
"ancillaryKeywords": "umm.AncillaryKeywords",
2020
"archiveAndDistributionInformation": "umm.ArchiveAndDistributionInformation",
21-
"associationDetails": "meta.association-details",
2221
"associatedDois": "umm.AssociatedDOIs",
22+
"associationDetails": "meta.association-details",
2323
"collectionCitations": "umm.CollectionCitations",
2424
"collectionProgress": "umm.CollectionProgress",
2525
"conceptId": "meta.concept-id",
@@ -28,10 +28,12 @@
2828
"dataCenters": "umm.DataCenters",
2929
"dataDates": "umm.DataDates",
3030
"dataLanguage": "umm.DataLanguage",
31+
"dataMaturity": "umm.DataMaturity",
3132
"directDistributionInformation": "umm.DirectDistributionInformation",
3233
"directoryNames": "umm.DirectoryNames",
3334
"doi": "umm.DOI",
3435
"entryTitle": "umm.EntryTitle",
36+
"fileNamingConvention": "umm.FileNamingConvention",
3537
"hasFormats": "meta.has-formats",
3638
"hasSpatialSubsetting": "meta.has-spatial-subsetting",
3739
"hasTemporalSubsetting": "meta.has-temporal-subsetting",
@@ -44,6 +46,7 @@
4446
"metadataLanguage": "umm.MetadataLanguage",
4547
"nativeDataFormats": "custom.NativeDataFormats",
4648
"nativeId": "meta.native-id",
49+
"otherIdentifiers": "umm.OtherIdentifiers",
4750
"paleoTemporalCoverages": "umm.PaleoTemporalCoverages",
4851
"platforms": "umm.Platforms",
4952
"processingLevel": "umm.ProcessingLevel",

0 commit comments

Comments
 (0)