Commit graph

50 commits

Author SHA1 Message Date
GitLab Bot
ac1dca43ba Add latest changes from gitlab-org/gitlab@master 2020-03-09 12:07:45 +00:00
GitLab Bot
cefe554b7c Add latest changes from gitlab-org/gitlab@master 2020-02-18 06:09:06 +00:00
GitLab Bot
71c9d577ad Add latest changes from gitlab-org/gitlab@master 2020-02-03 21:09:00 +00:00
GitLab Bot
eb30dd6e28 Add latest changes from gitlab-org/gitlab@master 2020-01-13 12:08:04 +00:00
GitLab Bot
e3e300557f Add latest changes from gitlab-org/gitlab@master 2020-01-08 12:07:59 +00:00
GitLab Bot
c0d8f9f3f9 Add latest changes from gitlab-org/gitlab@master 2020-01-03 09:07:33 +00:00
GitLab Bot
ac9d41902b Add latest changes from gitlab-org/gitlab@master 2019-12-24 15:07:44 +00:00
GitLab Bot
914ea32e0e Add latest changes from gitlab-org/gitlab@master 2019-10-16 09:07:51 +00:00
GitLab Bot
b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Matija Čupić
726f142dd2
Extract preloaded_relations into method 2019-04-09 13:24:27 +02:00
Shinya Maeda
50776d2d29 Expose merge request entity for pipelines
Add preload

Fix

ok

Write tests

test only postgresql

ok

add more test
;

Improve wording

Add changelog

Fix
2019-03-06 16:30:35 +07:00
Shinya Maeda
7fc74818a3 Add scheduled_actions as an explicit group of actions 2018-10-02 17:08:14 +02:00
Yorick Peterse
2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Yorick Peterse
7a233b37cd
Remove code for dynamically generating routes
This adds a database migration that creates routes for any projects and
namespaces that don't already have one. We also remove the runtime code
for dynamically creating routes, as this is no longer necessary.
2018-07-25 16:41:29 +02:00
gfyoung
dce26700b2 Enable frozen string in app/serializers/**/*.rb
Partially addresses .
2018-07-23 11:27:39 -07:00
Grzegorz Bizon
0e1b3dc41b Fix pipelines serializer with preloading pagination 2018-05-25 11:31:18 +02:00
Grzegorz Bizon
f0d7445b88 Reduce pipeline serialization queries when preloaded 2018-05-24 16:55:24 +02:00
Grzegorz Bizon
dab3ae39a2 Do not paginate pipelines active relation twice 2018-05-23 13:29:21 +02:00
Bob Van Landuyt
ca538899b6 Add a WithPagination concern to reuse across serializers 2017-10-04 22:46:49 +02:00
Douwe Maan
013285e951 Merge branch 'issue_27166_2' into 'master'
Avoid repeated queries for pipeline builds on merge requests

See merge request 
2017-06-07 12:57:40 +00:00
Felipe Artur
c698f10942 Avoid repeated queries for pipeline builds on merge requests 2017-06-06 21:58:13 -03:00
Z.J. van de Weg
68569584b7 Create PipelineDetailsEntity
Now we have a PipelineEntity which is a bit smaller, mostly in bytes
needing to send to the frontend. PipelineDetailsEntity is the default
for the PipelineSerializer, limiting the changes needed.

This commit also incorporates the review.
2017-05-31 21:44:53 +02:00
Fatih Acet
0151325dac Merge request widget redesign 2017-05-09 04:15:34 +00:00
Lin Jen-Shin
7547e86579 Use preload because we don't want join here 2017-04-06 23:43:15 +08: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
Dosuken shinya
b3375a4964 Add a blank line after a guard clause 2017-03-23 10:37:27 +00:00
Shinya Maeda
1d75989551 Move conditional statement to PipelineSerializer#represent_status 2017-03-23 17:18:11 +09:00
Shinya Maeda
6dcd2d591f fetch to dig 2017-03-23 17:11:49 +09:00
Shinya Maeda
9d56cb6a0d Using fetch instead of direct refference for hash 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
f8d6e81b92 Fix rubocop anger 2017-03-23 17:11:49 +09:00
Shinya Maeda
ba27f1b954 Expose only status. ci_cd_status to status. Support abstract class. 2017-03-23 17:11:48 +09:00
Sean McGivern
811e598f60 Enable and autocorrect the CustomErrorClass cop 2017-03-01 15:28:10 +00:00
Grzegorz Bizon
8753635c44 Use #present? instead of defined? in serializers 2017-02-07 13:13:33 +01:00
Grzegorz Bizon
a7420b77bd Add specs for standalone pagination for serializers 2017-02-06 15:07:13 +01:00
Grzegorz Bizon
81eb5c7fd7 Move serializers pagination class to separate module
This helps to avoid conflicts with `Paginator` class that seems to be
used by some bundled libs.
2017-02-06 14:47:56 +01:00
Grzegorz Bizon
030adf12ce Encapsulate reused pagination component in a class 2017-02-02 14:37:11 +01:00
Grzegorz Bizon
30c73d2d9f Add controller test for merge requests pipelines API 2017-01-27 14:45:56 +01:00
Grzegorz Bizon
e4da8b11a2 Include pipeline-related resources if using relation 2017-01-05 18:25:35 +01:00
Grzegorz Bizon
b5dfd03efc Include resources to speed up pipelines serializer 2017-01-05 14:23:49 +01:00
Grzegorz Bizon
f4315b725b Add specs for pipeline serializer with pagination 2016-12-28 13:07:30 +01:00
Grzegorz Bizon
c8b16068be Add specs for pipeline entity and improve factory
[ci skip]
2016-12-21 14:26:47 +01:00
Grzegorz Bizon
f55fcef3db Add prototype of pipelines serializer with pagination 2016-12-07 15:23:07 +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
Kamil Trzcinski
6f6119b738 Support pipelines API
Pass `updated_at` to get only incremental changes since last update
2016-11-10 15:32:23 +01:00