- Notifications
You must be signed in to change notification settings - Fork676
Add support for query ldap groups links#1612
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
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -38,6 +38,8 @@ | ||||||||||||||
"GroupDescendantGroupManager", | ||||||||||||||
"GroupSubgroup", | ||||||||||||||
"GroupSubgroupManager", | ||||||||||||||
"GroupLdapLinks", | ||||||||||||||
"GroupLdapLinksManager", | ||||||||||||||
Comment on lines +41 to +42 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. For consistency with other objects, we should use the single (the API also supports adding a single link) Suggested change
| ||||||||||||||
] | ||||||||||||||
@@ -71,6 +73,7 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): | ||||||||||||||
subgroups: "GroupSubgroupManager" | ||||||||||||||
variables: GroupVariableManager | ||||||||||||||
wikis: GroupWikiManager | ||||||||||||||
ldap_group_links: "GroupLdapLinksManager" | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
| ||||||||||||||
@cli.register_custom_action("Group", ("project_id",)) | ||||||||||||||
@exc.on_http_error(exc.GitlabTransferProjectError) | ||||||||||||||
@@ -320,6 +323,16 @@ class GroupSubgroupManager(ListMixin, RESTManager): | ||||||||||||||
_types = {"skip_groups": types.ListAttribute} | ||||||||||||||
class GroupLdapLinks(RESTObject): | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
| ||||||||||||||
pass | ||||||||||||||
class GroupLdapLinksManager(ListMixin, RESTManager): | ||||||||||||||
_path = "/groups/%(group_id)s/ldap_group_links" | ||||||||||||||
_obj_cls = GroupLdapLinks | ||||||||||||||
Comment on lines +330 to +332 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Suggested change
| ||||||||||||||
_from_parent_attrs = {"group_id": "id"} | ||||||||||||||
class GroupDescendantGroup(RESTObject): | ||||||||||||||
pass | ||||||||||||||