Skip to content

fix(testutils): Add the staff org id in login_as - #127795

Draft
joshuarli wants to merge 1 commit into
masterfrom
fix/login-as-staff-org-id
Draft

joshuarli wants to merge 1 commit into
masterfrom
fix/login-as-staff-org-id

Conversation

@joshuarli

Copy link
Copy Markdown
Member

login_as checks STAFF_ORG_ID but then adds SUPERUSER_ORG_ID to the organization ids, so staff logins never mark the staff organization as SSO-verified, and when only STAFF_ORG_ID is set it adds None. This adds STAFF_ORG_ID instead.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@getsantry

getsantry Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

login_as checked STAFF_ORG_ID but added SUPERUSER_ORG_ID to the organization ids, so staff logins in tests never got the staff SSO organization and could add a None id when only STAFF_ORG_ID was configured.
@joshuarli
joshuarli force-pushed the fix/login-as-staff-org-id branch from 7f5e7a5 to ec1489d Compare November 26, 2026 00:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Team: python-typing Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant