Commit 90591917 authored by Yorick Peterse's avatar Yorick Peterse

Fixed pipeline serializer merge conflicts

parent 7a2c038c
...@@ -11,11 +11,8 @@ class PipelineSerializer < BaseSerializer ...@@ -11,11 +11,8 @@ class PipelineSerializer < BaseSerializer
:retryable_builds, :retryable_builds,
:cancelable_statuses, :cancelable_statuses,
:trigger_requests, :trigger_requests,
<<<<<<< HEAD
{ triggered_by_pipeline: [:project, :user] }, { triggered_by_pipeline: [:project, :user] },
{ triggered_pipelines: [:project, :user] }, { triggered_pipelines: [:project, :user] },
=======
>>>>>>> upstream/master
:manual_actions, :manual_actions,
:artifacts, :artifacts,
{ {
......
...@@ -125,11 +125,7 @@ describe PipelineSerializer do ...@@ -125,11 +125,7 @@ describe PipelineSerializer do
it 'verifies number of queries', :request_store do it 'verifies number of queries', :request_store do
recorded = ActiveRecord::QueryRecorder.new { subject } recorded = ActiveRecord::QueryRecorder.new { subject }
<<<<<<< HEAD
expect(recorded.count).to be_within(2).of(35) expect(recorded.count).to be_within(2).of(35)
=======
expect(recorded.count).to be_within(2).of(31)
>>>>>>> upstream/master
expect(recorded.cached_count).to eq(0) expect(recorded.cached_count).to eq(0)
end end
end end
...@@ -148,11 +144,7 @@ describe PipelineSerializer do ...@@ -148,11 +144,7 @@ describe PipelineSerializer do
# pipeline. With the same ref this check is cached but if refs are # pipeline. With the same ref this check is cached but if refs are
# different then there is an extra query per ref # different then there is an extra query per ref
# https://gitlab.com/gitlab-org/gitlab-ce/issues/46368 # https://gitlab.com/gitlab-org/gitlab-ce/issues/46368
<<<<<<< HEAD
expect(recorded.count).to be_within(2).of(40) expect(recorded.count).to be_within(2).of(40)
=======
expect(recorded.count).to be_within(2).of(34)
>>>>>>> upstream/master
expect(recorded.cached_count).to eq(0) expect(recorded.cached_count).to eq(0)
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment