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
path: root/app
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@gitlab.com>2019-08-27 23:50:26 +0300
committerMayra Cabrera <mcabrera@gitlab.com>2019-08-27 23:50:26 +0300
commita0b14c40dcb53ddaa247bdfa92fe91e225bcaba6 (patch)
tree4a8cfe5c555eab66fe7805a75fd7d973607691c9 /app
parenta58f4f00cf7cc8b4755d0d20094cbbd547d31d2b (diff)
CE-specific changes for designs `user_notes_count`
Notes call `#after_note_created` and `#after_note_destroyed` on their noteable in callbacks, so the noteable can perform tasks particular to them, like cache expiry. This is in preparation of the EE-specific class `DesignManagement::Design` clearing its `user_notes_count` cache when its note are created or destroyed. Refactoring Rspec behaviour testing of a counter caching service into a shared example. https://gitlab.com/gitlab-org/gitlab-ee/issues/13353
Diffstat (limited to 'app')
-rw-r--r--app/services/base_count_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/base_count_service.rb b/app/services/base_count_service.rb
index ad1647842b8..cfad2dd9265 100644
--- a/app/services/base_count_service.rb
+++ b/app/services/base_count_service.rb
@@ -35,7 +35,7 @@ class BaseCountService
end
def cache_key
- raise NotImplementedError, 'cache_key must be implemented and return a String'
+ raise NotImplementedError, 'cache_key must be implemented and return a String, Array, or Hash'
end
# subclasses can override to add any specific options, such as