"Select groups" search in the "Allowed to deploy" tab is not working at the Group level

Summary

In the Protected environment feature, "Select groups" search in the "Allowed to deploy" tab doesn't work.

Steps to reproduce

  • Navigate to your group and Select Settings > CI/CD.
  • Expand Protected environments.
  • In the Allowed to deploy tab , click on Select groups
  • Entering an existing subgroup name in the Search tab produces no results

Example Project

What is the current bug behavior?

Entering an existing subgroup name in the Search tab produces no results

What is the expected correct behavior?

Entering an existing subgroup name in the Search tab should list the corresponding subgroup

Relevant logs and/or screenshots

Screenshot_2024-02-23_at_2.58.22_PM

Screenshot_2024-02-23_at_2.58.52_PM

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)

Possible fixes