Skip to content

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):

Screenshot_2025-10-28_at_11.07.40

Edit the framework and notice only 100 projects are selected (we expect 145): Screenshot_2025-10-28_at_11.08.49

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.graphql to add count as a field underneath projects
  • Edit ee/app/assets/javascripts/compliance_dashboard/components/frameworks_report/edit_framework/components/projects_section.vue to use projects.count instead of projects.nodes.length to 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
Edited by Scott Hampton