Skip to content

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

Open

Description

@AyazDyshin

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

Activity

  1. NSeydoux commented on Jul 11, 2022

    @NSeydoux
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions