solid-client-js icon indicating copy to clipboard operation
solid-client-js copied to clipboard

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

Open AyazDyshin opened this issue 3 years ago • 1 comments

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 avatar Jul 08 '22 09:07 AyazDyshin

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 :).

NSeydoux avatar Jul 11 '22 09:07 NSeydoux