Skip to content

Dashboard: multi-select and bulk delete of checks #941

Closed

Description

@fclairamb

From a user comment on the feddit.org project post (https://feddit.org/post/38184275, comment https://feddit.org/comment/16144435, 2026-11-18):

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.

Activity

  1. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    Analysis before implementation.

    Do not use /apply for this.

    • 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.

    1. API. Add DELETE /api/v1/orgs/{org}/checks with { "checkUids": [...], "dryRun": bool }, mirroring PATCH /api/v1/orgs/{org}/checks (bulkUpdateChecks, spec 2026-11-05-01):
      • 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.
      • Response: { deleted, skipped: [{checkUid, code, detail}] }.
      • 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.
    2. 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.
    3. Leave DELETE /api/v1/test/checks/bulk alone. It is the test-mode slug-prefix helper and stays test-only.
    4. 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.
    5. Then. Changelog entry and a reply to the reporter with the version.
  2. added
    converted-to-spec
    on Nov 21, 2026
  3. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    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.

  4. fclairamb commented on Nov 21, 2026

    @fclairamb
    OwnerAuthor

    autopilot: in #969

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    autopilotconverted-to-spec

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions