View approval rule on an archived project return error
Summary
Approval rule will not be loaded on archived project.
Steps to reproduce
- Have a project and set up approval rule
- Archive the project
- Go to Project Settings →
General→ scroll down toAdvanced - Click
Archive project - Go to Project Settings →
General - Observe the error message
An error occurred fetching the approval rules.
Example Project
What is the current bug behavior?
Approval rule is not viewable in archived project.
What is the expected correct behavior?
User can view approval rule on archived project.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com; GitLab Enterprise Edition 13.5.0-pre 7812b4de
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)