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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
9b5b41b9
Commit
9b5b41b9
authored
Dec 18, 2018
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failing pipelines
parent
d9462f4d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
ee/app/services/epic_links/create_service.rb
ee/app/services/epic_links/create_service.rb
+2
-0
ee/app/services/epic_links/list_service.rb
ee/app/services/epic_links/list_service.rb
+2
-0
ee/spec/helpers/epics_helper_spec.rb
ee/spec/helpers/epics_helper_spec.rb
+1
-1
ee/spec/models/epic_spec.rb
ee/spec/models/epic_spec.rb
+2
-2
ee/spec/services/epic_links/create_service_spec.rb
ee/spec/services/epic_links/create_service_spec.rb
+3
-3
No files found.
ee/app/services/epic_links/create_service.rb
View file @
9b5b41b9
# frozen_string_literal: true
module
EpicLinks
class
CreateService
<
IssuableLinks
::
CreateService
def
execute
...
...
ee/app/services/epic_links/list_service.rb
View file @
9b5b41b9
# frozen_string_literal: true
module
EpicLinks
class
ListService
<
IssuableLinks
::
ListService
private
...
...
ee/spec/helpers/epics_helper_spec.rb
View file @
9b5b41b9
...
...
@@ -50,7 +50,7 @@ describe EpicsHelper do
expect
(
meta_data
[
'parent'
]).
to
eq
({
'id'
=>
parent_epic
.
id
,
'title'
=>
parent_epic
.
title
,
'url'
=>
"/groups/
#{
group
.
full_path
}
/-/epics/
#{
parent_epic
.
id
}
"
'url'
=>
"/groups/
#{
group
.
full_path
}
/-/epics/
#{
parent_epic
.
i
i
d
}
"
})
expect
(
meta_data
[
'start_date'
]).
to
eq
(
'2000-01-01'
)
expect
(
meta_data
[
'start_date_sourcing_milestone_title'
]).
to
eq
(
milestone1
.
title
)
...
...
ee/spec/models/epic_spec.rb
View file @
9b5b41b9
...
...
@@ -79,7 +79,7 @@ describe Epic do
end
end
describe
'#ancestors'
do
describe
'#ancestors'
,
:nested_groups
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:epic1
)
{
create
(
:epic
,
group:
group
)
}
let
(
:epic2
)
{
create
(
:epic
,
group:
group
,
parent:
epic1
)
}
...
...
@@ -94,7 +94,7 @@ describe Epic do
end
end
describe
'#descendants'
do
describe
'#descendants'
,
:nested_groups
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:epic1
)
{
create
(
:epic
,
group:
group
)
}
let
(
:epic2
)
{
create
(
:epic
,
group:
group
,
parent:
epic1
)
}
...
...
ee/spec/services/epic_links/create_service_spec.rb
View file @
9b5b41b9
...
...
@@ -2,7 +2,7 @@
require
'spec_helper'
describe
EpicLinks
::
CreateService
do
describe
EpicLinks
::
CreateService
,
:nested_groups
do
describe
'#execute'
do
let
(
:group
)
{
create
(
:group
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
@@ -67,7 +67,7 @@ describe EpicLinks::CreateService do
include_examples
'returns success'
end
context
'when an epic from a subgroup is given'
,
:nested_groups
do
context
'when an epic from a subgroup is given'
do
let
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
before
do
...
...
@@ -151,7 +151,7 @@ describe EpicLinks::CreateService do
end
end
context
'when adding an
wolu
d would exceed level 5 in hierarchy'
do
context
'when adding an
epic woul
d would exceed level 5 in hierarchy'
do
context
'when adding to already deep structure'
do
before
do
epic1
=
create
(
:epic
,
group:
group
)
...
...
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