Error 500 viewing notes with anonymous user
https://sentry.gitlap.com/gitlab/gitlabcom/issues/37935/
ActionController::UrlGenerationError: No route matches {:action=>"show", :controller=>"users", :id=>"32803906e3e5f341b6da68581e9426b5a925dc57", :namespace_id=>"our-sci", :project_id=>"reflectance-spec-PCB", :username=>nil} missing required keys: [:username]
app/views/shared/notes/_notes_with_form.html.haml:13:in `_app_views_shared_notes__notes_with_form_html_haml__1782430628712843783_70057488328040'
%a.author_link{ href: user_path(current_user) }
app/views/projects/commit/show.html.haml:18:in `_app_views_projects_commit_show_html_haml__2960307993838951176_70057487270820'
= render "shared/notes/notes_with_form", :autocomplete => true
app/controllers/projects/commit_controller.rb:22:in `show'
respond_to do |format|
lib/gitlab/i18n.rb:45:in `with_locale'
yield
lib/gitlab/i18n.rb:51:in `with_user_locale'
with_locale(user&.preferred_language, &block)
...
(167 additional frame(s) were not displayed)
ActionView::Template::Error: No route matches {:action=>"show", :controller=>"users", :id=>"32803906e3e5f341b6da68581e9426b5a925dc57", :namespace_id=>"our-sci", :project_id=>"reflectance-spec-PCB", :username=>nil} missing required keys: [:username]
ActionView::Template::Error: No route matches {:action=>"show", :controller=>"users", :id=>"32803906e3e5f341b6da68581e9426b5a925dc57", :namespace_id=>"our-sci", :project_id=>"reflectance-spec-PCB", :username=>nil} missing required keys: [:username]