inrupt / inrupt/solid-client-js

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

Open
#1,657 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
245
Forks
42
Avg merge
12h 49m
Merged PRs (30d)
22

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the universalAccess module and its getAgentAccessAll and getPublicAccess entry points to understand how each currently fetches access information. Add the requested combined behavior so public and agent access are returned together with fewer requests, and verify that both access rights remain available for a resource.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authorization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.