URL:
https://github.com/freeipa/freeipa/pull/3971
Author: tiran
Title: #3971: Optimize user-add by caching ldap2.has_upg()
Action: opened
PR body:
"""
The method has_upg returns if user private groups are enabled or
disabled. has_upg() is called three times by user-add. The setting is
now cached on the request local variable context to speed up batch
processing of user imports.
context is cleared after every request.
Related:
https://pagure.io/freeipa/issue/8134
Signed-off-by: Christian Heimes <cheimes(a)redhat.com>
"""
To pull the PR as Git branch:
git remote add ghfreeipa
https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/3971/head:pr3971
git checkout pr3971