Commit d0d0b92c authored by Lin Jen-Shin's avatar Lin Jen-Shin

The hidden namespace will cause one extra query

parent cd9fb6e7
...@@ -62,7 +62,7 @@ RSpec.describe Dashboard::TodosController do ...@@ -62,7 +62,7 @@ RSpec.describe Dashboard::TodosController do
create(:issue, project: project, assignees: [user]) create(:issue, project: project, assignees: [user])
group_2 = create(:group) group_2 = create(:group)
group_2.add_owner(user) group_2.add_owner(user)
project_2 = create(:project) project_2 = create(:project, namespace: user.namespace)
project_2.add_developer(user) project_2.add_developer(user)
merge_request_2 = create(:merge_request, source_project: project_2) merge_request_2 = create(:merge_request, source_project: project_2)
create(:todo, project: project, author: author, user: user, target: merge_request_2) create(:todo, project: project, author: author, user: user, target: merge_request_2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment