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
Add LDAP group sync to Teams, fixes #1395 #16299
Add LDAP group sync to Teams, fixes #1395 #16299
Conversation
@svenseeberg can you resolve conflicts :) PS: since its a pull from an org we maintainer cant apply code suggestions or resolve conflicts. if you need help just tell us. |
Right, should not be an issue. We will take care of rebasing on the current main branch. |
I'll also look into the linting errors. |
|
you dont have to hurry we are currently in feature-freeze ... :) & we need some tests for this code |
Are there any specific requirements for the tests? Mocking an LDAP server is somewhat complicated ;-) However, we could easily test the functions that do not interact with the LDAP server. |
well we have unit tests who test selve contained functions or easy to moke on ... and we have integration tests: and we have a running ldap to test against (https://drone.gitea.io/go-gitea/gitea/41501/2/5) |
I guess we can work with that :-) |
We have some LDAP tests already which use a docker container for the LDAP. |
Codecov Report
@@ Coverage Diff @@
## main #16299 +/- ##
==========================================
+ Coverage 45.74% 46.14% +0.39%
==========================================
Files 831 839 +8
Lines 92178 92563 +385
==========================================
+ Hits 42171 42712 +541
+ Misses 43249 43066 -183
- Partials 6758 6785 +27
Continue to review full report at Codecov.
|
4b5e3d5
to
1e9b4dd
* Add setting for a JSON that maps LDAP groups to Org Teams. * Add log trace when removing or adding team members. * Sync is being run on login and periodically. * Existing group filter settings are reused. Co-authored-by: Giuliano Mele <[email protected]> Co-authored-by: Sven Seeberg <[email protected]>
@6543 we updated our pull request an included tests. Can you please review? |
* Adding and removing team members. * Sync not existing LDAP group. * Login with broken group map JSON. Co-authored-by: Giuliano Mele <[email protected]> Co-authored-by: Sven Seeberg <[email protected]>
Thank you for your review @6543
Thanks in advance for your feedback |
Co-authored-by: Sven Seeberg <[email protected]> Co-authored-by: Giuliano Mele <[email protected]>
@svenseeberg can you resolve conflicts :) (just do a merge of main and resolve - rebase or squash not required since pull's are squash-merged anyway) |
@wxiaoguang wana have a look at the ui part? |
Hmm, I think I found some problems. Could you allow edits from maintainers? Then I could push to this PR directly (and merge with main branch)
I proposed a PR netzbegruenung#4 (from wxiaoguang@6ef197e) Reason:
|
@svenseeberg can you cherry-pick netzbegruenung@6ef197e ? I thinkt that's the cleanset solution ... & merge upstream in first |
Oh sorry, I read this comment after I merged the PR. I added @wxiaoguang and @6543 as collaborators to our repo. |
Since the main branch has changed a lot (including the lint rules), there are some new work to do. Give me some more time. |
Fixing ... |
@wxiaoguang yes you did not adjust the tests appropriate |
ok two things need to be done:
@svenseeberg thanks - that will help :) |
Just tried the latest build and I can confirm that it works |
|
Thank you all for your work on this! |
* giteaofficial/main: Send mail to issue/pr assignee/reviewer also when OnMention is set (go-gitea#18707) Reduce CI go module downloads, add make targets (go-gitea#18708) Add number in queue status to monitor page (go-gitea#18712) Fix source code line highlighting (go-gitea#18729) Fix forked repositories missed tags (go-gitea#18719) [skip ci] Updated translations via Crowdin Fix release typo (go-gitea#18728) Display template path of current page in dev mode (go-gitea#18717) Separate the details links of commit-statuses in headers (go-gitea#18661) Add LDAP group sync to Teams, fixes go-gitea#1395 (go-gitea#16299) Change git.cmd to RunWithContext (go-gitea#18693)
fixes #1395
The text was updated successfully, but these errors were encountered: