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 Show group milestones in autocomplete 2017-08-07 11:55:01 +01:00
count_service.rb Fix refreshing of issues/MR count caches 2017-09-19 17:16:45 +02:00
create_from_template_service.rb Rename GitLabProjectImporterService and misc fixes 2017-08-01 14:36:42 +02:00
create_service.rb Merge branch '2756-ee-to-ce-backport' into 'master' 2017-08-30 09:45:05 +00:00
destroy_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
download_service.rb Enable Style/WordArray 2017-02-23 09:32:41 -06:00
enable_deploy_key_service.rb Detect already enabled DeployKeys in EnableDeployKeyService 2017-05-03 17:37:08 +08:00
fork_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
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 Fixes race condition in project uploads 2017-08-07 14:31:45 +02:00
housekeeping_service.rb Remove unwanted refs after importing a project 2017-08-23 20:25:44 +08:00
import_service.rb Add explanation why we should return early for GitHub importer 2017-08-07 14:21:21 -03:00
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 Add GFM support to nested groups 2017-02-13 22:30:10 +02:00
propagate_service_template.rb refactor code based on feedback 2017-05-05 18:57:52 +02:00
transfer_service.rb Added some extra TODOs for the Legacy Storage refactor 2017-08-01 07:28:13 +02:00
unlink_fork_service.rb Cache the number of forks of a project 2017-08-14 18:00:28 +02:00
update_pages_configuration_service.rb Enable the Style/TrailingCommaInLiteral cop 2017-05-10 18:25:45 +02:00
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