fix(api): normalize telemetry query bounds for ClickHouse DateTime - #1
Draft
jacobwl wants to merge 2 commits into
Draft
fix(api): normalize telemetry query bounds for ClickHouse DateTime#1jacobwl wants to merge 2 commits into
jacobwl wants to merge 2 commits into
Conversation
… issues, and last-deploy columns Redesigns the /services table per the approved "dense table+" direction while keeping every data source fleet-level (no per-service fan-out): - serviceOverviewQuery gains a per-commit `firstSeen: min(Timestamp)` on the same scan; CommitBreakdown now carries errorCount + firstSeen. The serviceOverview cachedDirect policy is bumped to version 2 so pre-upgrade cached rows (missing the field) can't be served. - New GET /v2/error_issues/service_counts backed by ErrorsService.countOpenIssuesByService — one Postgres GROUP BY over actionable, error-kind, non-archived issues (name-scoped; env scoping would need the warehouse fingerprint intersection and is deliberately out). - New useServiceHealthSummary hook derives per-(service, env) health from the already-fetched alert incidents + anomalies; shared by the table (name dot, destructive left rail, footer tally, health filter) and the sidebar's new client-side Health facet. - P95 cell shows a tone-colored delta vs the trailing-7d baseline — first consumer of the existing fleet-level, hour-cached serviceHealthBaseline. - "Commit" becomes "Last deploy": commit message first (lazy per-distinct-sha lookup), sha · age demoted, rollout progress bar with breakdown tooltip, and an "errors ↑ since" state when the newest commit errors ≥2× the older ones. - Rows extracted into a memoized ServiceRow; baseline/issues/messages render progressively and never block first paint. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation