diff options
Diffstat (limited to 'app/helpers/projects/pipeline_helper.rb')
-rw-r--r-- | app/helpers/projects/pipeline_helper.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/helpers/projects/pipeline_helper.rb b/app/helpers/projects/pipeline_helper.rb index 286026bc290..eeee8290914 100644 --- a/app/helpers/projects/pipeline_helper.rb +++ b/app/helpers/projects/pipeline_helper.rb @@ -2,13 +2,19 @@ module Projects module PipelineHelper + extend ::Ci::BuildsHelper + def js_pipeline_tabs_data(project, pipeline) { can_generate_codequality_reports: pipeline.can_generate_codequality_reports?.to_json, + failed_jobs_count: pipeline.failed_builds.count, + failed_jobs_summary: prepare_failed_jobs_summary_data(pipeline.failed_builds), + full_path: project.full_path, graphql_resource_etag: graphql_etag_pipeline_path(pipeline), metrics_path: namespace_project_ci_prometheus_metrics_histograms_path(namespace_id: project.namespace, project_id: project, format: :json), pipeline_iid: pipeline.iid, - pipeline_project_path: project.full_path + pipeline_project_path: project.full_path, + total_job_count: pipeline.total_size } end end |