experiments: prefer the authoritative culledAt stamp over /tracks inference - #82
Conversation
…erence
lantern-cloud#3126 stamps culled_at/culled_by_experiment_id on the
experiment row when a promotion's track is culled, and carries both
through the promoted-comparison endpoint. Badging/hiding now unions that
stamp with the existing /tracks-absence heuristic: the stamp survives a
/tracks fetch failure and attributes the culling promotion on the badge
("culled by #N"), while the heuristic still catches promoted tracks
disabled outside a cull, which nothing stamps.
Deploying lantern-dashboard with
|
| Latest commit: |
2c2ec18
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c29d556a.lantern-dashboard.pages.dev |
| Branch Preview URL: | https://reflog-culled-at-field.lantern-dashboard.pages.dev |
|
Warning Review limit reached
Next review available in: 56 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. 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: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe promoted comparison API now exposes culling metadata. The experiments overview uses that metadata and live-track presence to detect culled tracks, update counts and filters, and show culling details on promotion traffic cards. ChangesPromoted track culling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
There was a problem hiding this comment.
Pull request overview
Updates the Experiments “Promoted vs original” UI to prefer the new server-provided cull stamp (culledAt / culledByExperimentId) when deciding whether a promoted track has been culled, while retaining the existing /tracks-presence heuristic as a fallback for non-cull disables.
Changes:
- Extend
PromotedComparisonPointwithculledAtandculledByExperimentIdfields from the promoted-comparison endpoint. - Update culled detection to treat a promotion as culled when
culledAtis present, otherwise fall back to “missing from live tracks”. - Enhance the culled badge/tooltip to attribute “culled by #N” when
culledByExperimentIdis available.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/components/ExperimentsOverview.tsx | Prefer authoritative culledAt/culledByExperimentId for culled detection and improve culled badge/tooltip messaging, with /tracks fallback retained. |
| src/api/client.ts | Add typed fields for the new cull stamp data on promoted-comparison points. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
What
Companion to getlantern/lantern-cloud#3126, which closes the bookkeeping gap #79 worked around:
CullWorstnow stampsculled_at/culled_by_experiment_idon the culled track's experiment row (with a migration backfilling the existing husks) and carries both through the promoted-comparison endpoint.The promoted-vs-original cards now treat a promotion as culled when either:
culledAtis set (authoritative; survives a/tracksfetch failure), orWhen the stamp attributes the culling promotion, the badge upgrades from
culledtoculled by #Nwith the cull date in the tooltip.Notes
npm run buildclean;npm run lintidentical to main (17 pre-existing problems, none introduced).Summary by CodeRabbit
New Features
Bug Fixes