gitlab-org--gitlab-foss/app/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
..
import_export Move to Projects::HousecleaningService 2017-08-24 18:58:31 +08:00
after_import_service.rb Simplify Git interactions in AfterImportService 2017-09-01 12:01:50 +00:00
autocomplete_service.rb
count_service.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
create_from_template_service.rb
create_service.rb Merge branch '2756-ee-to-ce-backport' into 'master' 2017-08-30 09:45:05 +00:00
destroy_service.rb
download_service.rb
enable_deploy_key_service.rb
fork_service.rb
forks_count_service.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
gitlab_projects_import_service.rb
housekeeping_service.rb Remove unwanted refs after importing a project 2017-08-23 20:25:44 +08:00
import_service.rb
open_issues_count_service.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
open_merge_requests_count_service.rb Cache the number of open issues and merge requests 2017-08-23 13:42:29 +02:00
participants_service.rb
propagate_service_template.rb
transfer_service.rb
unlink_fork_service.rb
update_pages_configuration_service.rb
update_pages_service.rb Use script_failure. Add runner_system_failure. Improve spec. 2017-09-05 15:10:34 +09:00
update_service.rb Fix project feature being deleted when updating project with invalid visibility level 2017-09-12 18:10:34 -03:00