summaryrefslogtreecommitdiff
path: root/spec/features/dashboard/projects_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/dashboard/projects_spec.rb')
-rw-r--r--spec/features/dashboard/projects_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/features/dashboard/projects_spec.rb b/spec/features/dashboard/projects_spec.rb
index 73f759f8a54..218cbf871a9 100644
--- a/spec/features/dashboard/projects_spec.rb
+++ b/spec/features/dashboard/projects_spec.rb
@@ -244,13 +244,15 @@ describe 'Dashboard Projects' do
ActiveRecord::QueryRecorder.new { visit dashboard_projects_path }.count
- # There are three known N+1 queries:
+ # There are seven known N+1 queries: https://gitlab.com/gitlab-org/gitlab/-/issues/214037
# 1. Project#open_issues_count
# 2. Project#open_merge_requests_count
# 3. Project#forks_count
- #
- # In addition, ProjectsHelper#load_pipeline_status also adds an
- # additional query.
- expect { visit dashboard_projects_path }.not_to exceed_query_limit(control_count + 4)
+ # 4. ProjectsHelper#load_pipeline_status
+ # 5. RendersMemberAccess#preload_max_member_access_for_collection
+ # 6. User#max_member_access_for_project_ids
+ # 7. CommitWithPipeline#last_pipeline
+
+ expect { visit dashboard_projects_path }.not_to exceed_query_limit(control_count + 7)
end
end