Number of locations from the group query is different from those coming from the location finder
Summary
Number of locations from the group query is different from those coming from the locations finder. As proposed in this MR component_id
has been replaced by component_version_id
only partially thus the inconsistency.
Steps to reproduce
Example Project
This group can be used for further investigation: https://gitlab.com/groups/gitlab-org/govern/threat-insights-demos/-/dependencies
What is the current bug behavior?
In some cases, the number of locations from the group query is different from those coming from the locations finder.
What is the expected correct behavior?
It is expected that both endpoints will contain the same number of locations.
Relevant logs and/or screenshots
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)