Set project permissions on merge requests to allow for moving to separate index
Proposal
Add Project visibility_level
and Project Feature merge_requests_visibility_level
to the merge request documents when they are indexed. Be sure to guard against Merge Requests that are missing an associated project or Projects that are missing a project feature association.
Trigger updates to all associated merge requests whenever the project visibility_level
or merge_requests_visibility_level
changes.
This work must be done in the same MR to avoid project permissions getting out of sync.
Edited by Dylan Griffith