Commit graph

26 commits

Author SHA1 Message Date
Lin Jen-Shin
561bc570de Add a test for checking queries with different ref 2017-07-19 17:53:56 +08:00
Lin Jen-Shin
216bf78fd1 Introduce Gitlab::Cache::RequestStoreWrap
So that we cache the result of UserAccess#can_push_or_merge_to_branch?
in RequestStore, avoiding querying ProtectedBranch over and over for
the list of pipelines (i.e. in PipelineSerializer)

I don't think this is ideal because I don't like the idea of
RequestStore in general, but this is the easiest way to cache it
without changing the architecture. In the future we should cache
more explicitly rather than this kind of global store.
2017-07-04 21:56:41 +08:00
Robert Speicher
a6ec5121f0 Correct RSpec/SingleLineHook cop offenses 2017-06-14 13:18:56 -05:00
Oswaldo Ferreira
34ba80392d Use :request_store hooks on specs 2017-06-09 18:18:36 -03:00
Nick Thomas
23db8409aa Skip loading application settings from the database when migrations are pending
Various Rails initializers (metrics, sentry, etc) are run before migrations,
which can lead to a mismatch between app/models/application_settings.rb and
schema.
2017-06-02 16:02:08 +01:00
Fatih Acet
0151325dac Merge request widget redesign 2017-05-09 04:15:34 +00:00
Luke "Jared" Bennett
b544d8fade
Review changes, used eq instead of match 2017-04-17 13:18:40 +01:00
Luke "Jared" Bennett
b24cb99856
Updated specs 2017-04-13 12:50:03 +01:00
Kamil Trzcinski
227a664e5e
Next round 2017-04-06 15:36:13 +02:00
Kamil Trzcinski
93f9e71b0d
Further optimise queries 2017-04-06 15:21:25 +02:00
Kamil Trzcinski
62919a17e1
Update tests and associations 2017-04-06 15:14:40 +02:00
Kamil Trzcinski
b828a98c1c
Optimise includes 2017-04-06 15:04:26 +02:00
Kamil Trzcinski
8a1c12aa6f
Introduce endpoint optimisations 2017-04-06 14:33:17 +02:00
Kamil Trzcinski
062806e47d
Define baseline for test for pipelines serializer 2017-04-06 14:32:39 +02:00
Shinya Maeda
a375d80eb0 Use detailed_status effectively. Remove unnecesarry context(nest). Add new context in merge_requests_controller_spec.rb and fix a bug. Correct description of spec. 2017-03-23 17:11:49 +09:00
Shinya Maeda
08a0bc5397 Add more specs 2017-03-23 17:11:49 +09:00
Shinya Maeda
a5b96417f3 with_status to represent_status 2017-03-23 17:11:49 +09:00
Shinya Maeda
2b33e9eeb6 with_status to only_status 2017-03-23 17:11:49 +09:00
Shinya Maeda
617292046c Add spec for entity and serializer 2017-03-23 17:11:49 +09:00
Grzegorz Bizon
a7420b77bd Add specs for standalone pagination for serializers 2017-02-06 15:07:13 +01:00
Grzegorz Bizon
a5e5e4ac8a Fix typo in pipeline serializer specs 2017-02-03 11:41:23 +01:00
Grzegorz Bizon
42e3f0fd78 Return serializable hash from a represented serializer 2017-01-27 13:02:59 +01:00
Grzegorz Bizon
f4315b725b Add specs for pipeline serializer with pagination 2016-12-28 13:07:30 +01:00
Grzegorz Bizon
ccea4727a6 Fix pipeline detailed status serializer and entities 2016-12-15 15:57:35 +01:00
Grzegorz Bizon
2791226c6b Remove support from incremental pipeline updates 2016-12-01 17:31:49 +01:00
Grzegorz Bizon
b0c6037a3a Refine incremental pipeline serializer 2016-11-10 21:18:39 +01:00