Repository navigation
feat(app): eligible-event filters and the latency template in the builder - #3805
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 • 475 passed • 1 skipped • 1209s
Tests ran across 4 shards in parallel. |
…lder The eligible events in the SLO builder can now carry filters, shown and edited with Search's own filter pills; filters the pills cannot show, such as raw SQL, stay as written. The builder also gets a type switch between availability and latency. A latency SLO counts an event as good when its duration is within a threshold in milliseconds: the duration starts from a trace source's duration column, in the unit of its precision, and any other column or attribute can be used with the unit it holds, cast to a number. Events without a duration are left out, or counted as bad. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55f928e to
472be76
Compare
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Review process: Full human review — logic, architecture, edge cases. Stats
|
PR Review
4 finding(s): 🔴 1 P0/P1 · 🟡 2 P2 · 🔵 1 P3 None could be anchored to changed lines; they are listed below. 1 P3 folded at the bottom. Findings outside the changed lines
🔵 1 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 ship-blockers surfaced: the change is a self-contained, flag-gated frontend addition ( 🟡 P2 — recommended
🔵 P3 nitpicks (5)
Reviewers (6 returned): testing, maintainability, project-standards, agent-native, learnings-researcher, previous-comments. Correctness, adversarial, kieran-typescript, and julik-frontend-races were dispatched but had not returned at synthesis time — the findings above include the orchestrator's own full read of all five changed files and hands-on verification of the filter-classification, unit, and seeding logic, but the deep correctness/race pass is incomplete. 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
The eligible events in the SLO builder can now carry filters, shown and
edited with Search's own filter pills; filters the pills cannot show, such
as raw SQL, stay as written. The builder also gets a type switch between
availability and latency. A latency SLO counts an event as good when its
duration is within a threshold in milliseconds: the duration starts from
a trace source's duration column, in the unit of its precision, and any
other column or attribute can be used with the unit it holds, cast to a
number. Events without a duration are left out, or counted as bad.
Stack
Part 18 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: availability only, and filters are not shown.
On this branch:
Test plan
sloForm.test.tsHow 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.
[as-cast: allow] The cast check matches the word "as" in comments and strings here; the diff has no
ascasts.