gitlab-org--gitlab-foss/app/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
..
base_service.rb Move duplicate issue management to a service 2017-07-21 12:53:56 +01:00
build_service.rb Refactor resolvability checks based on type 2017-04-06 10:51:45 -05:00
close_service.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
create_service.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
duplicate_service.rb Move duplicate issue management to a service 2017-07-21 12:53:56 +01:00
move_service.rb Native group milestones 2017-07-07 15:08:49 +00:00
reopen_service.rb Merge issuable "reopened" state into "opened" 2017-07-28 13:31:51 +02:00
update_service.rb Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into ee_issue_928_backport 2017-09-06 14:35:58 +10:00