57b96eb6db
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 |
||
---|---|---|
.. | ||
after_import_service_spec.rb | ||
autocomplete_service_spec.rb | ||
count_service_spec.rb | ||
create_from_template_service_spec.rb | ||
create_service_spec.rb | ||
destroy_service_spec.rb | ||
download_service_spec.rb | ||
enable_deploy_key_service_spec.rb | ||
fork_service_spec.rb | ||
forks_count_service_spec.rb | ||
housekeeping_service_spec.rb | ||
import_service_spec.rb | ||
open_issues_count_service_spec.rb | ||
open_merge_requests_count_service_spec.rb | ||
participants_service_spec.rb | ||
propagate_service_template_spec.rb | ||
transfer_service_spec.rb | ||
unlink_fork_service_spec.rb | ||
update_pages_configuration_service_spec.rb | ||
update_pages_service_spec.rb | ||
update_service_spec.rb |