Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
16c8b910
Commit
16c8b910
authored
Dec 06, 2017
by
micael.bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert the `#all_pipelines` method to use the pluck
the `ci_pipelines.sha` column is not the same type than the `merge_request_diff_commits.sha` column (varchar, bytea)
parent
cb6f51ec
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
merge_request.rb
app/models/merge_request.rb
+1
-2
No files found.
app/models/merge_request.rb
View file @
16c8b910
...
@@ -921,9 +921,8 @@ class MergeRequest < ActiveRecord::Base
...
@@ -921,9 +921,8 @@ class MergeRequest < ActiveRecord::Base
def
all_pipelines
def
all_pipelines
return
Ci
::
Pipeline
.
none
unless
source_project
return
Ci
::
Pipeline
.
none
unless
source_project
commit_shas
=
all_commits
.
unscope
(
:limit
).
select
(
:sha
)
@all_pipelines
||=
source_project
.
pipelines
@all_pipelines
||=
source_project
.
pipelines
.
where
(
sha:
commit_shas
,
ref:
source_branch
)
.
where
(
sha:
all_
commit_shas
,
ref:
source_branch
)
.
order
(
id: :desc
)
.
order
(
id: :desc
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment