You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(grafana): delete the home-grown dashboard builders #5278
src/devops_cli/grafana/builders.py and the panel types of src/devops_cli/grafana/schema.py are a home-grown builder of the Grafana dashboard schema (dashboard, layout, row, stat, target, targets, timeseries). No module of src/ calls the builders: git grep finds them only in src/devops_cli/grafana/__init__.py and in tests/grafana/test_grafana_dashboards.py, sections 1 to 4 and the test test_generated_dashboards_lint_clean. The service dashboards now come from the Grafana Foundation SDK (#5184), so the project has two dashboard builders, and only the SDK makes a committed dashboard.
Proposed Solution & Architectural Design
Delete the builders and their tests. The linter tests make their dashboards as JSON dicts, or with the SDK of the dependency group dashboards.
Keep the part of schema.py that the linter reads (Dashboard, Panel, Target, GridPos, Datasource), or read the dashboards with the SDK models (grafana_foundation_sdk.models.dashboard.Dashboard.from_json) if the linter can run on them.
Target Subsystem
Grafana (src/devops_cli/grafana/).
Existing Tool Considered
The Grafana Foundation SDK (Apache-2.0, Grafana Labs), which #5184 adds as a build-time dependency group. The change deletes code and adds none.
Scope: none. The title has the scope grafana, and .github/labels.yml declares no scope/grafana label. Add the label to the file to give the scope to this item.
Priority: P3-Low. Dead code removal with no user-facing change and no blocking dependency.
Activity
dan-petty commentedon Nov 12, 2026
grafana, and .github/labels.yml declares no scope/grafana label. Add the label to the file to give the scope to this item.Dead code removal with no user-facing change and no blocking dependency.Both concern the Grafana schema models in schema.py; #315 created them, the candidate deletes the builder code that used them.devops-cli-service commentedon Nov 15, 2026
Released in v0.155.0: https://github.com/dan-petty/devops-cli/releases/tag/v0.155.0
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 16:38 UTC