Dashboard Milestone Issues Disabled
Summary
The dashboard milestones pages shows milestones of projects when they are not accessible. The link 404 when issues and merge requests are disabled.
Steps to reproduce
- Create a new project (Issues Enabled).
- Create milestone on the project.
- Disable Issues on the project.
- Disable Merge Requests on the project
- Navigate to dashboard/milestones
Example Project
https://gitlab.com/scottix/milestones-issue
What is the current bug behavior?
Two things
- The milestone shows up in the dashboard
- The link 404
What is the expected correct behavior?
- Not to show up in the dashboard.
Relevant logs and/or screenshots
Output of checks
Happens on gitlab.com
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
(If you can, link to the line of code that might be responsible for the problem)