Folder tree doesn't handle paginated results
rebeccacremona opened this issue · 0 comments
rebeccacremona commented
The javascript for loading the folder tree assumes that all results will be returned in a single page. By default, Perma's API calls have an implicit LIMIT 300. So, if a folder has more than 300 children, only the first 300 children are displayed.
This javascript should be updated to handle paginated results.
Until we have time to do that, we can update the API to use a limit known to be large enough (e.g., advised by SELECT parent_id, COUNT(*) as children FROM perma_folder GROUP BY parent_id ORDER BY children DESC
)