-
Notifications
You must be signed in to change notification settings - Fork 104
chore: minor changes #231
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
base: master
Are you sure you want to change the base?
chore: minor changes #231
Conversation
Please split this PR into independent PRs, so that each improvement can be reviewed, discussed and potentially integrated separately. For example, “remove defaults dict in LDAPSettings” is not related to “restrict django22 dependency in testenv of the tox.ini to 2.2.* not just to a compatible version”. What is the benefit of “restrict django22 dependency in testenv of the tox.ini to 2.2.* not just to a compatible version”? |
I had the behaviour of |
That works for me, the compatible release syntax is also shorter 👍. |
f9dd1fa
to
1d5ea6a
Compare
- add python 3.6+ type hints - replace applying defaults dict in LDAPSettings with actual variables, allowing type hints, checking if variable exists (e.g. IDE), and preventing supplied defaults dict (LDAPSettings.__init__) to inject undesired variables - add AbstractLDAPSearch as abstract base class - fix (by removing) result of search_s not being checked if None in LDAPSearch.execute - add conversion to string in AbstractLDAPSearch._escape_filterargs - rename AbstractLDAPSearch._begin(...) to AbstractLDAPSearch._search(...) and AbstractLDAPSearch._results(...) to AbstractLDAPSearch._result(...) - add AbstractLDAPSearch._abandon(...) - LDAPSearch._search(...) saves the msgid inside the object instead of returning it - make LDAPGroupType abstract - MemberDNGroupType.is_member(...) now returns bool instead of Union[bool, int] - remove kwargs from LDAPGroupQuery.__init__ - update test mocks corresponding to the AbstractLDAPSearch changes
- make _LDAPConfig.logger and NestedMemberDNGroupType.find_groups_with_any_member protected - directly convert the group info into a dict in NestedMemberDNGroupType.user_groups - check _group_type and _group_search against their corresponding type instead of None in _LDAPUserGroups._init_group_settings() - use the settings object instead of the django settings to retrieve the global options in LDAPBackend.ldap()
1d5ea6a
to
9469b65
Compare
Thanks for splitting the PR further. Commit “chore(type_hints): add type hints and minor changes” is included with all the PRs, but I don’t think it should be, it is not necessary for each PR. For each PR, please justify why the suggested change is an improvement for the project. |
Important: this PR only exists to split up the PR #208