Skip to content

fix(core): fix provision organization by ids query#7207

Merged
charIeszhao merged 1 commit intomasterfrom
charles-log-11071-does-not-auto-join-org
Mar 31, 2025
Merged

fix(core): fix provision organization by ids query#7207
charIeszhao merged 1 commit intomasterfrom
charles-log-11071-does-not-auto-join-org

Conversation

@charIeszhao
Copy link
Copy Markdown
Member

Summary

Fix the issue that when no default roles are set in organizations, new users cannot be provisioned to these organizations via one-time token, even though the organization IDs are already included in the token context.

This PR resolves the issue by left joining Organization table and OrganizationJitRoles table in the corresponding DB query.

Testing

Locally tested

Checklist

  • .changeset
  • unit tests
  • integration tests
  • necessary TSDoc comments

@charIeszhao charIeszhao requested a review from a team March 28, 2025 15:06
@charIeszhao charIeszhao self-assigned this Mar 28, 2025
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 28, 2025

COMPARE TO master

Total Size Diff 📈 +253 Bytes

Diff by File
Name Diff
packages/core/src/queries/organization/index.ts 📈 +253 Bytes

@charIeszhao charIeszhao force-pushed the charles-log-11071-does-not-auto-join-org branch from 549613b to 3a3b895 Compare March 29, 2025 03:18
@charIeszhao charIeszhao merged commit d9e51d1 into master Mar 31, 2025
36 checks passed
@charIeszhao charIeszhao deleted the charles-log-11071-does-not-auto-join-org branch March 31, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants