Skip to content

Support dashboard revision history #935

@sentry-junior

Description

@sentry-junior

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.

Metadata

Metadata

Labels

No labels
No labels
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions