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
9eeaea5c
Commit
9eeaea5c
authored
Sep 03, 2020
by
Alan (Maciej) Paruszewski
Committed by
Rémy Coutable
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add path helper method for vulnerability todo
parent
f6c8c45d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
ee/app/helpers/ee/gitlab_routing_helper.rb
ee/app/helpers/ee/gitlab_routing_helper.rb
+4
-0
ee/changelogs/unreleased/243447-fix-problem-with-todo-for-vulnerabilities.yml
...ased/243447-fix-problem-with-todo-for-vulnerabilities.yml
+5
-0
ee/spec/helpers/ee/todos_helper_spec.rb
ee/spec/helpers/ee/todos_helper_spec.rb
+11
-0
No files found.
ee/app/helpers/ee/gitlab_routing_helper.rb
View file @
9eeaea5c
...
@@ -42,6 +42,10 @@ module EE
...
@@ -42,6 +42,10 @@ module EE
project_security_vulnerability_path
(
entity
.
project
,
entity
,
*
args
)
project_security_vulnerability_path
(
entity
.
project
,
entity
,
*
args
)
end
end
def
project_vulnerability_path
(
project
,
vulnerability
,
*
args
)
project_security_vulnerability_path
(
project
,
vulnerability
,
*
args
)
end
def
upgrade_plan_path
(
group
)
def
upgrade_plan_path
(
group
)
return
profile_billings_path
if
group
.
blank?
return
profile_billings_path
if
group
.
blank?
...
...
ee/changelogs/unreleased/243447-fix-problem-with-todo-for-vulnerabilities.yml
0 → 100644
View file @
9eeaea5c
---
title
:
Add missing path to project vulnerability
merge_request
:
40935
author
:
type
:
fixed
ee/spec/helpers/ee/todos_helper_spec.rb
View file @
9eeaea5c
...
@@ -11,6 +11,17 @@ RSpec.describe ::TodosHelper do
...
@@ -11,6 +11,17 @@ RSpec.describe ::TodosHelper do
end
end
end
end
describe
'#todo_target_path'
do
context
'when target is vulnerability'
do
let
(
:vulnerability
)
{
create
(
:vulnerability
)
}
let
(
:todo
)
{
create
(
:todo
,
target:
vulnerability
,
project:
vulnerability
.
project
)
}
subject
(
:todo_target_path
)
{
helper
.
todo_target_path
(
todo
)
}
it
{
is_expected
.
to
eq
(
"/
#{
todo
.
project
.
full_path
}
/-/security/vulnerabilities/
#{
todo
.
target
.
id
}
"
)
}
end
end
describe
'#todo_author_display?'
do
describe
'#todo_author_display?'
do
using
RSpec
::
Parameterized
::
TableSyntax
using
RSpec
::
Parameterized
::
TableSyntax
...
...
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