Closes#4. The last piece of the stack: #10 and #11 are already on main, and #12 merged into teams, so this carries just that work up.
Everything in #12's description applies unchanged — switches become a row per team seeded from (but never overwritten by) the environment variables, and the UI gains a team badge, a team filter chip and one on-call card per team, all of which appear only when the viewer is in more than one team.
Verified again on this branch: make fmt lint test helm-lint green with -race against Postgres 17.
Closes #4. The last piece of the stack: #10 and #11 are already on `main`, and #12 merged into `teams`, so this carries just that work up.
Everything in #12's description applies unchanged — switches become a row per team seeded from (but never overwritten by) the environment variables, and the UI gains a team badge, a team filter chip and one on-call card per team, all of which appear only when the viewer is in more than one team.
Verified again on this branch: `make fmt lint test helm-lint` green with `-race` against Postgres 17.
https://claude.ai/code/session_01RHPj4ggeFdEjKKfm4SHbD7
The rest of #4. Two halves that belong together because they are the
same sentence from opposite ends: a team decides which of its alerts are
heartbeats, and the UI has to be able to say which team it is talking
about.
Switches were three environment variables, which made them one setting
for the whole install. That was the last piece of the alerting path a
team could not control: it could take its own alerts on its own key and
still not say which of them were heartbeats, or how long a silence had
to last. They are a row per team now, edited by an owner through
PUT /api/teams/{teamID}/deadman, and the sweeper runs each team against
its own matchers, timeout and severity.
The environment variables become the starting point rather than the
setting. Every team without a configuration is seeded from them at
startup, so an upgrade keeps watching exactly what it was watching, and
SeedDeadmanConfigs never overwrites -- a redeploy must not put the
environment's value back over an owner's edit. A team created later
watches nothing until somebody says otherwise: inheriting an
install-wide heartbeat would page a new team about a source it has never
heard of, and a switch nobody chose is the kind that gets muted rather
than fixed.
A matcher string with no alertname in it is refused at the door instead
of stored. Storing it would produce a switch that watches nothing
silently, which is the exact failure the feature exists to prevent.
NewRouter and Sweep lose their DeadmanConfig parameter -- there is no
longer one answer to hand them. The type stays, because parsing a
matcher string is still parsing a matcher string.
The UI side: rows in the queue carry a team badge, the filter row gains
a team chip per team, and "on call now" shows one card per team. All
three appear only when the viewer is in more than one team -- otherwise
they are the same word repeated down a list, which is noise rather than
information, and the single-team install reads exactly as it did before
teams existed.
Verified against a live two-team server as well as in tests: the
combined queue labelled by team, the team_id filter, a heartbeat that is
a heartbeat in one team and an ordinary alert in another, and a new
team's switches starting empty while the upgraded team keeps the
environment's.
Claude-Session: https://claude.ai/code/session_01RHPj4ggeFdEjKKfm4SHbD7
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #4. The last piece of the stack: #10 and #11 are already on
main, and #12 merged intoteams, so this carries just that work up.Everything in #12's description applies unchanged — switches become a row per team seeded from (but never overwritten by) the environment variables, and the UI gains a team badge, a team filter chip and one on-call card per team, all of which appear only when the viewer is in more than one team.
Verified again on this branch:
make fmt lint test helm-lintgreen with-raceagainst Postgres 17.https://claude.ai/code/session_01RHPj4ggeFdEjKKfm4SHbD7