Deploy approvals for deployment does not work for groups
Summary
Trying to select a group for "allowed to deploy" is not possible. The backend returns a "Deploy access levels is too short (minimum is 1 character)" error message.
Steps to reproduce
Képernyőfelvétel_2023-10-05_-_19.52.06
Example Project
https://gitlab.com/gitlab-org/ci-cd/deploy-stage/demos/podtato-head-delivery/-/settings/ci_cd
What is the current bug behavior?
Error in the console
What is the expected correct behavior?
The environment is protected
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)