gitlab-org--gitlab-foss/spec/services/issues
Yorick Peterse 57b96eb6db
Fix refreshing of issues/MR count caches
This ensures the open issues/MR count caches are refreshed properly when
creating new issues or MRs. This MR also includes a change to the cache
keys to ensure all caches are rebuilt on the fly.

This particular problem was not caught in the test suite due to a null
cache being used, resulting in all calls that would use a cache using
the underlying data directly. In production the code would fail because
a newly saved record returns an empty hash in #changes meaning checks
such as `state_changed? || confidential_changed?` would return false for
new rows, thus never updating the counters.

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/38061
2017-09-19 17:16:45 +02:00
..
build_service_spec.rb Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true 2017-07-27 14:31:53 +02:00
close_service_spec.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
create_service_spec.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
duplicate_service_spec.rb Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
move_service_spec.rb Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
reopen_service_spec.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
resolve_discussions_spec.rb Fix some tests and report the error message 2017-08-09 21:41:45 +08:00
update_service_spec.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00