Add limit for group count within namespaces
What does this MR do and why?
Add limit as popover for group dependencies project search.
EE: true Changelog: changed
Based on this comment and this issue.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Under the limit | Over the limit |
|---|---|
![]() |
![]() |
Query plan
The query plan bellow uses the group with highest count, i.e., 1683
SELECT COUNT(*) FROM "namespaces" WHERE "namespaces"."type" = 'Group' AND (traversal_ids @> ARRAY[6543]);
How to set up and validate locally
- Fetch the content of both branches:
add_limit_for_group_count. - Turn on the feature flag to make
Dependency listappear in groups:
echo "Feature.enable(:group_level_dependencies)" | rails c
- Create two projects under a group with the following content:
-
.gitlab-ci.yml:
include:
- template: Security/Dependency-Scanning.gitlab-ci.yml
-
Gemfile.lock: with this content
- Run a pipeline for the default branch to both projects
- Go group related to the projects created above and click on the menu option Secure -> Dependency list
- Change GROUP_COUNT_LIMIT to
1in order to trigger the over the limit behaviour.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Zamir Martins

