Set feature flag and create GraphQL app for Run Pipeline form
What does this MR do and why?
For #363660 (closed)
This sets up the foundation for migrating the Run Pipeline form to GraphQL. The GraphQL app is disabled behind the run_pipeline_graphql
feature flag.
At the moment, legacy_pipeline_new_form.vue
is just a copy of pipeline_new_form.vue
.
No new changes were added. Apollo will be implemented in the actual migration MR in !96542 (merged).
MR Breakdown
The migration will be broken down into the following steps:
Implementation | MR |
---|---|
Set up feature flag and GraphQL app |
|
Migrate app to GQL and fetch predefined variables | !96542 (merged) |
Rollout feature flag | #372310 (closed) |
Screenshots or screen recordings
Run Pipeline Form should still work as normal.
How to set up and validate locally
The following should work with the feature flage run_pipeline_graphql
enabled and disabled.
-
Add the following to you
.gitlab-ci.yml
config file:stages: - test variables: FOO: value: "BAR" description: "Environment variable declared from the CI config." declare-config-vars: stage: test script: - echo $FOO - echo $TEST_VAR
-
Go to CI/CD > Pipelines then click on the
Run Pipeline
button on the upper right corner. -
Verify that the variable
FOO
is pre-filled in the form with the valueBAR
-
Add a new variable in the form called
TEST_VAR
. -
Click on the
Run Pipeline
button. This will create the pipeline with your variables and redirect you to the newly created pipeline. -
Wait for the pipeline to finish then check the job logs. The correct variable values should be printed in the logs.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.