The CLI has a full dashboard CRUD surface (dashboard list, view, create, widget operations) but has no awareness of the dashboard revision history feature available server-side.
Current behavior
- The API layer (
src/lib/api/dashboards.ts) uses standard dashboard CRUD endpoints
- No references to revisions, history, or versioning exist anywhere in the dashboard commands or API client
Gap
- Sentry's backend exposes
DashboardRevision via /organizations/{org}/dashboards/{id}/revisions/ (added in migration 1067)
- The web UI already surfaces revision history through
useDashboardRevisions and DashboardRevisionsButton
- CLI users cannot list revisions, restore previous versions, or diff dashboard changes
Suggested scope
- Add
dashboard revisions (or dashboard history) subcommand to list revisions for a dashboard
- Support restoring a previous revision
- Optionally support diffing between revisions
Action taken on behalf of Burak Yigit Kaya.
The CLI has a full dashboard CRUD surface (
dashboard list,view,create, widget operations) but has no awareness of the dashboard revision history feature available server-side.Current behavior
src/lib/api/dashboards.ts) uses standard dashboard CRUD endpointsGap
DashboardRevisionvia/organizations/{org}/dashboards/{id}/revisions/(added in migration 1067)useDashboardRevisionsandDashboardRevisionsButtonSuggested scope
dashboard revisions(ordashboard history) subcommand to list revisions for a dashboardAction taken on behalf of Burak Yigit Kaya.