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

Track usage #15772

Merged
merged 23 commits into from
Mar 24, 2025
Merged

Track usage #15772

merged 23 commits into from
Mar 24, 2025

Conversation

adrinr
Copy link
Collaborator

@adrinr adrinr commented Mar 19, 2025

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

image

Copy link

qa-wolf bot commented Mar 19, 2025

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

linear bot commented Mar 19, 2025

@github-actions github-actions bot added firestorm Data/Infra/Revenue Team size/s labels Mar 19, 2025
@adrinr adrinr force-pushed the BUDI-9127/track-usage branch from 5e3b150 to cb88465 Compare March 19, 2025 17:52
Base automatically changed from BUDI-9127/support-header-and-body-method to master March 19, 2025 18:00
@github-actions github-actions bot added size/m and removed size/s labels Mar 20, 2025
@adrinr adrinr marked this pull request as ready for review March 20, 2025 09:59
@adrinr adrinr requested a review from a team as a code owner March 20, 2025 09:59
@adrinr adrinr requested review from mike12345567 and removed request for a team March 20, 2025 09:59
@@ -28,7 +28,7 @@ function oAuth2ConfigValidator() {
function oAuth2ConfigValidationValidator() {
return middleware.joiValidator.body(
Joi.object({
id: Joi.string().required(),
id: Joi.string(),
Copy link
Collaborator

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?

Copy link
Collaborator Author

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

@github-actions github-actions bot added size/l and removed size/m labels Mar 21, 2025
@github-actions github-actions bot added size/m and removed size/l labels Mar 21, 2025
@adrinr adrinr requested a review from mike12345567 March 21, 2025 08:51
Copy link
Collaborator

@mike12345567 mike12345567 left a comment

Choose a reason for hiding this comment

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

LGTM!

@adrinr adrinr enabled auto-merge March 24, 2025 11:28
@adrinr adrinr merged commit 06f8cc5 into master Mar 24, 2025
22 checks passed
@adrinr adrinr deleted the BUDI-9127/track-usage branch March 24, 2025 11:50
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
firestorm Data/Infra/Revenue Team size/m
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants