Skip to content

Fix subgroups#43

Merged
BigSpaceships merged 4 commits into
masterfrom
fix-subgroups
Jun 13, 2026
Merged

Fix subgroups#43
BigSpaceships merged 4 commits into
masterfrom
fix-subgroups

Conversation

@BigSpaceships

@BigSpaceships BigSpaceships commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

Fixes subgroups not working right, also adds ability to return uids of members instead of uids

Also the uids thing is backwards compatible

Why

it was buggy, and then getting uids is slow ):

Test Plan

python interpreter

Env Vars

nope

Documentation

haha you think we have that, (yes)

Checklist

  • Tested all changes locally

Comment thread csh_ldap/group.py Outdated

@reconnect_on_fail
def get_members(self):
def get_members(self, uids=False):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why not just make a def get_member_uids(self)? uids=False implies that uids=True will return what uids=False does but also with UIDs, not return less. At least clarify the parameter (uids_only?) and add documentation as to what it returns.

Comment thread csh_ldap/group.py Outdated
ret.append(val)
except KeyError:
continue
if 'uid' in val[1]:

@cecilialau6776 cecilialau6776 Jun 11, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Flatten this block:

if 'uid' not in val[1]:
    continue
val = ...

@cecilialau6776 cecilialau6776 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

no uuids :(

lgtm

@BigSpaceships BigSpaceships merged commit 2e63b79 into master Jun 13, 2026
4 checks passed
@BigSpaceships BigSpaceships deleted the fix-subgroups branch June 13, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants