Commit graph

8 commits

Author SHA1 Message Date
Stan Hu
d4c87d4dd7 Disable Rails SQL query cache when applying service templates
When the SQL query cache is active, the SELECT query for finding
projects to apply service templates returns the same values. This causes
an infinite loop because even though bulk INSERT queries are made, the
cached results never reflect that progress.  To fix this, we call
`Project.uncached` around the query to ensure new data is retrieved.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
2019-06-25 15:06:38 -07:00
Thong Kuah
85b29c1c2f Add frozen_string_literal to spec/services
Probably useful as we often move these files to "new" files.
2019-04-12 10:14:54 +12:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
Rémy Coutable
ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
Grzegorz Bizon
0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
James Lopez
4731ae75c6 Fix propagate service spec transient failure 2017-05-23 08:52:23 +02:00
James Lopez
856a511b48 refactor code based on feedback 2017-05-05 18:57:52 +02:00
James Lopez
6ecf16b8f7 refactor code based on feedback 2017-05-05 18:01:33 +02:00
Renamed from spec/services/projects/propagate_service_spec.rb (Browse further)