-
Notifications
You must be signed in to change notification settings - Fork 618
Update /use and types to v2 #5708
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 3ec808d The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5708 +/- ##
=======================================
Coverage 51.65% 51.65%
=======================================
Files 1097 1097
Lines 57788 57788
Branches 4773 4773
=======================================
Hits 29853 29853
Misses 27217 27217
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
jnsdls
left a comment
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
| serviceApiKey: string; | ||
| serviceAction?: string; | ||
| useWalletAuth?: boolean; | ||
| includeUsage?: boolean; |
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.
no longer needed / does nothing?
Merge activity
|
## Problem solved CNCT-2640 <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on refactoring the `service-utils` package to remove the `usageLimit` module, update types and endpoints to version 2, and enhance authorization logic by integrating team and project responses. ### Detailed summary - Deleted `usageLimit` module files. - Updated API endpoint and types to version 2. - Modified `authorizeClient` and `authorizeService` functions to use `TeamAndProjectResponse`. - Adjusted authorization tests to reflect new structure. - Revised caching logic for keys. - Enhanced rate limiting to use project IDs instead of account IDs. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
23e1938 to
3ec808d
Compare

Problem solved
CNCT-2640
PR-Codex overview
This PR focuses on refactoring the
service-utilspackage to remove theusageLimitmodule and update the authorization logic to incorporate team and project responses, enhancing the overall structure and functionality of the service.Detailed summary
usageLimitrelated files and references.TeamAndProjectResponse.authorizeClientandauthorizeServicefunctions to accept new response types.