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
4abd1748
Commit
4abd1748
authored
Oct 09, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve some conflicts
parent
2d7b656f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
1 deletion
+35
-1
changelogs/unreleased-ee/3562-issue-links.yml
changelogs/unreleased-ee/3562-issue-links.yml
+5
-0
ee/app/helpers/ee/boards_helper.rb
ee/app/helpers/ee/boards_helper.rb
+1
-1
spec/helpers/boards_helper_spec.rb
spec/helpers/boards_helper_spec.rb
+29
-0
No files found.
changelogs/unreleased-ee/3562-issue-links.yml
0 → 100644
View file @
4abd1748
---
title
:
Fix base link for issues on group boards
merge_request
:
author
:
type
:
fixed
ee/app/helpers/ee/boards_helper.rb
View file @
4abd1748
...
...
@@ -18,7 +18,7 @@ module EE
def
build_issue_link_base
return
super
unless
@board
.
group_board?
"
/
#{
@board
.
group
.
path
}
/:project_path/issues"
"
#{
group_path
(
@board
.
group
)
}
/:project_path/issues"
end
def
board_base_url
...
...
spec/helpers/boards_helper_spec.rb
0 → 100644
View file @
4abd1748
require
'spec_helper'
describe
BoardsHelper
do
describe
'#build_issue_link_base'
do
it
'returns correct path for project board'
do
@project
=
create
(
:project
)
@board
=
create
(
:board
,
project:
@project
)
expect
(
build_issue_link_base
).
to
eq
(
"/
#{
@project
.
namespace
.
path
}
/
#{
@project
.
path
}
/issues"
)
end
context
'group board'
do
let
(
:base_group
)
{
create
(
:group
,
path:
'base'
)
}
it
'returns correct path for base group'
do
@board
=
create
(
:board
,
group:
base_group
)
expect
(
build_issue_link_base
).
to
eq
(
'/base/:project_path/issues'
)
end
it
'returns correct path for subgroup'
do
subgroup
=
create
(
:group
,
parent:
base_group
,
path:
'sub'
)
@board
=
create
(
:board
,
group:
subgroup
)
expect
(
build_issue_link_base
).
to
eq
(
'/base/sub/:project_path/issues'
)
end
end
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