feat: platform admins can switch off check types #101

Merged
Sebi merged 1 commits from feat/check-type-toggle into main 2026-11-22 17:48:35 +00:00
Owner

Stacked on #100.

Admin panel → Check types: tick the types this installation offers. Switched-off types

  • disappear from the monitor editor (a monitor already of that type keeps it when edited),
  • are refused by the API for new monitors and for type changes (422 check_type_disabled),
  • keep running for existing monitors, so switching off later breaks nothing.

At least one type must stay on. Stored in the new platform_settings table (readable by all, writable only in system scope); cached with the versioned Redis counter, so every replica sees changes immediately. GET /api/v1/org/check-types lists the offered types; admin endpoints GET/PUT /api/v1/admin/check-types are audited and documented.

Also fixes the database check test calling Skip on the parent test when an optional server is not configured.

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

Stacked on #100. Admin panel → **Check types**: tick the types this installation offers. Switched-off types - disappear from the monitor editor (a monitor already of that type keeps it when edited), - are refused by the API for new monitors and for type changes (`422 check_type_disabled`), - keep running for existing monitors, so switching off later breaks nothing. At least one type must stay on. Stored in the new `platform_settings` table (readable by all, writable only in system scope); cached with the versioned Redis counter, so every replica sees changes immediately. `GET /api/v1/org/check-types` lists the offered types; admin endpoints `GET/PUT /api/v1/admin/check-types` are audited and documented. Also fixes the database check test calling Skip on the parent test when an optional server is not configured. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added this to the M11 Uptime Kuma parity milestone 2026-11-22 15:35:59 +00:00
Sebi changed target branch from feat/db-checks to main 2026-11-22 17:48:09 +00:00
Sebi added 1 commit 2026-11-22 17:48:09 +00:00
feat: platform admins can switch off check types
ci / image (pull_request) Successful in 2m32s
ci / build (pull_request) Successful in 7m28s
ci / lint (pull_request) Successful in 8m54s
ci / test (pull_request) Successful in 13m7s
fb03b28df7
Types an installation cannot offer, such as Docker on shared cloud
checkers, can be switched off in the admin panel. They are not offered
in the editor or accepted by the API for new monitors or type changes;
existing monitors keep running and stay editable. The setting lives in
a new platform_settings table and reaches every replica at once through
the versioned cache. GET /api/v1/org/check-types lists what is offered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit 3809c87880 into main 2026-11-22 17:48:35 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#101