-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[server] try to fix org membership on login #18399
Conversation
in case it didn't succeed on first attempt this might help during the following ones.
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.
LGTM
/unhold |
orgId: string, | ||
memberId: string, | ||
role: OrgMemberRole, | ||
): Promise<void> { | ||
await this.auth.checkPermissionOnOrganization(userId, "write_members", orgId); | ||
if (userId) { |
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.
@svenefftinge, now thinking about that change. This could actually be the fix.
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.
Just curious, why this is not happening on dogfood?
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.
The featureflag is disabled. So these checks don't throw
in case it didn't succeed on first attempt this might help during the following ones.
Description
Summary generated by Copilot
🤖 Generated by Copilot at 69f54c6
Refactor
iam-session-app.ts
to optimize login with OIDC and organization membership. Reduce database queries and check organization validity.Related Issue(s)
Fixes #
How to test
Documentation
Preview status
gitpod:summary
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold