Project Hierarchy not show more then 100 child in Project Page
Current Behavior
When I expand the parent project (Contains more than 100 children) on the project page, then in the GUI it only shows children upto 100, but when I see the list of children via API It shows all the projects if I use offset
curl -X 'GET' 'https://localhost:8081/api/v1/project/<Project UUID>/children?offset=400' -H 'accept : application/json' -H 'X-Api-Key: <API Key> '
but when I switch to Flat project view then I am able to see all the projects, but in the Hierarchy view, when I expand parent project then I am only able to child project upto 100 and project after 100 I am unable to see, but Via API if I use offset then I am able to see complete list
Steps to Reproduce
- Create a parent project
- For that parent project create child projects (the count of child projects must be more than 100)
- Expand the Parent project in the GUI
- Review the number of child projects (Due to bug it only shows up to 100)
- Use the API below API to fetch the list of child Child project 1 to 100: curl -X 'GET' 'https://localhost:8081/api/v1/project/<Project UUID>/children' -H 'accept : application/json' -H 'X-Api-Key: <API Key> ' Child project 101 to 200: curl -X 'GET' 'https://localhost:8081/api/v1/project/<Project UUID>/children?offset=200' -H 'accept: application/json' -H 'X-Api-Key: <API Key> '
the list of projects that you get in the second API call with offset=200 is not visible in the Hierarchy view GUI, but visible in Flat view
Expected Behavior
When I expand the parent project (Contains more than 100 children) on the project page, then in the Hierarchy view GUI shows all the child projects (including after 100)
Dependency-Track Version
4.8.2
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Google Chrome
Checklist
- [X] I have read and understand the contributing guidelines
- [X] I have checked the existing issues for whether this defect was already reported
This is happening to me as well in Dependency Track v4.11.1 using PostgreSQL as it won't show more than 85 Child Projects under the Parent Project but can see the Projects when selecting Show flat project view
Steps to Reproduce
- Upload more than 85 Child Projects to a Parent Project
- Try to view Child Projects in Parent Project
- API Call ex.
https://{uri}:{port}/api/v1/project/{uuid}/children?pageSize=500which will only return 85 projects and all projects uploaded after these child projects cannot been seen in the API call. - Child Projects also can't be seen when using this API call too:
https://{uri}:{port}/api/v1/project?onlyRoot=FALSE&pageNumber=1&pageSize=500 - Expand Parent Project with more than 85 Child Projects in
Projectsdashboard, the latest uploaded Child Projects cannot be seen - Child Projects after the 85 Child Project limit can only be seen when selecting
Show flat project view