Group invited as Reporter cannot be given Deployment Only Access in project

Summary

Reporter group members / group does not appear in menu when configuring Deployment Only Access

Steps to reproduce

Follow steps for Deployment-only access. Fails for customer; was not able to reproduce directly.

Example Project

N/A - has been reproduced on Gitlab.com customer project

What is the current bug behavior?

Permissions can be given to deploy with Developer access HAR appears to show project_groups.json request returning a 304; I don't see a 200 in the Browser HAR, but Rails logged a 200 on this correlation_id.

Example correlation_ID: 01G439PC4YJK7VWNGFM3AD3XPV

What is the expected correct behavior?

Permission can be given with Reporter access

Relevant logs and/or screenshots

Not sure what logs are relevant here

Output of checks

This bug happens on GitLab.com GitLab Enterprise Edition 15.1.0-pre 55b4016267b

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

Edited by Duncan