Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: implement organization role sync#14649

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 13 commits intomainfromstevenmasley/org_role_sync
Sep 17, 2024
Merged

Conversation

Emyrk
Copy link
Member

@EmyrkEmyrk commentedSep 11, 2024
edited
Loading

What this does

Existing deployment values configure site role sync. Organizations can now configure org role sync.

Removed existing role sync, and moved all code toidpsync package.

In support of#14203

@EmyrkEmyrk changed the titleStevenmasley/org role syncfeat: implement organization role syncSep 11, 2024
@EmyrkEmyrk marked this pull request as ready for reviewSeptember 11, 2024 20:53
@EmyrkEmyrkforce-pushed thestevenmasley/org_role_sync branch from96e4835 tod7e2ac0CompareSeptember 16, 2024 13:44
@EmyrkEmyrkforce-pushed thestevenmasley/org_role_sync branch fromd7e2ac0 to12c7af7CompareSeptember 16, 2024 17:33
Copy link
Contributor

@f0sself0ssel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is a lot so I'll admit some of the more detailed mapping logic I glossed over, but the tests look solid 👍 🦖

Emyrk reacted with heart emoji
Comment on lines +220 to +225
s.Logger.Debug(ctx, "OIDC roles ignored in assignment",
slog.F("ignored", ignored),
slog.F("assigned", filtered),
slog.F("user_id", user.ID),
slog.F("username", user.Username),
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍

@@ -215,6 +216,33 @@ func (api *API) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
aReq.Old = member.OrganizationMember.Auditable(member.Username)
defer commitAudit()

// Keep this block scoping to prevent accidental use of the user variable.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is basically saying this should be a function imo

Emyrk reacted with thumbs up emoji
@EmyrkEmyrk merged commit7139374 intomainSep 17, 2024
26 checks passed
@EmyrkEmyrk deleted the stevenmasley/org_role_sync branchSeptember 17, 2024 00:03
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsSep 17, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@f0sself0sself0ssel approved these changes

@coadlercoadlerAwaiting requested review from coadler

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp