Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 26 minutes. View limit details
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. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
Code review (code-reviewer pass) at f4353a8Verdict: APPROVE No blocker or major findings. The
|
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
The install metrics screen read
system_metrics.cpu_percentand friends from/monitoring/dashboard/overview. That route returns the monitor's dict, whose host block issystemwithcpu_usage_percent/memory_usage_percent(the namesmonitoring_utils.pyreads), so the host card was always "Not reported". The route isresponse_model=dict, so it publishes no schema and there is no generated type to import; the reader's single declaration is now aligned with what the backend produces. The route itself matches its (untyped) contract, so no backend change.What Changed
useInstallMetricsApi.ts:InstallSystemMetricsis nowcpu_usage_percent/memory_usage_percent, dashboard fieldsystem; disk and process count removed (the monitor reports neither); newanalysisMeasured()andisMainAppUnauthorised().InstallMetricsOverview.vue: reads the real fields; the route's default analysis (healthy, score 0, no bottlenecks) is shown as not reported.InstallMetrics.vue:isEmptycounts measured host or analysis figures; newunauthorisedstate when all six reads fail with 401/403.stat.disk/stat.processes; addunauthorisedTitle/unauthorisedBody(English copies, as the other locales for this screen).InstallMetrics.test.ts: fixtures shaped like the route payload; new tests for host-measured, analysis-measured, default analysis, 401/403, 502/503/504 and mixed failures.Verification
npx vitest run src/views/monitoring/InstallMetrics.test.tsinautobot-slm-frontend: 17 passed.eslinton the touched files clean;vue-tsc --noEmitexit 0.repo_testsi18n, locale, API-contract, file-size and UI-literal guards: 116 passed.Risks
Disk and process count no longer appear on the card; they had no source. Other locales carry English text for the two new keys until translated.
Model Used
Claude Sonnet 5.5 (claude-sonnet-5-5)
Issue Link
Closes #20815
Single-issue rationale: the only open PR on these SLM install-metrics files; no sibling issue shares the scope.
Changelog fragment
changelog/unreleased/{issue}-{slug}.md— or N/A (internal change)Checklist
CLAUDE.mdgit commitruns them automatically)main(notrelease)🤖 Generated with Claude Code