Loading
Show linked pipelines in session details
What does this MR do and why?
Adds pipelines to the "Linked items" section in session details
- Queries
pipelineLinkson the session and passes them into the linked items section - Renders pipelines as badges in the Source and Created rows, alongside the existing work item, merge request, and note badges.
- Clicking on the badge navigates to the pipeline page, same as the other badges
- Uses the
pipelineicon from the GitLab icon library - Wires up the Created row even though the backend cannot populate it yet
- For feature parity with the other items that can be linked
- context:
Ai::DuoWorkflows::WorkflowPipeline'slink_typeenum currently only hassource, so the generated GraphQL enumDuoWorkflowPipelineLinkTypeonly exposesSOURCE, and pipelines only ever appear in the Source row today. - The frontend already maps
CREATEDlinks too, so a futurecreatedlink type on the backend will surface badges with no frontend change needed. The query requestspipelineLinkswith nolinkTypeargument, so it already fetches every link type the backend returns.
References
- Related to Add Pipelines to Linked Items in frontend (#629464 - closed) • Allison Villa • 19.5 • On track
Screenshots or screen recordings
| Full page view | Side panel |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Prerequisite: Have GitLab Duo set up in your GDK
- Have a Duo-enabled group and project in your GDK created by the Duo setup above
- Prerequisite: Have GitLab Runner working
- View a session that was triggered by a pipeline. If you don't already have one, you can produce one:
- Enable the "Fix CI/CD Pipeline" flow at
/<project full path>/-/automate/flows - Open a merge request whose pipeline fails. A job with
script: exit 1works. Give it arulesentry matching$CI_PIPELINE_SOURCE == "merge_request_event"so the job runs in the merge request pipeline, since the merge request widget keys off the merge request's head pipeline. - Click "Fix pipeline with Duo" in the merge request's pipeline widget. That button only renders when the head pipeline has failed.
- Enable the "Fix CI/CD Pipeline" flow at
- Open the session at
/<project full path>/-/automate/agent-sessions/<session id>. - Confirm the Linked items section shows a Source row containing a pipeline badge with the pipeline icon, reading the pipeline reference and name, and linking to the pipeline. A pipeline with no name shows just the reference. There is no feature flag, the change renders by default on this branch.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Allison Villa

