Apollo MR pipelines - Implement the run pipeline button
The action to run the pipeline in the legacy pipelines table was emitted through an event hub and acted on through the VueX store with actions. For the new graphql implementation, the table should execute this action on its own. This issue is to port this action and keep doing it with the REST endpoint, show the same toast as before and add the specs for it.
In app/assets/javascripts/ci/merge_requests/components/pipelines_table_wrapper.vue
there is a computed property called isRunningMergeRequestPipeline
which always return false. This needs to be tied in to the event toggleIsRunningPipeline
that occurs when clicking run pipeline (and it will render the loading state).
When we have the mutation to run a Merge request pipeline through graphql, then we can remove the rest call and simply use the mutation instead, keeping the toast and any other logic as is.