Skip to content

[Fileservice] Multi-file download single RACM call for permissions#103

Open
amitschang wants to merge 2 commits intomainfrom
gh-57-multi-file-perf
Open

[Fileservice] Multi-file download single RACM call for permissions#103
amitschang wants to merge 2 commits intomainfrom
gh-57-multi-file-perf

Conversation

@amitschang
Copy link
Copy Markdown
Contributor

@amitschang amitschang commented Apr 17, 2026

This change implements permission check specifically for the multiple file download endpoint in order to make only a single request to racm, instead of a request per file. It does so by using the get volumes endpoint to describe all the users volume access into memory, and then check files against this. Essentially it implements the generalCheck against the FileServiceModel (the same which is returned by the /volumes endpoint).

This should make a substantial improvement to the datasets page load time.

Testing: I have deployed to a dev install and confirmed that the datasets page loads index files as expected, can see the corresponding racm getDetailsOfFileService request

Resolves #57

@amitschang amitschang changed the title wip Multi-file download single RACM call for permissions Apr 17, 2026
@amitschang amitschang changed the title Multi-file download single RACM call for permissions [Fileservice] Multi-file download single RACM call for permissions Apr 17, 2026
@amitschang amitschang marked this pull request as ready for review April 20, 2026 16:09
@peppermint-juli
Copy link
Copy Markdown
Contributor

Reviewing it

@peppermint-juli
Copy link
Copy Markdown
Contributor

Fireeeee YESSSSSSS ❤️‍🔥

Copy link
Copy Markdown
Contributor

@peppermint-juli peppermint-juli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fireeeeeee YEEEEESSSSSS ❤️‍🔥

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fileservice] improve multi-file get performance by single racm permissions call

2 participants