Wrong selected projects when editing compliance framework with more than 100 projects
Summary
Wrong selected projects number when editing compliance framework with more than 100 associated projects. If a compliance framework has more than 100 associated projects then only 100 projects are selected when editing the framework.
This seems to be a UI bug only as updating the framework will not change the number of associated projects.
Steps to reproduce
Create a framework with more than 100 projects associated (here 155):
Edit the framework and notice only 100 projects are selected (we expect 145):

Example Project
https://gitlab.com/groups/sbouly_ultimate_group/-/security/compliance_dashboard/frameworks/2023701
What is the current bug behavior?
Editing a framework with more than 100 projects will only show 100 projects selected.
Updating the framework will not change the number of selected projects.
What is the expected correct behavior?
Editing a framework with more than 100 projects should show all associated projects selected.
Output of checks
This bug happens on GitLab.com
Fix Proposal
- Edit
ee/app/assets/javascripts/compliance_dashboard/components/frameworks_report/edit_framework/graphql/get_compliance_framework.query.graphqlto addcountas a field underneathprojects - Edit
ee/app/assets/javascripts/compliance_dashboard/components/frameworks_report/edit_framework/components/projects_section.vueto useprojects.countinstead ofprojects.nodes.lengthto determine the number of associated projects - Update related spec files to account for the new graphql query and the way we determine the number of associated projects
