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
6e110b21
Commit
6e110b21
authored
Sep 30, 2020
by
Mehmet Emin INAC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `security_builds` information into security dashboard setup
parent
b86756e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
ee/app/helpers/ee/projects_helper.rb
ee/app/helpers/ee/projects_helper.rb
+7
-1
ee/spec/helpers/projects_helper_spec.rb
ee/spec/helpers/projects_helper_spec.rb
+7
-1
No files found.
ee/app/helpers/ee/projects_helper.rb
View file @
6e110b21
...
@@ -337,7 +337,13 @@ module EE
...
@@ -337,7 +337,13 @@ module EE
pipeline:
{
pipeline:
{
id:
pipeline
.
id
,
id:
pipeline
.
id
,
path:
pipeline_path
(
pipeline
),
path:
pipeline_path
(
pipeline
),
created_at:
pipeline
.
created_at
.
to_s
(
:iso8601
)
created_at:
pipeline
.
created_at
.
to_s
(
:iso8601
),
security_builds:
{
failed:
{
count:
pipeline
.
latest_failed_security_builds
.
count
,
path:
failures_project_pipeline_path
(
pipeline
.
project
,
pipeline
)
}
}
}
}
}
}
end
end
...
...
ee/spec/helpers/projects_helper_spec.rb
View file @
6e110b21
...
@@ -178,7 +178,13 @@ RSpec.describe ProjectsHelper do
...
@@ -178,7 +178,13 @@ RSpec.describe ProjectsHelper do
pipeline:
{
pipeline:
{
id:
pipeline
.
id
,
id:
pipeline
.
id
,
path:
"/
#{
project
.
full_path
}
/-/pipelines/
#{
pipeline
.
id
}
"
,
path:
"/
#{
project
.
full_path
}
/-/pipelines/
#{
pipeline
.
id
}
"
,
created_at:
pipeline_created_at
created_at:
pipeline_created_at
,
security_builds:
{
failed:
{
count:
0
,
path:
"/
#{
project
.
full_path
}
/-/pipelines/
#{
pipeline
.
id
}
/failures"
}
}
}
}
}
}
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