feat: add credits migration script to migrate legacy key credits to credits table#4204
feat: add credits migration script to migrate legacy key credits to credits table#4204Flo4604 wants to merge 4 commits intofeat/identity-credits-dashboardfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
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 You can disable this status message by setting the ✨ 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 |
8c3d739 to
43322af
Compare
07b1b0b to
b1449b6
Compare
b1449b6 to
97202cd
Compare
43322af to
475c6ce
Compare
475c6ce to
77f0ca0
Compare
97202cd to
18f9cf3
Compare
18f9cf3 to
ac07622
Compare
77f0ca0 to
4d23c59
Compare
4d23c59 to
fec5c12
Compare
ac07622 to
5f876ec
Compare
949e664 to
854a9d8
Compare
6288066 to
35cc3af
Compare
854a9d8 to
f23495e
Compare
35cc3af to
7aa05e8
Compare
7aa05e8 to
247e377
Compare
f23495e to
e68d34a
Compare
247e377 to
571dab2
Compare
e68d34a to
59b2e5c
Compare
571dab2 to
f4cc6c1
Compare
59b2e5c to
8a05519
Compare
8a05519 to
db83b87
Compare
f4cc6c1 to
32fb7e1
Compare
|
Thank you for following the naming conventions for pull request titles! 🙏 |

What does this PR do?
Adds a new migration command into our cli to migrate the keys from the old schema to the new schema.
This can be run whenever we want, worst case we just rollback the code without too many issues.
Type of change
How should this be tested?
Create keys using our old structure best case in main before switching to this branch.
Then run the script and check if you can validate the key and use all the endpoints and see the correct credit data in all endpoints e.g listKeys getKey whoAmi verifyKey and so on.
Checklist
Required
pnpm buildpnpm fmtconsole.logsgit pull origin mainAppreciated