Skip to content
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

perf: do not populate globals when calculating permissions, cleanup getEntityPolicies #11237

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Feb 17, 2025

Previously, we forgot to add depth: 0 to our findGlobal call in getEntityPolicies. This PR adds depth: 0 which will be faster.

It also cleans up the getEntityPolicies function in general by adding missing types, JSDocs and improving code readability.

This was part of #11236 and has been extracted into this separate PR, to make it easier to review

@AlessioGr AlessioGr enabled auto-merge (squash) February 17, 2025 22:02
@AlessioGr AlessioGr merged commit d49de7b into main Feb 17, 2025
76 checks passed
@AlessioGr AlessioGr deleted the perf/getentitypolicies-globals branch February 17, 2025 22:31
Copy link
Contributor

🚀 This is included in version v3.24.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant