diff options
author | Luke Duncalfe <lduncalfe@gitlab.com> | 2019-08-27 23:50:26 +0300 |
---|---|---|
committer | Mayra Cabrera <mcabrera@gitlab.com> | 2019-08-27 23:50:26 +0300 |
commit | a0b14c40dcb53ddaa247bdfa92fe91e225bcaba6 (patch) | |
tree | 4a8cfe5c555eab66fe7805a75fd7d973607691c9 /app/services/base_count_service.rb | |
parent | a58f4f00cf7cc8b4755d0d20094cbbd547d31d2b (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/services/base_count_service.rb')
-rw-r--r-- | app/services/base_count_service.rb | 2 |
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 |