Skip to content
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-3587: Ensures a Client-Id is always sent for external request #32

Merged
merged 3 commits into from
Dec 16, 2022

Conversation

abbottry
Copy link
Member

In an effort to create more visibility into the usage of graphql and its place as a proxy between many applications and CMR, this PR increases the usage, including an always sent default, Client-Id header.

@codecov
Copy link

codecov bot commented Dec 15, 2022

Codecov Report

Merging #32 (418a236) into main (9492dac) will not change coverage.
The diff coverage is 100.00%.

❗ Current head 418a236 differs from pull request most recent head e9a7ae6. Consider uploading reports for the commit e9a7ae6 to get more accurate results

@@            Coverage Diff            @@
##              main       #32   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           49        49           
  Lines         1087      1098   +11     
  Branches       141       141           
=========================================
+ Hits          1087      1098   +11     
Impacted Files Coverage Δ
src/cmr/concepts/collectionDraft.js 100.00% <100.00%> (ø)
src/cmr/concepts/collectionDraftProposal.js 100.00% <100.00%> (ø)
src/cmr/concepts/concept.js 100.00% <100.00%> (ø)
src/resolvers/collection.js 100.00% <100.00%> (ø)
src/resolvers/collectionDraft.js 100.00% <100.00%> (ø)
src/resolvers/collectionDraftProposal.js 100.00% <100.00%> (ø)
src/utils/cmrDelete.js 100.00% <100.00%> (ø)
src/utils/cmrGraphDb.js 100.00% <100.00%> (ø)
src/utils/cmrIngest.js 100.00% <100.00%> (ø)
src/utils/cmrQuery.js 100.00% <100.00%> (ø)
... and 3 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@@ -31,6 +31,18 @@ export default class CollectionDraft extends Concept {
]
}

/**
* Retrieve the request id header from the request
* @param {Object} headers The provided headers from the query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might want a @return {string} declaration here as well

@@ -31,6 +31,18 @@ export default class CollectionDraftProposal extends Concept {
]
}

/**
* Retrieve the request id header from the request
* @param {Object} headers The provided headers from the query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment re: @return

@@ -295,6 +295,18 @@ export default class Concept {
return requestId
}

/**
* Retrieve the client id header from the request
* @param {Object} headers The provided headers from the query
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment re: @return

@abbottry abbottry merged commit b551927 into main Dec 16, 2022
@abbottry abbottry deleted the EDSC-3587 branch December 16, 2022 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants