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
Dashboard: multi-select and bulk delete of checks #941
Schön wäre eine Mehrfachauswahl, da ich die vorkonfigurierten Sachen in einem Rutsch löschen möchte.
The dashboard has no multi-select on the checks list; deleting several seeded/demo checks means one delete per check. Bulk create exists only in the test API (/api/v1/test/checks/bulk), not as a user-facing bulk delete.
Suggestion: multi-select (checkboxes) on the checks list + a bulk delete action with confirmation.
Apply reconciles a whole manifest. It only deletes checks carrying its own solidping-managed label that are missing from the manifest, and never adopts or deletes hand-made or seeded checks (checks/apply.go).
Its deletion cap (DefaultDeletionCap = 10 without force) protects config-as-code users and must not be bypassed for a UI action.
The reporter's case (the preconfigured checks) is exactly what apply cannot reach.
Do: add a bulk delete next to the existing bulk update.
Per check: a check that cannot be deleted is reported in skipped with a reason, and the others are still deleted. Reasons: a read-only demo check, a check not in this org, an internal check, a check managed by apply. The last one would be recreated by the next apply, so skip it and say so.
dryRun runs every check and writes nothing, so the dialog shows the real count.
Same permission as a single-check delete (admin/editor). One audit event per deleted check.
Update the OpenAPI spec and the API docs.
Dashboard (checks.index.tsx). Today the bulk actions (set regions, automatic placement) act on the checks matching the list's current filters (useChecksMatching), with no row selection. Add:
A checkbox on every row, plus select-all for the visible rows, keeping the selection across pages.
When rows are selected, a bulk action bar ("N selected": Delete, Set regions, Automatic placement, Clear). The existing bulk dialogs take the explicit selection when there is one and keep using the filters otherwise.
Delete opens a confirmation dialog that dry-runs first, lists what will be skipped and why, and asks to type the count when more than 10 checks are selected.
data-testid on every new element (check-row-checkbox, checks-select-all, checks-bulk-delete-button, checks-bulk-delete-confirm...). Mobile: the bar stays usable on small screens.
Leave DELETE /api/v1/test/checks/bulk alone. It is the test-mode slug-prefix helper and stays test-only.
Tests.
Backend table tests: mixed eligible, demo, managed and foreign checks; dryRun writes nothing; permissions; SQLite and Postgres.
Playwright: select three checks, delete them, verify they are gone and the others remain; select-all, then deselect one.
Then. Changelog entry and a reply to the reporter with the version.
Converted to a spec: specs/todos/2026-11-21-03-bulk-delete-checks.md (sonnet/high), why: new API endpoint (DELETE /api/v1/orgs/:org/checks), data deletion, backend + dashboard. Follows the design in the analysis comment above. Not implemented yet: closing because the spec now tracks it.
Activity
fclairamb commentedon Nov 21, 2026
Analysis before implementation.
Do not use
/applyfor this.solidping-managedlabel that are missing from the manifest, and never adopts or deletes hand-made or seeded checks (checks/apply.go).DefaultDeletionCap= 10 without force) protects config-as-code users and must not be bypassed for a UI action.Do: add a bulk delete next to the existing bulk update.
DELETE /api/v1/orgs/{org}/checkswith{ "checkUids": [...], "dryRun": bool }, mirroringPATCH /api/v1/orgs/{org}/checks(bulkUpdateChecks, spec 2026-11-05-01):skippedwith a reason, and the others are still deleted. Reasons: a read-only demo check, a check not in this org, an internal check, a check managed by apply. The last one would be recreated by the next apply, so skip it and say so.{ deleted, skipped: [{checkUid, code, detail}] }.dryRunruns every check and writes nothing, so the dialog shows the real count.checks.index.tsx). Today the bulk actions (set regions, automatic placement) act on the checks matching the list's current filters (useChecksMatching), with no row selection. Add:data-testidon every new element (check-row-checkbox,checks-select-all,checks-bulk-delete-button,checks-bulk-delete-confirm...). Mobile: the bar stays usable on small screens.DELETE /api/v1/test/checks/bulkalone. It is the test-mode slug-prefix helper and stays test-only.dryRunwrites nothing; permissions; SQLite and Postgres.fclairamb commentedon Nov 21, 2026
Converted to a spec:
specs/todos/2026-11-21-03-bulk-delete-checks.md(sonnet/high), why: new API endpoint (DELETE /api/v1/orgs/:org/checks), data deletion, backend + dashboard. Follows the design in the analysis comment above. Not implemented yet: closing because the spec now tracks it.fclairamb commentedon Nov 21, 2026
autopilot: in #969
feat: bulk delete of checks (DELETE /orgs/:org/checks)
feat: select several checks in the dashboard and delete them at once
feat(checks): bulk delete from the dashboard; maintenance-window API …