diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-25 15:08:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-25 15:08:10 +0300 |
commit | ba9892d3c122a4f437b4b38926fb75848deaf097 (patch) | |
tree | 428fa4e4d19ff38cc6ccdd2036e10f2333720fc2 /app/models/issue.rb | |
parent | f71f0f5307d836c4b0a7e501e4af799a536f3454 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index d4eb77ef6de..ce7bac3fd5f 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -613,6 +613,11 @@ class Issue < ApplicationRecord super || WorkItems::Type.default_by_type(issue_type) end + def expire_etag_cache + key = Gitlab::Routing.url_helpers.realtime_changes_project_issue_path(project, self) + Gitlab::EtagCaching::Store.new.touch(key) + end + private override :persist_pg_full_text_search_vector @@ -643,11 +648,6 @@ class Issue < ApplicationRecord !confidential? && !hidden? && !::Gitlab::ExternalAuthorization.enabled? end - def expire_etag_cache - key = Gitlab::Routing.url_helpers.realtime_changes_project_issue_path(project, self) - Gitlab::EtagCaching::Store.new.touch(key) - end - def could_not_move(exception) # Symptom of running out of space - schedule rebalancing Issues::RebalancingWorker.perform_async(nil, *project.self_or_root_group_ids) |