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

fix: serialize API token data correctly in instance stats #7953

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Aug 21, 2024

Turns out we've been trying to return API token data in instance stats for a while, but that the serialization has failed. Serializing a JS map just yields an empty object.

This PR fixes that serialization and also adds API tokens to the instance stats schema (it wasn't before, but we did return it). Adding it to the schema is also part of making resource usage visible as part of the soft limits project.

Copy link

vercel bot commented Aug 21, 2024

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

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 22, 2024 8:18am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Aug 22, 2024 8:18am

Copy link
Contributor

github-actions bot commented Aug 21, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@thomasheartman thomasheartman force-pushed the feat/1-2727-add-remaining-resource-limit-numbers-to-instance-stats branch 2 times, most recently from 939a6dc to b1abbf4 Compare August 22, 2024 07:36
@thomasheartman thomasheartman changed the title feat: add remaining resource limit numbers to instance stats fix: serialize API token data correctly in instance stats Aug 22, 2024
@thomasheartman thomasheartman merged commit e5cca66 into main Aug 22, 2024
9 of 11 checks passed
@thomasheartman thomasheartman deleted the feat/1-2727-add-remaining-resource-limit-numbers-to-instance-stats branch August 22, 2024 08:29
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