Repository navigation
fix(idp): land sign-up link invitees in their org and hide personal workspaces on Compose (OHE-3902) - #1181
Merged
hieptl merged 1 commit intoNov 5, 2026
Conversation
…orkspaces on Compose (OHE-3902) On a Docker Compose install a super admin invites people through an org-scoped sign-up link (POST /api/idp/signup-links). POST /oauth/idp/invite created the account and added the membership but left current_org_id on the personal workspace, so Agent Canvas opened there instead of in the org. Only invitation-minted links (OHE-3825) moved the user. - _ensure_org_membership reports whether it added the membership, and the accept route moves a newly added member off their personal workspace into the link's org before completing the login, the same rule as _accept_invitation_for_new_user. A user who already sits in a team org, or who was already a member, stays where they are. - docker-compose.yml sets HIDE_PERSONAL_WORKSPACES and OH_WEB_CLIENT_FEATURE_FLAGS_HIDE_PERSONAL_WORKSPACES so personal workspaces are hidden once a user belongs to an organization. - Tests cover the landing step and the two cases that must not move the user.
Contributor
hieptl
deleted the
hiep/ohe-3902-invites-invited-users-land-in-a-personal-workspace-instead
branch
November 5, 2026 14:44
Contributor
|
🚀 Released in 1.87.0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
AGENT:
Why
On a Docker Compose install, a super admin invites people with an org-scoped sign-up link (
POST /api/idp/signup-links): with the integrated IDP on, the Org Members page offers super admins only "Create Sign-up Link".POST /oauth/idp/invitecreated the account and added the membership, but leftcurrent_org_idon the personal workspace. Agent Canvas picks the backend's current org on first load, so the invitee landed in "Personal Workspace" instead of the org they were invited to. Only invitation-minted links (#1082, OHE-3825) moved the user. The OHE 2.0 testing feedback also asked for personal workspaces to be hidden on Compose installs, anddocker-compose.ymldid not set the existingHIDE_PERSONAL_WORKSPACESflags.Summary
_ensure_org_membershipnow returns whether it added the membership, andidp_invite_acceptmoves a newly added member off their personal workspace into the link's org and refreshes the user before completing the login, the same rule as_accept_invitation_for_new_user. A user who already sits in a team org, or who was already a member, stays where they are.docker-compose.ymlsetsHIDE_PERSONAL_WORKSPACES(backend org listing, which Canvas honours throughis_visible) andOH_WEB_CLIENT_FEATURE_FLAGS_HIDE_PERSONAL_WORKSPACES(settings pages; required because the file already sets other structured feature flags).tests/unit/server/routes/test_idp.pycover the landing step and the two cases that must not move the user.Issue Number
OHE-3902
How to Test
On the Compose stack:
/canvasopens with that org active, and the org switcher does not list "Personal Workspace".The unit tests, pre-commit and
docker compose configpass. Steps 1–4 have not been run against a live Compose stack yet.Video/Screenshots
None. Backend and Compose configuration change; the set-password page is unchanged.
Type
Notes
HIDE_PERSONAL_WORKSPACES.docker compose upwith the updated file.Enterprise server image for this PR: