-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EDSC-3571: Adds dataloader for collection queries nested under granules #26
Conversation
Codecov Report
@@ Coverage Diff @@
## main #26 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 45 46 +1
Lines 1008 1063 +55
Branches 141 141
=========================================
+ Hits 1008 1063 +55
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
…lection concept ids
@@ -29,7 +33,7 @@ export const ingestSubscription = async (params, headers, parsedInfo) => { | |||
const subscription = new Subscription(headers, requestInfo, params) | |||
|
|||
// Contact CMR | |||
await subscription.ingest(params, ingestKeys, headers) | |||
subscription.ingest(params, ingestKeys, headers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trying to understand: why does this not need an await since the ingest method is returning a promise?
` ingest(data, requestedKeys, providedHeaders) {
// eslint-disable-next-line no-param-reassign
data = mergeParams(data)
this.logKeyRequest(requestedKeys, 'ingest')
// Construct the promise that will ingest data into CMR
this.response = cmrIngest(
this.getConceptType(),
data,
providedHeaders,
this.ingestPath
)
}`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need an await because the methods that use its response await, this was the only external call that had an await so I removed it.
const result = await dataSources.variableSource(args, headers, parseResolveInfo(info)) | ||
variables: async (source, args, context, info) => { | ||
const { dataSources } = context | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra line
No description provided.