fix(stats): restore device-day success rate for admin and public - #3015
Conversation
Revert #2988 raw install/(install+fail) event counting that collapsed both KPIs to ~24%. Public /data and admin global_stats now share the app_log device-day formula again. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 20 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: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
Comment |
Merging this PR will not alter performance
Comparing Footnotes
|
There was a problem hiding this comment.
Risk: medium. Left a non-blocking comment (not approved): this changes public /data and admin success-rate KPI semantics across Cloudflare stats helpers and cron paths, which is above the low auto-approve threshold. Cursor Bugbot was not present; assigning a human reviewer for the metrics formula change.
Sent by Cursor Approval Agent: Pull Request Approver External
There was a problem hiding this comment.
All reported issues were addressed across 5 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
logsnag_insights calls utils/cloudflare getDeviceDaySuccessRateCF only. Co-authored-by: Cursor <cursoragent@cursor.com>
|





Summary (AI generated)
/datalive update success rate to device-dayapp_logoutcomes (fail-then-set same day = success only), undoing the fix(stats): unify success rate formula across admin and public metrics #2988 rawinstall/(install+fail)event formula that dropped the KPI from ~68% to ~24%.global_stats.success_ratecron now usesgetDeviceDaySuccessRateCFfor the completed day, and admin success/trend charts query device-day outcomes instead of rawversion_usagecounters.getUpdateStatshealth window alone (still install/fail for per-app health), so it no longer drives the marketing/admin headline KPI.Motivation (AI generated)
#2988 was supposed to make admin match the more accurate public device-day rate. Instead it rewrote both paths onto raw event counts, which over-count retries/failures and collapsed both numbers to ~24%.
Business Impact (AI generated)
Restores a trustworthy install success rate on the public
/datapage and admin Updates dashboard so Capgo is not publishing a misleadingly low reliability number.Test Plan (AI generated)
bunx vitest run tests/public-live-update-metrics.unit.test.ts/private/website_stats/live_updatessuccess_ratereturns near the pre-regression ~68% device-day levelusage_success_rateglobal_stats shard run (or manual shard trigger)Generated with AI
Made with Cursor
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.