-
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-3587: Ensures a Client-Id is always sent for external request #32
Conversation
Codecov Report
@@ Coverage Diff @@
## main #32 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 49 49
Lines 1087 1098 +11
Branches 141 141
=========================================
+ Hits 1087 1098 +11
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 |
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 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 |
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.
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 |
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.
Same comment re: @return
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.