-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Track usage #15772
Track usage #15772
Conversation
QA Wolf here! As you write new code it's important that your test coverage is keeping up. |
5e3b150
to
cb88465
Compare
@@ -28,7 +28,7 @@ function oAuth2ConfigValidator() { | |||
function oAuth2ConfigValidationValidator() { | |||
return middleware.joiValidator.body( | |||
Joi.object({ | |||
id: Joi.string().required(), | |||
id: Joi.string(), |
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.
Why is a separate id
needed when the config has a _id
? Is there multiple OAuth configs within the single oauth document?
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.
This might validate existing configs or new configs
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.
LGTM!
Description
Track oauth usages. We will update that usage every time that we get an oauth2 token.
The last usage will be picked from the most recent between dev and prod, as we want to track its usage, regarding if used in prod or dev
Screenshots