Repository navigation
scoped PAT: merge classic and scoped token lists - #47886
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎭 Playwright Test Results (tanstack)Details
Flaky testsFeatures › table-editor.spec.ts › table editor › can create and remove foreign key with column selection Skipped testsFeatures › auth-users.spec.ts › should show web3 users as enabled when the matching web3 provider is enabled |
charislam
left a comment
There was a problem hiding this comment.
Minor nits but otherwise looks great! Really clean PR ❤️
| * the consuming list (via filterAndSortTokens), so this only merges + tags. | ||
| */ | ||
| export const useMergedAccessTokens = ({ | ||
| scopedEnabled = true, |
There was a problem hiding this comment.
Nit but defaulting this to true will cause unnecessary API calls that are bound to fail, won't it?
There was a problem hiding this comment.
This one I fixed in the latest PR already but will do it here as well
|
|
||
| const { mutate: deleteScopedToken } = useScopedAccessTokenDeleteMutation({ | ||
| onSuccess: (_, vars) => { | ||
| track('access_token_removed', { tokenType: 'classic' }) |
There was a problem hiding this comment.
Should this be tokenType: 'scoped'?
Second stacked PR for scoped PAT extracted from the prototype #47783 to ease reviewing. Previous stacked PR is #47886 Next stacked PR is #48003 This PR: - refactor the scoped token creation form in a multi-step fashion ## How to test Go to https://studio-staging-git-scopedpat-scoped-token-creat-80c55b-supabase.vercel.app/dashboard/account/tokens - Click the _Generate new token_ button - Try submitting immediately. It should display errors correctly - Configure everything except permissions and try submitting. It should display a warning about missing permissions - Configure the permissions and submit. It should display the review step - Try going back, modify anything and submit - Create the token. It should display the token value with a button to copy it and a checkbox to confirm the copy. You cannot close the sheet at this step until you check the box and click _Done_.
First stacked PR for scoped PAT extracted from the prototype #47783 to ease reviewing.
Next stacked PR is #47979
This PR:
Notes
It's not possible to create classic tokens anymore with the
scopedPATflag enabled.How to test
With the
scopedPATenabled (default on staging)Go to https://studio-staging-git-scopedpat-merge-token-lists-supabase.vercel.app/dashboard/account/tokens.
With the
scopedPATdisabled (use the devtool to override)Screenshots
Before:

After:
