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

chore: expose type and more fixes #5268

Merged
merged 3 commits into from
Nov 3, 2023
Merged

chore: expose type and more fixes #5268

merged 3 commits into from
Nov 3, 2023

Conversation

gastonfournier
Copy link
Contributor

@gastonfournier gastonfournier commented Nov 3, 2023

Expose new interface while also getting rid of unneeded compiler ignores

None of the changes should add new security risks, despite this report:

Code scanning results / CodeQL Failing after 4s — 2 new alerts including 2 high severity security vulnerabilities

Not sure what that means, maybe a removed ignore...

Copy link

vercel bot commented Nov 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 1:54pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Nov 3, 2023 1:54pm

metrics: ClientMetricsSchema,
ip: string,
): Promise<void> {
ProxyService.assertExpectedTokenType(token);

const environment =
this.services.clientMetricsServiceV2.resolveMetricsEnvironment(
token,
token as ApiUser,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not so easy to change cause we're testing user instanceof ApiUser inside resolveMetricsEnvironment. We can't just use isAPI because we also have users who are APIs (service accounts IIRC)

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

This looks like an improved to QoL, I'm all for it.

@gastonfournier gastonfournier merged commit 6f8f21f into main Nov 3, 2023
@gastonfournier gastonfournier deleted the expose-iapi-request branch November 3, 2023 16:36
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.

2 participants