Skip to content

Rename Hubs to Orgs, with no behavior change (orgs phase 1) - #3696

Merged
3mcd merged 2 commits into
mainfrom
orgs-phase-1
Oct 20, 2026
Merged

3mcd merged 2 commits into
mainfrom
orgs-phase-1

Conversation

@3mcd

@3mcd 3mcd commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Hubs become Orgs ahead of orgs owning communities. Tables, models, server and client code, routes and superadmin tabs move from hub to org: Hubs → Orgs, HubManagers → OrgMembers, HubPubs → OrgFeaturedPubs, and hubId → orgId (also on CommunityTemplates, HubCommunities, HubOptOuts). /hub/:slug → /org/:slug, /hubs → /orgs, /api/hubs → /api/orgs. No redirects: none of it was public.

Adds Orgs.kfOrgId (nullable until the existing hubs get a KF Account) and Communities.orgId (nullable, not settable through community update). HubCommunities and HubOptOuts keep their table names until phase 2 drops them.

Migration 2026_10_19_renameHubsToOrgs runs in one transaction, has a working down, and drops the empty Orgs* tables that sync() creates from the new models before it renames the old ones onto them.

Issue(s) Resolved

Test Plan

Screenshots (if applicable)

Optional

Notes/Context/Gotchas

Supporting Docs

3mcd and others added 2 commits October 19, 2026 14:55
Hubs become Orgs ahead of orgs owning communities. Tables, models, server
and client code, routes and superadmin tabs move from hub to org:
Hubs → Orgs, HubManagers → OrgMembers, HubPubs → OrgFeaturedPubs, and
hubId → orgId (also on CommunityTemplates, HubCommunities, HubOptOuts).
/hub/:slug → /org/:slug, /hubs → /orgs, /api/hubs → /api/orgs. No
redirects: none of it was public.

Adds Orgs.kfOrgId (nullable until the existing hubs get a KF Account)
and Communities.orgId (nullable, not settable through community update).
HubCommunities and HubOptOuts keep their table names until phase 2 drops
them.

Migration 2026_10_19_renameHubsToOrgs runs in one transaction, has a
working down, and drops the empty Orgs* tables that sync() creates from
the new models before it renames the old ones onto them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@3mcd
3mcd merged commit 0ddd343 into main Oct 20, 2026
1 check passed
@3mcd
3mcd deleted the orgs-phase-1 branch October 20, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant