Add dashboard diagnostics#56
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughAdds a ChangesDashboard Diagnostics Feature
Sequence Diagram(s)sequenceDiagram
participant Browser
participant DiagnosticsVue
participant AgentManagementService
participant GetDashboardDiagnostics
participant SQLiteQuerier
Browser->>DiagnosticsVue: mount / window change
DiagnosticsVue->>AgentManagementService: getDashboardDiagnostics(window, sampleLimit)
AgentManagementService->>GetDashboardDiagnostics: auth check + DB precondition
GetDashboardDiagnostics->>SQLiteQuerier: ListProxyStatusCodeRollupsSince
GetDashboardDiagnostics->>SQLiteQuerier: ListProblemProxy*RollupsSince (×5 dimensions)
GetDashboardDiagnostics->>SQLiteQuerier: ListRecentProxyProblemSamplesSince
SQLiteQuerier-->>GetDashboardDiagnostics: rollup rows + sample rows
GetDashboardDiagnostics-->>AgentManagementService: GetDashboardDiagnosticsResponse
AgentManagementService-->>DiagnosticsVue: response
DiagnosticsVue-->>Browser: render outcome strip, status bars, dimension panels, samples table
sequenceDiagram
participant HTTPRequest
participant publicProxyContext
participant proxyRequestContextFromHTTP
participant recordProxyRequestEventAndContext
participant insertProxyRequestEventWithRollups
participant proxy_request_events
participant proxy_request_status_rollup_minutes
HTTPRequest->>publicProxyContext: newPublicProxyContext(r)
publicProxyContext->>proxyRequestContextFromHTTP: r
proxyRequestContextFromHTTP-->>publicProxyContext: {Method, Host, PathPrefix}
publicProxyContext->>recordProxyRequestEventAndContext: ctx.RequestContext
recordProxyRequestEventAndContext->>insertProxyRequestEventWithRollups: event + context params
insertProxyRequestEventWithRollups->>proxy_request_events: INSERT method, host, path_prefix
insertProxyRequestEventWithRollups->>proxy_request_status_rollup_minutes: UPSERT per-minute status rollup
Estimated code review effort🎯 5 (Critical) | ⏱️ ~120 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
Summary
Tests
Note: npm test was not run because web/management has no npm test script.
Summary by CodeRabbit