Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
23d8718b
Commit
23d8718b
authored
Nov 29, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
4f05a630
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
24 deletions
+2
-24
app/models/ci/pipeline.rb
app/models/ci/pipeline.rb
+0
-5
doc/workflow/README.md
doc/workflow/README.md
+2
-8
spec/models/ci/pipeline_spec.rb
spec/models/ci/pipeline_spec.rb
+0
-11
No files found.
app/models/ci/pipeline.rb
View file @
23d8718b
...
...
@@ -299,11 +299,6 @@ module Ci
end
end
def
self
.
latest_for_shas
(
shas
)
max_id_per_sha
=
for_sha
(
shas
).
group
(
:sha
).
select
(
"max(id)"
)
where
(
id:
max_id_per_sha
)
end
def
self
.
latest_successful_ids_per_project
success
.
group
(
:project_id
).
select
(
'max(id) as id'
)
end
...
...
doc/workflow/README.md
View file @
23d8718b
---
comments
:
false
redirect_to
:
'
../README.md'
---
# Workflow (Deprecated)
This page was deprecated, with all content previously stored under the
`/workflow`
path moved
to other locations in the documentation site, organized by topic. You can use the search
box to find the content you are looking for, browse the main
[
GitLab Documentation page
](
../README.md
)
,
or view the
[
issue that deprecated this page
](
https://gitlab.com/gitlab-org/gitlab/issues/32940
)
for more details.
This document was moved to
[
another location
](
../README.md
)
.
spec/models/ci/pipeline_spec.rb
View file @
23d8718b
...
...
@@ -1725,17 +1725,6 @@ describe Ci::Pipeline, :mailer do
end
end
describe
'.latest_for_shas'
do
let
(
:sha
)
{
'abc'
}
it
'returns latest pipeline for sha'
do
create
(
:ci_pipeline
,
sha:
sha
)
pipeline2
=
create
(
:ci_pipeline
,
sha:
sha
)
expect
(
described_class
.
latest_for_shas
(
sha
)).
to
contain_exactly
(
pipeline2
)
end
end
describe
'.latest_successful_ids_per_project'
do
let
(
:projects
)
{
create_list
(
:project
,
2
)
}
let!
(
:pipeline1
)
{
create
(
:ci_pipeline
,
:success
,
project:
projects
[
0
])
}
...
...
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