fix: use parseAsSafeArrayOf for dashboard array query params and parseAsBoolean for missing_cost_only - #4796
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
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. |
036ab0c to
e9f78b8
Compare
36b4848 to
c1470a8
Compare
e9f78b8 to
9ff2e78
Compare
9ff2e78 to
c61b851
Compare
c1470a8 to
d7ea1a2
Compare

Summary
Dashboard filter query parameters that previously stored arrays as comma-separated strings are now stored as proper typed arrays using
parseAsSafeArrayOf. Themissing_cost_onlyflag is also now stored as a native boolean rather than the string"true"/"false".Changes
parseAsStringwithparseAsSafeArrayOffor all array-valued filter URL params (providers,models,virtual_key_ids,selected_key_ids,objects,status,routing_rule_ids,routing_engine_used,stop_reasons,user_ids,team_ids,customer_ids,business_unit_ids,aliases), eliminating the need to manually split/join CSV strings.parseAsStringwithparseAsBooleanformissing_cost_only, removing the=== "true"string comparison.parseCsvParamhelper and all intermediateuseMemovariables that existed solely to parse CSV strings into arrays. Filter values fromurlStateare now used directly..join(",")calls in thesetFilterscallback and theurlState.periodredundant assignment.mcp_tool_names,mcp_server_labels) remain as strings for now, with their array conversion handled by a targeteduseMemo.Type of change
Affected areas
How to test
Apply filters on the dashboard (providers, models, virtual keys, statuses, etc.) and verify:
missing_cost_onlytoggle persists correctly as a boolean in the URL.Screenshots/Recordings
N/A
Breaking changes
Existing bookmarked or shared dashboard URLs that use comma-separated string query params for filters will no longer be parsed correctly. Users with saved URLs containing these params will need to reapply their filters.
Related issues
N/A
Security considerations
None.
Checklist
docs/contributing/README.mdand followed the guidelines