Commit 5744c6b7 authored by Thong Kuah's avatar Thong Kuah

Allow search service callsite

This accounted about thousands of callsites in our CI
parent 5d585f9c
...@@ -24,8 +24,10 @@ module Search ...@@ -24,8 +24,10 @@ module Search
# rubocop: disable CodeReuse/ActiveRecord # rubocop: disable CodeReuse/ActiveRecord
def projects def projects
::Gitlab::Database.allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/335946') do
@projects ||= ProjectsFinder.new(params: { non_archived: true }, current_user: current_user).execute.includes(:topics, :taggings) @projects ||= ProjectsFinder.new(params: { non_archived: true }, current_user: current_user).execute.includes(:topics, :taggings)
end end
end
def allowed_scopes def allowed_scopes
ALLOWED_SCOPES ALLOWED_SCOPES
......
...@@ -17,8 +17,10 @@ module EE ...@@ -17,8 +17,10 @@ module EE
override :elastic_projects override :elastic_projects
def elastic_projects def elastic_projects
::Gitlab::Database.allow_cross_joins_across_databases(url: 'https://gitlab.com/gitlab-org/gitlab/-/issues/335946') do
@elastic_projects ||= projects.pluck_primary_key @elastic_projects ||= projects.pluck_primary_key
end end
end
override :execute override :execute
def execute def execute
......
- "./ee/spec/controllers/ee/projects/jobs_controller_spec.rb" - "./ee/spec/controllers/ee/projects/jobs_controller_spec.rb"
- "./ee/spec/controllers/ee/search_controller_spec.rb"
- "./ee/spec/controllers/operations_controller_spec.rb" - "./ee/spec/controllers/operations_controller_spec.rb"
- "./ee/spec/controllers/projects/issues_controller_spec.rb" - "./ee/spec/controllers/projects/issues_controller_spec.rb"
- "./ee/spec/controllers/projects/security/vulnerabilities_controller_spec.rb" - "./ee/spec/controllers/projects/security/vulnerabilities_controller_spec.rb"
...@@ -32,7 +31,6 @@ ...@@ -32,7 +31,6 @@
- "./ee/spec/features/projects/settings/auto_rollback_spec.rb" - "./ee/spec/features/projects/settings/auto_rollback_spec.rb"
- "./ee/spec/features/projects/settings/pipeline_subscriptions_spec.rb" - "./ee/spec/features/projects/settings/pipeline_subscriptions_spec.rb"
- "./ee/spec/features/projects/settings/protected_environments_spec.rb" - "./ee/spec/features/projects/settings/protected_environments_spec.rb"
- "./ee/spec/features/search/elastic/group_search_spec.rb"
- "./ee/spec/finders/ee/namespaces/projects_finder_spec.rb" - "./ee/spec/finders/ee/namespaces/projects_finder_spec.rb"
- "./ee/spec/finders/group_projects_finder_spec.rb" - "./ee/spec/finders/group_projects_finder_spec.rb"
- "./ee/spec/finders/security/findings_finder_spec.rb" - "./ee/spec/finders/security/findings_finder_spec.rb"
...@@ -109,7 +107,6 @@ ...@@ -109,7 +107,6 @@
- "./ee/spec/services/ee/merge_requests/create_pipeline_service_spec.rb" - "./ee/spec/services/ee/merge_requests/create_pipeline_service_spec.rb"
- "./ee/spec/services/ee/merge_requests/refresh_service_spec.rb" - "./ee/spec/services/ee/merge_requests/refresh_service_spec.rb"
- "./ee/spec/services/merge_trains/refresh_merge_request_service_spec.rb" - "./ee/spec/services/merge_trains/refresh_merge_request_service_spec.rb"
- "./ee/spec/services/search/group_service_spec.rb"
- "./ee/spec/services/security/report_summary_service_spec.rb" - "./ee/spec/services/security/report_summary_service_spec.rb"
- "./ee/spec/services/security/vulnerability_counting_service_spec.rb" - "./ee/spec/services/security/vulnerability_counting_service_spec.rb"
- "./ee/spec/support/features/redacted_search_results_examples.rb" - "./ee/spec/support/features/redacted_search_results_examples.rb"
......
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