Commit d68ddc83 authored by Kamil Trzciński's avatar Kamil Trzciński

Merge branch '37987-speed-up-pipeline-creation' into 'master'

Speed Up Pipeline Creation

See merge request gitlab-org/gitlab-ce!17443
parents 4718f22f e3507c92
......@@ -14,7 +14,7 @@ module Ci
has_many :stages
has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id, inverse_of: :pipeline
has_many :builds, foreign_key: :commit_id
has_many :builds, foreign_key: :commit_id, inverse_of: :pipeline
has_many :trigger_requests, dependent: :destroy, foreign_key: :commit_id # rubocop:disable Cop/ActiveRecordDependent
has_many :variables, class_name: 'Ci::PipelineVariable'
......
......@@ -9,6 +9,8 @@ describe Ci::ProcessPipelineService, '#execute' do
end
before do
stub_ci_pipeline_to_return_yaml_file
stub_not_protect_default_branch
project.add_developer(user)
......
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