Admin page, and move behaviour settings into the database #5
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of #1. Depends on the admin role and teams.
Today
All settings are env vars (
internal/config/config.go), so changing one means a redeploy. There is no admin UI; the SPA is queue, incident, on-call, alerts and account (internal/web/static/js/).Scope
Settings
settingstable, key/value, read through a small typed accessor rather than scattered lookups.StartNotifier,StartArchiver) read the current value each tick instead of capturing it at startup.Admin UI (a new section in the SPA, admin-only)
Notes
Team-level config (escalation policy, schedules, integrations, fallback topic, dead-man switches) belongs to the team's own settings page, edited by an owner, not to this global admin area.
Done when
An admin can change the repeat interval in the UI and the notifier picks it up without a restart, a non-admin gets no admin section and 403s from its endpoints, and a fresh install's defaults match the current env defaults.