core: only prefetch related objects when required (cherry-pick #9476) #9510
54.54% of diff hit (target 92.44%)
View this Pull Request on Codecov
54.54% of diff hit (target 92.44%)
Annotations
Check warning on line 8 in authentik/core/tests/test_groups_api.py
codecov / codecov/patch
authentik/core/tests/test_groups_api.py#L8
Added line #L8 was not covered by tests
Check warning on line 19 in authentik/core/tests/test_groups_api.py
codecov / codecov/patch
authentik/core/tests/test_groups_api.py#L19
Added line #L19 was not covered by tests
Check warning on line 24 in authentik/core/tests/test_groups_api.py
codecov / codecov/patch
authentik/core/tests/test_groups_api.py#L21-L24
Added lines #L21 - L24 were not covered by tests
Check warning on line 44 in authentik/core/tests/test_users_api.py
codecov / codecov/patch
authentik/core/tests/test_users_api.py#L44
Added line #L44 was not covered by tests
Check warning on line 48 in authentik/core/tests/test_users_api.py
codecov / codecov/patch
authentik/core/tests/test_users_api.py#L46-L48
Added lines #L46 - L48 were not covered by tests