Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Dec 12, 2024

Problem solved

CNCT-2640


PR-Codex overview

This PR focuses on refactoring the service-utils package to remove the usageLimit module and update the authorization logic to incorporate team and project responses, enhancing the overall structure and functionality of the service.

Detailed summary

  • Removed usageLimit related files and references.
  • Updated authorization logic to use TeamAndProjectResponse.
  • Modified authorizeClient and authorizeService functions to accept new response types.
  • Adjusted tests to align with the new authorization structure.
  • Enhanced rate limiting to utilize project IDs.
  • Updated API fetching methods to accommodate changes in request handling.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Dec 12, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 9:50pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 9:50pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 9:50pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 9:50pm

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest 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

Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.65%. Comparing base (7d25479) to head (3ec808d).
Report is 2 commits behind head on main.

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           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7d25479
packages 48.40% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 3.7 s (+53.81% 🔺) 4.6 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 6 s (-8.31% 🔽) 8.2 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 401 ms (+183.01% 🔺) 513 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 41 ms (-7.6% 🔽) 51 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 446 ms (-20.82% 🔽) 827 ms

Copy link
Member

@jnsdls jnsdls left a 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;
Copy link
Member

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?

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 12, 2024

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 -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants