Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 15:09:21 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-20 15:09:21 +0300
commit09b4875c004d2db76b15cb0b32e7a7e623bbfa6f (patch)
treeed34a2d9267c31a22623e37e8cfc0ca009e59e2b /app/models/project.rb
parent19e00b948726c0f7ca27dd92200493803499a4e1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 3a664129993..85e9371191f 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -1722,14 +1722,8 @@ class Project < ApplicationRecord
def execute_integrations(data, hooks_scope = :push_hooks)
# Call only service hooks that are active for this scope
run_after_commit_or_now do
- if use_integration_relations?
- association("#{hooks_scope}_integrations").reader.each do |integration|
- integration.async_execute(data)
- end
- else
- integrations.public_send(hooks_scope).each do |integration| # rubocop:disable GitlabSecurity/PublicSend
- integration.async_execute(data)
- end
+ association("#{hooks_scope}_integrations").reader.each do |integration|
+ integration.async_execute(data)
end
end
end
@@ -3363,12 +3357,6 @@ class Project < ApplicationRecord
ProjectFeature::PRIVATE
end
end
-
- def use_integration_relations?
- strong_memoize(:use_integration_relations) do
- Feature.enabled?(:cache_project_integrations, self)
- end
- end
end
Project.prepend_mod_with('Project')