500 error in Project Overview for some projects
Summary
Some projects in staging cannot be displayed due to an error:
ActionView::Template::Error: undefined local variable or method `end_date' for nil:SubscriptionPresenter
Steps to reproduce
Visit the of "Project Overview" page of the project.
Example Project
- https://staging.gitlab.com/gitlab-org/monitor/monitor-sandbox
- https://staging.gitlab.com/gitlab-org/security/gitlab-foss
- https://staging.gitlab.com/gitlab-com/gl-infra/incidents
- https://staging.gitlab.com/gitlab-org/security/omnibus-gitlab
What is the current bug behavior?
A global 500 error page.
What is the expected correct behavior?
Project is overview displayed,.
Relevant logs and/or screenshots
Output of checks
This bug happens on staging.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
- Revert !28238 (merged) and !28723 (merged) - !29411 (merged)
Edited by Michael Karampalas