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(groups): add LDAP link manager and deprecate old API endpoints#2379

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
JohnVillalovos merged 1 commit intomainfromfeat/ldap-group-links-manager
Nov 17, 2022

Conversation

nejch
Copy link
Member

@nejchnejch commentedNov 17, 2022
edited
Loading

This builds on#2371.

I realized#1612 already did something similar and thelist()create()delete() interface is more intuitive for the user.
Additionally,#2367 will bring in a similar interface for SAML.
And finally, the delete endpoints used in the current method are actually deprecated upstream, so good to move away from that on our side

https://docs.gitlab.com/ee/api/groups.html#delete-ldap-group-link (deprecated)
https://docs.gitlab.com/ee/api/groups.html#delete-ldap-group-link-with-cn-or-filter (new endpoint)

@nejchnejchforce-pushed thefeat/ldap-group-links-manager branch from1afa4ce tof6bc2a6CompareNovember 17, 2022 17:29
@nejchnejch marked this pull request as ready for reviewNovember 17, 2022 17:40
Comment on lines -197 to -212
@cli.register_custom_action("Group")
@exc.on_http_error(exc.GitlabGetError)
deflist_ldap_group_links(
self,**kwargs:Any
)->Union[gitlab.GitlabList,List[Dict[str,Any]]]:
"""List LDAP group links.
Args:
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabGetError: If the server cannot perform the request
"""
path=f"/groups/{self.encoded_id}/ldap_group_links"
returnself.manager.gitlab.http_list(path,**kwargs)
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

No deprecation needed as we haven't released it yet.

JohnVillalovos reacted with thumbs up emoji
Copy link
Member

@JohnVillalovosJohnVillalovos left a comment

Choose a reason for hiding this comment

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

Thanks@nejch 🙂

@JohnVillalovosJohnVillalovos merged commit3a61f60 intomainNov 17, 2022
@JohnVillalovosJohnVillalovos deleted the feat/ldap-group-links-manager branchNovember 17, 2022 22:46
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@JohnVillalovosJohnVillalovosJohnVillalovos approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@nejch@JohnVillalovos

[8]ページ先頭

©2009-2025 Movatter.jp