Skip to content

Integrate new pipeline query for pipeline editor

Mireya Andres requested to merge integrate-graphql-with-pipeline-status into master

What does this MR do?

For #280829 (closed)

This integrates the new graphql query for fetching the pipeline status by commit sha. This is used in the pipeline status component of the pipeline editor (located in the pipeline header). The pipeline status will regularly poll for the pipeline details triggered by the latest commit.

Since we're now using the actual query, the client resolver has been removed from the feature and tests.

Once this is merged, we can enable the pipeline_status_for_pipeline_editor feature flag so it can be used in production. See #321518 (closed) for the rollout of the feature flag.

Local Testing

To test this on gdk, please follow these steps:

  • Enable the pipeline_status_for_pipeline_editor feature flag.
  • Go to the pipeline editor. The pipeline status for the latest commit should be displayed.
  • Edit the file and commit the changes. The pipeline status component should automatically fetch and display the status of the pipeline triggered by the new commit.

Screenshots

State Screen
Initial page load showing the pipeline status of the latest commit Initial Load
After making a new commit in the pipeline editor After Commit

Test Recording

Pipline Status

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