Paginate or otherwise deal with folders containing thousands of files
We've gradually bumped up the limit. Maybe we need a more futureproof solution
In Giant workspaces, when a folder has over a 1000 files, UI doesn’t render them in the workspaces page and instead shows a clickable link where is supposed to display the files.
This link is not working right now because it’s trying to fetch resource by uri but it’s provided the id of the folder (workspace node of type folder). So 404 is returned saying resource doesn’t exist.
The workspace node of type folder doesn’t have any uri and is not considered a resource. We need to implement a handler for a folder type which is not a resource and render its children.
NB we bumped up the value to 3000 but maybe needs revisiting