readthedocs.org
b204787c - Improve SSO querysets (#12447)

Commit
75 days ago
Improve SSO querysets (#12447) We were iterating over several objects like teams and user owners in order to get projects, and also checking if the organization attached to that object didn't have SSO with VCS enabled. So instead of doing that I'm just doing one query, which ignores all objects from organizations that have SSO with VCS enabled. Also, instead of calling _get_projects_for_sso_user twice, I adapted that method so it can fetch projects from where the user is admin or member in just one call (similar to what the other methods do). All these changes reduce the number of queries used in the dashboard on .com
Author
Parents
Loading