Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-05-06 11:08:42 +0300
committerFilipa Lacerda <filipa@gitlab.com>2019-05-24 12:04:04 +0300
commitb9c19f6b0f5c85956bf85935452c34fc6a21bcb0 (patch)
treea847bd3653357f6ebe5aa80ed416c1f0e7fe3e37 /spec/serializers
parent819746dc6544820f41d66b87c2c68efc9b17e0f4 (diff)
Do not serialize a pipeline again when showing a build
This change makes it possible to avoid additional serialization of entire pipeline when rendering a build details page. Instead we expose more information from the build entity itself what is much cheaper than serializing entire pipeline. Additionally we do not need to serialize `latest?` flag, which involves multiple Gitaly calls.
Diffstat (limited to 'spec/serializers')
-rw-r--r--spec/serializers/pipeline_entity_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/serializers/pipeline_entity_spec.rb b/spec/serializers/pipeline_entity_spec.rb
index 47f767ae4ab..93d18f70cdc 100644
--- a/spec/serializers/pipeline_entity_spec.rb
+++ b/spec/serializers/pipeline_entity_spec.rb
@@ -48,8 +48,8 @@ describe PipelineEntity do
it 'contains flags' do
expect(subject).to include :flags
expect(subject[:flags])
- .to include :latest, :stuck, :auto_devops,
- :yaml_errors, :retryable, :cancelable, :merge_request
+ .to include :stuck, :auto_devops, :yaml_errors,
+ :retryable, :cancelable, :merge_request
end
end