Skip to content

feat(checks): bulk delete from the dashboard; maintenance-window API fixes; Postgres host= for the listener - #969

Merged
fclairamb merged 25 commits into
feat/todos-2026-11-21from
feat/todos-2026-11-21-2
Nov 21, 2026
Merged

fclairamb merged 25 commits into
feat/todos-2026-11-21from
feat/todos-2026-11-21-2

Conversation

@fclairamb

@fclairamb fclairamb commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Stacked on #966: merge it first.

Closes #941
Closes #961
Closes #965
Closes #945

What changed

  • Bulk delete of checks (Dashboard: multi-select and bulk delete of checks #941): the checks list gets row checkboxes, a select-all (loaded rows) and a bulk bar (Delete, Set regions, Automatic placement, Clear). Delete first shows a dry run listing the checks it would skip and why, and asks to type the count above 10 checks. New API DELETE /api/v1/orgs/:org/checks ({checkUids, dryRun}, up to 1000), with the same guards as a single delete (managed, internal, read-only, tunnel in use, other org). Tested on SQLite and Postgres, plus Playwright.
  • Postgres DSN (Postgres DSN: host= query parameter ignored when the URL has an authority host #961): the lib/pq LISTEN notifier now honours the host= socket parameter when the URL also has a host (the pgx pool already did). Startup logs when the socket overrides the URL host; documented in the database and docker docs.
  • Terraform provider, Step 1 (Terraform/OpenTofu provider: terraform-provider-solidping (repo, release, registries) #965): wiki/terraform-provider-api-audit.md now audits maintenance windows. Step 2 (the provider repo, release and registries) needs operator setup and moved to Terraform/OpenTofu provider: build and release terraform-provider-solidping (Step 2 of #965) #970.
  • AUR package solidping-bin (AUR package (user request) #945): deploy/aur/ (PKGBUILD from the per-arch solidping-linux-*.gz release assets, systemd unit, sysusers, update.sh, test.sh), CI job aur-package (tests it in an Arch container, outside the ci gate) and aur-publish (on stable tags, a no-op without the AUR_SSH_PRIVATE_KEY secret). Docs in wiki/distribution/aur.md. Publishing needs an AUR account: Publish solidping-bin on the AUR (operator setup) #971.
  • Maintenance windows, gaps found by that audit:
    • PATCH /maintenance-windows/:uid clears description / recurrenceEnd on an explicit null (an absent key still means unchanged).
    • PUT /maintenance-windows/:uid/checks rejects unknown or other-org check and group uids with a 422 VALIDATION_ERROR (before: a 500, or a cross-tenant link), and dedupes repeated uids.
  • Batch gate: fixed checks-index-host-view e2e for the new checkbox column. TestSilentAgentIsClosedAfterTwoMissedProbes (agentws) flaked once under load, unrelated to this batch.

Decided by autopilot

🤖 Generated with Claude Code

fclairamb and others added 3 commits November 21, 2026 10:11
…ifier too (#961)

With `postgres://u:p@localhost:5432/db?host=/var/run/postgresql`, the pool
(pgdriver) used the socket but the notifier (lib/pq) went over TCP: lib/pq's
convertURL sorts the key=value pairs, so host='localhost' sorted after the
socket path and won. ListenerDSN (server/internal/db/postgres/dsn.go) now drops
the authority host, keeping its port, so both drivers follow libpq precedence.
Startup logs when the socket overrides the URL host; docs say so.
dsn_precedence_test.go asserts both drivers' parsed target; it failed before
(lib/pq Host = localhost).

Closes #961
fclairamb and others added 8 commits November 21, 2026 10:14
Per-check skips (not_found, read_only, internal, managed, tunnel_in_use, error), dryRun, shared guard with the single delete. Refs #941
Row checkboxes, select-all, bulk bar, dry-run delete dialog with typed
confirmation above 10 checks; set regions and automatic placement use the
explicit selection. Changelog (release-please): bulk delete of checks.

Closes #941
Handler-level 400/422 tests, bulk delete on embedded Postgres.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Adds the solidping_maintenance_window section to the API audit and files
follow-up specs for the two gaps found (PATCH cannot clear fields, SetChecks
does not validate uids). Step 2 (provider repo) is tracked outside this tree.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fclairamb and others added 7 commits November 21, 2026 10:36
Explicit null on description/recurrenceEnd now clears the column.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ecks

Unknown, deleted or foreign-org uids now return 422 VALIDATION_ERROR naming checkUids[i] / checkGroupUids[i]; repeated uids are deduplicated.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@fclairamb fclairamb changed the title fix(db): honour Postgres host= socket for the listener; bulk delete and Terraform provider specs feat(checks): bulk delete from the dashboard; maintenance-window API fixes; Postgres host= for the listener Nov 21, 2026
@fclairamb fclairamb added the implemented Every spec of the PR is implemented and its batch gate was green label Nov 21, 2026
An Arch/CachyOS user asked for an AUR package. deploy/aur/ holds it:
update.sh renders PKGBUILD and .SRCINFO from the release's
solidping-checksums.txt (sources: solidping-linux-{amd64,arm64,riscv64}.gz,
the exact assets server-release publishes), plus a systemd unit mirroring
`solidping service install`'s hardening, a sysusers entry and install
messages. test.sh checks the rendering and builds, namcaps, installs and
runs the package in an archlinux:base-devel container (passes for 0.52.0);
the aur-package CI job runs it. aur-publish pushes to the AUR on stable
tags once the AUR_SSH_PRIVATE_KEY secret exists. Maintenance:
wiki/distribution/aur.md.

Closes #945

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added implemented Every spec of the PR is implemented and its batch gate was green and removed implemented Every spec of the PR is implemented and its batch gate was green labels Nov 21, 2026
fclairamb and others added 2 commits November 21, 2026 19:35
… group, set period

- The selection bar is fixed to the bottom of the screen, over the page
  column, so selecting no longer shifts the rows.
- Each checks table has a select-all checkbox in its header (half-ticked
  when only some of its rows are selected).
- New bulk actions: "Move to group" and "Set period". Automatic placement
  moves under the "Set regions" menu.
- The bulk check PATCH accepts checkGroupUid ("" ungroups); an unknown or
  foreign group rejects the whole request.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb
fclairamb merged commit 18dee28 into feat/todos-2026-11-21 Nov 21, 2026
3 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-21-2 branch November 21, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch implemented Every spec of the PR is implemented and its batch gate was green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant