-
Notifications
You must be signed in to change notification settings - Fork 621
Fix RPC usage graphs and improve rate limit visualization #6737
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 RPC usage graphs and improve rate limit visualization #6737
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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 #6737 +/- ##
=======================================
Coverage 54.80% 54.80%
=======================================
Files 895 895
Lines 56384 56384
Branches 3850 3850
=======================================
Hits 30899 30899
Misses 25390 25390
Partials 95 95
🚀 New features to boost your workflow:
|
d74d78a to
1b941b3
Compare
size-limit report 📦
|
1b941b3 to
a49d8d0
Compare
Merge activity
|
# Improve RPC Usage Graphs
This PR enhances the RPC usage graphs in the dashboard:
- Only show rate limited requests in the legend when there are actually rate limited requests
- Fix data processing by removing the `.slice(1, -1)` which was incorrectly trimming data points
- Ensure numeric values by explicitly converting to Number
- Move data slicing to the parent component for better control
- Add a type assertion comment to handle the TypeScript warning
- Add a check to conditionally display relevant chart configuration
These changes improve the accuracy and presentation of the RPC usage data visualization.
<!-- start pr-codex -->
---
## PR-Codex overview
This PR focuses on enhancing the `CountGraph` component by improving the handling of rate-limited data and formatting the `currentRateLimit` value for better readability.
### Detailed summary
- Updated the `currentRateLimit` display to use `toLocaleString()`.
- Added a check for `hasAnyRateLimited` to conditionally configure the chart.
- Modified the `config` object to include `rateLimitedCount` only if there are any rate-limited requests.
- Converted `includedCount` and `rateLimitedCount` to `Number` type during data mapping.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
a49d8d0 to
baf95b9
Compare

Improve RPC Usage Graphs
This PR enhances the RPC usage graphs in the dashboard:
.slice(1, -1)which was incorrectly trimming data pointsThese changes improve the accuracy and presentation of the RPC usage data visualization.
PR-Codex overview
This PR focuses on improving the
CountGraphcomponent by enhancing data handling and display logic, specifically related to rate limits and formatting of the current rate limit.Detailed summary
currentRateLimitdisplay to usetoLocaleString().hasAnyRateLimitedto check for rate-limited requests.configto conditionally includerateLimitedCountbased onhasAnyRateLimited.includedCountandrateLimitedCountin data mapping.