Follow-up: Move pipeline header actions to mutations
Currently we are in a transition period where the graphQL header is only for the fetching of data, but we need to add the mutations instead of the old REST API call to cancel, retry and delete pipelines.
This component app/assets/javascripts/pipelines/components/header_component.vue
will need to remove cancelPipeline
retryPipeline
and deletePipeline
methods in the Vue component and use mutations which can be found here #232739 (closed) .
app/assets/javascripts/pipelines/pipeline_details_header.js
receives props on mounting from HAML to get the API endpoint, which we will remove.
app/views/projects/pipelines/show.html.haml
is the haml file that passes these down and we can also remove what we dont need in there.
There is a disabled by default feature flag for graphQL currently called graphql_pipeline_header
but its been enabled through chatops.