Skip to content

Commit

Permalink
GQL-79: exposed EntryId in collection.graphql and added the field to …
Browse files Browse the repository at this point in the history
…the collection.test.js
  • Loading branch information
bnp26 authored and eudoroolivares2016 committed Oct 25, 2024
1 parent 2ae05dd commit 652d7a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/resolvers/__tests__/collection.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ describe('Collection', () => {
coordinate_system: 'CARTESIAN',
data_center: 'PORTA',
dataset_id: 'Condimentum Quam Mattis Cursus Pharetra',
entry_id: 'LOREM-QUAM_1.0.0',
has_formats: true,
has_granules: true,
has_spatial_subsetting: true,
Expand Down Expand Up @@ -327,6 +328,7 @@ describe('Collection', () => {
directDistributionInformation
directoryNames
doi
entryId
hasFormats
hasGranules
hasSpatialSubsetting
Expand Down Expand Up @@ -486,6 +488,7 @@ describe('Collection', () => {
version: 'A.1'
}
},
entryId: 'LOREM-QUAM_1.0.0',
hasFormats: true,
hasGranules: true,
hasSpatialSubsetting: true,
Expand Down
3 changes: 3 additions & 0 deletions src/types/collection.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ type Collection {
"Entry Title"
entryTitle: String @deprecated(reason: "Use `title`.")

"Entry Id is the concatenation of short name, an underscore, and version of the corresponding collection"
entryId: String

"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."
fileNamingConvention: JSON

Expand Down

0 comments on commit 652d7a5

Please sign in to comment.