Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Merge remote-tracking branch 'origin/admin-mention-checks' into admin-reads-commands

Abel Dantas89b9b84913fa
diff --cc CHANGELOG.md
index ff3673263,7fa8a9226..c87954044
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -159,12 -159,18 +159,24 @@@ version of their own to them without al
compares it only when someone signs in.
#### Changed
+ - **Workspaces belong to organizations. Upgrade by replacing every pod, and
+ downgrade the database before rolling back.** Every existing workspace gets
+ an organization of its own, and its owners become the organization's admins.
+ An organization admin administers every workspace in it without being added
+ to each. A release from before organizations doesn't know about organization
+ admins: if old and new pods serve together during a rolling update, or after
+ a rollback that keeps the new database, an owner removed from a workspace by
+ an old pod is still the organization's admin and can come back into it. So
+ for this release, replace every switch-core pod at once rather than rolling
+ them, and to roll back, first downgrade the database to the revision before
+ `238c68b7306e` (`alembic downgrade 238c68b7306e-1`), then start the older
+ release.
+- **Switch's own reader is woken only by commands.** The process that holds
+ a workspace's admin client read every row of every room to find the
+ `!command` rows it answers. A new row's announcement now names its type,
+ and that reader is woken for command rows only and reads only those, from
+ a partial index on them. Its warnings for tags nobody can answer are
+ already posted by the process that writes the message.
- **The heads-up for tagging an agent that isn't in the room comes from the
process that wrote the message, and costs nothing when every name tagged
is one of the room's agents.** The admin's consumer, which reads every