Repository navigation
feat(app): group-by in the SLO builder - #3813
alex-fedotyev wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Duplicate code analysis1 new clone introduced by this PR.
If one of these duplicates a helper that already exists, import it instead jscpd compared this branch against |
E2E Test Results✅ All tests passed • 478 passed • 1 skipped • 1090s
Tests ran across 4 shards in parallel. |
Adds an optional group-by to the SLO builder: a SQL expression such as ServiceName whose values each get their own SLI, error budget and alerts, with the 100 values with the most events tracked. An empty group-by saves as none. The preview counts how many groups the window has, and says its numbers are for all groups together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
673054e to
96c6a8b
Compare
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
PR Review
2 finding(s): 🔴 0 P0/P1 · 🟡 0 P2 · 🔵 2 P3 No inline comments. 2 P3 folded at the bottom. 🔵 2 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
Deep Review✅ No critical issues found. No P0/P1. The group-by round-trip ( 🟡 P2 — recommended
🔵 P3 nitpicks (2)
Reviewers (6): correctness, testing, maintainability, kieran-typescript, julik-frontend-races, adversarial. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
Summary
Adds an optional group-by to the SLO builder: a SQL expression such as
ServiceName whose values each get their own SLI, error budget and alerts,
with the 100 values with the most events tracked. An empty group-by saves
as none. The preview counts how many groups the window has, and says its
numbers are for all groups together.
Stack
Part 26 of 27 PRs in a GitHub stack (stack #3815). The header says this PR merges into the branch below it, but the stack's base is
main: merging a PR lands it and every PR below it onmain, one squashed commit each. Each diff is only its own change, and CI runs as if each PR targetsmain.Parts 1 to 6 are shared code, 7 to 13 the API and its MCP tools, and 14 to 27 the app. Everything ships behind
ENABLE_SLOS(API) andNEXT_PUBLIC_ENABLE_SLOS(app), both off by default.Screenshots or video
How to reproduce
Starting point:
yarn devon this branch (the pages need the API)..env.developmentturns onENABLE_SLOSandNEXT_PUBLIC_ENABLE_SLOS(parts 7 and 14). Use a trace or log source with data; the demo server works.On the previous part: the builder has no group-by.
On this branch:
ServiceNameand run the preview: it counts the groups and says its numbers are for all groups together.Test plan
sloForm.test.ts(an empty group-by saves as none, the group count in the preview)How to test on Vercel preview
N/A: SLOs need the API, and the preview runs in local mode, where they are off.
References
[no-changeset: allow] The changeset for this piece is in part 27.
[no-story: allow] The new SLO components are page-level and fed by queries and form state, so this feature has no Storybook stories.
[ui-states: allow] No new empty, loading or error states here beyond the ones listed above.