-
Notifications
You must be signed in to change notification settings - Fork 455
[chore] Remove personal organizations and fix organization selector #3401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[chore] Remove personal organizations and fix organization selector #3401
Conversation
…dling and related flags. Simplify upgrade steps for organizations table cleanup.
…rious models and services to streamline organization management.
…nd simplify upgrade steps. Update migration script to focus on is_demo field only.
…to streamline workspace management.
…amline organization display logic.
…line organization display logic.
…g personal organization checks and simplifying workspace resolution.
…on prioritization and simplifying workspace ID resolution process.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| return firstNonDemoOwned ?? null | ||
| } | ||
|
|
||
| export const resolvePreferredWorkspaceId = (userId: string | null, orgs?: Org[]) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the post-auth flow to decide where the user should land
| simple_testset_create_request=simple_testset_create_request, | ||
| ) | ||
| except Exception as e: | ||
| except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
running ruff for me creates 100 of changes like these, not sure why our ci is not catching them. I removed all linting to make the review easy. Let's take a look at this and clean main in a different pr
…t to streamline organization settings.
…load and update related router function to create_organization for clarity and consistency in organization management.
…ganization to organization
- Fix auth upgrade flow to clear pending invites and prevent redirect loops - Add invite email mismatch detection with user-friendly messaging - Improve error handling in invite acceptance with actionable messages - Extract authMessages helper for consistent error formatting - Wait for profile loading before checking invite email match - Add shouldShowNormalAuthFlow derived state for cleaner conditionals - Memoize org select options to prevent unnecessary re-renders - Add rel=noopener noreferrer to external links for security - Fix profile loading initialization in URL sync
76ce09e
into
feat/add-multi-orgs-domains-and-sso
Summary
is_personalflag from organization models and creation flowChanges
is_personalfromCreateOrganizationmodel andOrganizationFlagsisPersonalOrghelper and all personal org UI elements>= 1orgs instead of> 1