Skip to content

Refactor entities to be subclasses of generic ones#244

Open
jakub-vavra-cz wants to merge 1 commit into
SSSD:masterfrom
jakub-vavra-cz:generics
Open

Refactor entities to be subclasses of generic ones#244
jakub-vavra-cz wants to merge 1 commit into
SSSD:masterfrom
jakub-vavra-cz:generics

Conversation

@jakub-vavra-cz
Copy link
Copy Markdown
Contributor

@jakub-vavra-cz jakub-vavra-cz commented May 4, 2026

We want all Users, Groups, SudoRules to have the same interface as generic ones.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors local user, group, and netgroup utilities to inherit from generic base roles, standardizing the API and introducing type aliases for sudo rule fields. It also extends the LocalUser class with password management and expiration methods. Feedback was provided to update docstrings in LocalSudoRule that contain outdated type references or lack parameter descriptions.

Comment thread sssd_test_framework/utils/local_users.py
Comment thread sssd_test_framework/utils/local_users.py
@jakub-vavra-cz jakub-vavra-cz changed the title Refactor local entities to be subclasses of generic ones Refactor entities to be subclasses of generic ones May 26, 2026
@jakub-vavra-cz jakub-vavra-cz force-pushed the generics branch 6 times, most recently from ad35478 to 56422a5 Compare May 26, 2026 10:15
Subclass entities from ad, ipa, ldap, samba from generic ones.
Fix E741 violation in automount.py.
@jakub-vavra-cz jakub-vavra-cz marked this pull request as ready for review May 26, 2026 11:32
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.

1 participant