Merge branch '27989-disable-counting-tags' into 'master'
Disable unused tags count cache for Projects, Builds and Runners Closes #27989 See merge request !9467
This commit is contained in:
commit
2fb3fcf0c0
|
@ -15,8 +15,6 @@ class Issue < ActiveRecord::Base
|
||||||
DueThisWeek = DueDateStruct.new('Due This Week', 'week').freeze
|
DueThisWeek = DueDateStruct.new('Due This Week', 'week').freeze
|
||||||
DueThisMonth = DueDateStruct.new('Due This Month', 'month').freeze
|
DueThisMonth = DueDateStruct.new('Due This Month', 'month').freeze
|
||||||
|
|
||||||
ActsAsTaggableOn.strict_case_match = true
|
|
||||||
|
|
||||||
belongs_to :project
|
belongs_to :project
|
||||||
belongs_to :moved_to, class_name: 'Issue'
|
belongs_to :moved_to, class_name: 'Issue'
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,7 @@ class Project < ActiveRecord::Base
|
||||||
|
|
||||||
after_validation :check_pending_delete
|
after_validation :check_pending_delete
|
||||||
|
|
||||||
ActsAsTaggableOn.strict_case_match = true
|
acts_as_taggable
|
||||||
acts_as_taggable_on :tags
|
|
||||||
|
|
||||||
attr_accessor :new_default_branch
|
attr_accessor :new_default_branch
|
||||||
attr_accessor :old_path_with_namespace
|
attr_accessor :old_path_with_namespace
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
title: Disable unused tags count cache for Projects, Builds and Runners
|
||||||
|
merge_request:
|
||||||
|
author:
|
|
@ -0,0 +1,5 @@
|
||||||
|
ActsAsTaggableOn.strict_case_match = true
|
||||||
|
|
||||||
|
# tags_counter enables caching count of tags which results in an update whenever a tag is added or removed
|
||||||
|
# since the count is not used anywhere its better performance wise to disable this cache
|
||||||
|
ActsAsTaggableOn.tags_counter = false
|
Loading…
Reference in New Issue