Files
uptimesebi/internal/store/queries/platform_settings.sql
Sebastian UnterschützandClaude Opus 5.5 fb03b28df7
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
feat: platform admins can switch off check types
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
2026-11-22 16:35:49 +01:00

7 lines
255 B
SQL

-- name: GetPlatformSetting :one
SELECT value FROM platform_settings WHERE key = $1;
-- name: SetPlatformSetting :exec
INSERT INTO platform_settings (key, value) VALUES ($1, $2)
ON CONFLICT (key) DO UPDATE SET value = EXCLUDED.value, updated_at = now();