Skip to content

Show status of pipelines triggered by commits in the pipeline editor [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Mireya Andres requested to merge pipeline-status-for-pipeline-editor into master

What does this MR do?

For issue #280829 (closed).

This adds the PipelineStatus component in the pipeline editor, which will show the status of the pipeline for the latest commit. commitSha is already injected to the parent PipelineEditor component and automatically updated in the apollo cache.

When the user commits changes in their CI file through the pipeline editor, the component will show the status of the triggered pipeline so the user doesn't have to check the pipeline and jobs pages to validate their changes.

Feature Flag

This feature is disabled and hidden behind the pipeline_status_for_pipeline_editor feature flag while the required backend changes are pending development. These changes are needed so that frontend can query all the necessary pipeline data using the commit sha (since the pipeline iid is not exposed to the vue app).

Issue for backend changes: #321038 (closed)

The feature currently uses a client resolver for the pipeline query, so enabling the feature flag will currently show dummy data.

Screenshots

State Screenshot
Loading pipeline data Loading
Error fetching pipeline data Error
Pipeline status Status
Feature flag disabled Disabled Feature

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • [-] Label as security and @ mention @gitlab-com/gl-security/appsec
  • [-] The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • [-] Security reports checked/validated by a reviewer from the AppSec team
Edited by Mireya Andres

Merge request reports