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

function in universalAccess module to fetch both public access and all agents access #1657

Open
AyazDyshin opened this issue Jul 8, 2022 · 1 comment
Labels
enhancement New feature request

Comments

@AyazDyshin
Copy link

Search terms you've used

Feature suggestion

function in universalAccess module to fetch both public access and all agents access

Expected functionality/enhancement

a function that in addition to what getAgentAccessAll function returns, would also include public access rights

Actual functionality/enhancement

Currently there are two separate function to do this.

Use Cases

The main use case is optimization.
As each of functions: getAgentAccessAll and getPublicAccess generate fetch requests, in order to decrease the amount of such requests in cases when both public access and agents access are needed.
This is particularly important for PODs utilizing WAC access types, because each function call generates 4 server requests, which makes it 8 for one resource to get both public and agents access to that resource, in cases when the application needs to fetch more resources at once, that would drastically increase load times. E.g: to get that info for 10+ resources, that would require to perform 80+ server requests.

Additional information

@AyazDyshin AyazDyshin added the enhancement New feature request label Jul 8, 2022
@NSeydoux
Copy link
Contributor

Thanks for the suggestion! It is on our roadmap to handle caching more gracefully anyway, because the issue you are experiencing here actually applies to a lot of use cases where the same resources are fetched multiple times in a short time frame. I'll update this as we move forward, but unfortunately we already have quite a lot on our plate so I'm not committing to any date for this in particular :).

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

No branches or pull requests

2 participants