Skip to content

Show pipeline mini graph in pipeline editor

Mireya Andres requested to merge pipeline-editor/pipeline-mini-graph into master

What does this MR do and why?

For #337514 (closed)

This adds the pipeline mini graph to the pipeline editor. The feature is under the pipeline_editor_mini_graph feature flag. Since we're not enabling the FF yet, no changelog trailers are added.

This does not add the upstream/downstream graphs yet. They'll be added in a future MR.

This also removes the link from the pipeline ID in the pipeline status text since it's no longer needed with the "View Pipeline" CTA.

Screenshots or screen recordings

Feature Flag DISABLED Feature Flag ENABLED
ff disabled ff enabled

Mini Graph should wrap in small screen sizes

pipeline_status_layout

Pipeline Mini Graph Update Behavior:

Pipeline mini graph will update itself after user creates a commit. on_commit
Stage statuses will update on their own for running pipelines. stage_update
It will also update when we retry a job. retry

How to set up and validate locally

  1. Enable the pipeline_editor_mini_graph feature flag. (rails c then Feature.enable(:pipeline_editor_mini_graph))
  2. Go to the pipeline editor (CI/CD > Editor)
  3. Verify that the mini pipeline graph shows up in the pipeline status.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mireya Andres

Merge request reports