Skip to content

TODO's not rendering when there is a design management related TODO

It seems like todo's are causing a 500 when there is a design management related todo.

https://sentry.gitlab.net/gitlab/gitlabcom/issues/907647/

NoMethodError: undefined method `project_design_management_design_path' for #<#<Class:0x00007f1f83b17570>:0x00007f1f81638e20>
Did you mean?  project_managed_licenses_path
  grape-path-helpers/named_route_matcher.rb:18:in `method_missing'
    super
  action_dispatch/routing/polymorphic_routes.rb:234:in `polymorphic_method'
    recipient.send(method, *args, options)
  action_dispatch/routing/polymorphic_routes.rb:140:in `polymorphic_path'
    HelperMethodBuilder.polymorphic_method self,
  todos_helper.rb:52:in `todo_target_path'
    polymorphic_path(path, anchor: anchor)
  /opt/gitlab/embedded/service/gitlab-rails/app/views/dashboard/todos/_todo.html.haml:1:in `_app_views_dashboard_todos__todo_html_haml__681063008477004966_69886670262580'
    %li{ class: "todo todo-#{todo.done? ? 'done' : 'pending'}", id: dom_id(todo), data: { url: todo_target_path(todo) } }
...
(174 additional frame(s) were not displayed)

ActionView::Template::Error: undefined method `project_design_management_design_path' for #<#<Class:0x00007f1f83b17570>:0x00007f1f81638e20>
Did you mean?  project_managed_licenses_path

ActionView::Template::Error: undefined method `project_design_management_design_path' for #<#<Class:0x00007f1f83b17570>:0x00007f1f81638e20>
Did you mean?  project_managed_licenses_path