Admin page for users Projects errors out sometimes
- ZendDesk ticket: https://gitlab.zendesk.com/agent/tickets/12790
If you are in the admin page of a user and try to go to see their projects via the Projects
tab, it will sometimes throw a 500 error with the following stack trace:
Processing by Admin::UsersController#projects as HTML
Parameters: {"id"=>"Jon.Doe"}
Completed 500 Internal Server Error in 48ms (ActiveRecord: 6.1ms)
ActionView::Template::Error (Missing partial users/_projects with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :haml]}. Searched in:
* "/opt/gitlab/embedded/service/gitlab-rails/app/views"
* "/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/kaminari-0.16.3/app/views"
* "/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/doorkeeper-2.1.4/app/views"
* "/opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/devise-3.5.2/app/views"
):
14: .row
15: .col-md-6
16: - if @personal_projects.present?
17: = render 'users/projects', projects: @personal_projects
18: - else
19: .nothing-here-block This user has no personal projects.
20:
app/views/admin/users/projects.html.haml:17:in `_app_views_admin_users_projects_html_haml___992792790390309541_66476320'
This happened to me already on GitLab.com.
Clearing the cache and restarting didn't help.
Steps to reproduce
This happens only if the user has personal projects, if a user does not have personal projects, the page loads fine.
Questions
Going by the error, it would seem that Rails is trying to look for the _projects.html.haml
partial. This partial is present in 8-1-stable
under app/views/users/
, but not under 8-2-stable
.
Why was it removed? This commit was the one responsible: 4d7f00fd
@dzaporozhets you authorized that commit, can you please have a look?
/cc @JobV @rspeicher