Commit 6e110b21 authored by Mehmet Emin INAC's avatar Mehmet Emin INAC

Add `security_builds` information into security dashboard setup

parent b86756e1
......@@ -337,7 +337,13 @@ module EE
pipeline: {
id: pipeline.id,
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
......
......@@ -178,7 +178,13 @@ RSpec.describe ProjectsHelper do
pipeline: {
id: 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment