gitlab-org--gitlab-foss/spec/services/projects
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
..
after_import_service_spec.rb Try to make reserved ref names more obvious 2017-08-25 23:00:06 +08:00
autocomplete_service_spec.rb Show group milestones in autocomplete 2017-08-07 11:55:01 +01:00
count_service_spec.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
create_from_template_service_spec.rb After merge cleanup 2017-08-07 15:09:14 +02:00
create_service_spec.rb Merge branch '36743-existing-repo-master' into 'master' 2017-08-31 07:03:12 +00:00
destroy_service_spec.rb Fix positive raise_error expectation without specifying the error type expected in Project::DestroyService specs 2017-08-14 19:37:22 +01:00
download_service_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
enable_deploy_key_service_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
fork_service_spec.rb Prevent new / renamed project from using a repository path that already exists on disk 2017-08-25 20:06:06 +02:00
forks_count_service_spec.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
housekeeping_service_spec.rb Allow to use same periods for housekeeping tasks 2017-09-11 17:41:07 +02:00
import_service_spec.rb Does not fetch repository when importing from GitHub on import service 2017-08-07 13:06:13 -03:00
open_issues_count_service_spec.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
open_merge_requests_count_service_spec.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
participants_service_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
propagate_service_template_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
transfer_service_spec.rb Prevent new / renamed project from using a repository path that already exists on disk 2017-08-25 20:06:06 +02:00
unlink_fork_service_spec.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
update_pages_configuration_service_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
update_pages_service_spec.rb Use script_failure. Add runner_system_failure. Improve spec. 2017-09-05 15:10:34 +09:00
update_service_spec.rb Add data migration 2017-09-15 14:45:21 -03:00