feat(dashboard): add revision history and restore commands#936
feat(dashboard): add revision history and restore commands#936MathurAditya724 merged 4 commits intomainfrom
Conversation
Add `sentry dashboard revisions` to list revision history for a dashboard and `sentry dashboard restore` to revert to a previous revision. - New API functions: listDashboardRevisionsPaginated, restoreDashboardRevision - DashboardRevision type with Zod schema - Full cursor-based pagination support for revisions list - `history` alias for `revisions` subcommand Fixes #935
|
|
fix-ci: attempt 1 — |
|
fix-ci: added |
Codecov Results 📊✅ 6856 passed | Total: 6856 | Pass Rate: 100% | Execution Time: 0ms 📊 Comparison with Base Branch
All tests are passing successfully. ❌ Patch coverage is 75.68%. Project has 14046 uncovered lines. Files with missing lines (3)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
- Coverage 77.06% 76.97% -0.09%
==========================================
Files 317 319 +2
Lines 60587 60988 +401
Branches 0 0 —
==========================================
+ Hits 46688 46942 +254
- Misses 13899 14046 +147
- Partials 0 0 —Generated by Codecov Action |
|
all CI checks green — lint, typecheck, unit tests, e2e, binary builds, and docs all pass. self-review looks clean: the two new commands follow existing dashboard command patterns, pagination and error handling are consistent, and completion sets are updated. marked ready for review. |
…estore - Fix placeholder from 'org/project/dashboard' to 'org/dashboard' since dashboards are org-scoped, not project-scoped - Add test coverage for revisions and restore commands
Add
sentry dashboard revisionsandsentry dashboard restorecommands to support dashboard revision history.revisionslists saved revisions for a dashboard with cursor-based paginationrestorereverts a dashboard to a specific revision by IDhistoryalias available forrevisionsCloses #935