Use combined pagination in enable scanners wizard

What does this MR do and why?

Use combined pagination in enable scanners wizard

List only direct descendants in select projects step of the wizard
with subgroups first, then projects, in pages of 20 items
by reusing the sequential pagination from security inventory
Call profile application mutation with groupIds and projectIds
Add feature flag that controls which queries/pagination this uses

References

Screenshots or screen recordings

Before After
list shows only projects
Screenshot_2026-07-09_at_16.27.36
list includes subgroups
Screenshot_2026-07-09_at_16.14.46
subgroups are selectable items
Screenshot_2026-07-09_at_16.14.56
all projects are shown in the list in pages of 20
all subgroups are shown first, then direct descendant projects, in combined pages of 20 items each
subgroups are not shown when search/filters are applied
Screenshot_2026-07-09_at_16.16.06
Screenshot_2026-07-09_at_16.15.55
projects are shown in the review step, and the mutation is called with their ids as projectIds
selected subgroups are shown in the review step, and the mutation is called with selected project ids as projectIds and selected subgroup ids as groupIds

How to set up and validate locally

git checkout 602374-use-combined-pagination-in-wizard-select-projects-step
echo "Feature.enable(:combined_pagination_in_scanner_wizard)" | gdk rails c
  1. go to a group that has at least one subgroup => Secure => Security configuration
  2. click Enable scanners in the upper right corner to go to the wizard
  3. click the card Advanced setup, then Start advanced setup to get to the selection step
  4. subgroups that are in the group should show as selectable items in the list - select some
  5. click Select scanners to continue, select at least one scanner, then click Review configuration
  6. the subgroups you selected should appear in the Items card
  7. click Apply configuration
  8. the mutation should be called with the groupIds of the selected subgroups

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #602374

Edited by Miranda Fluharty

Merge request reports

Loading
Loading