Refactor pipelines controller create method
Let's refactor PipelinesController#create to respond in JSON
format.
Currently behind the feature flag new_pipeline_form
we have rebuilt pipelines/new
view to use a Vue app to create pipelines. It's currently using the public API but there is a discrepancy between the API and the controller. Specifically the only
values of :api
and :web
. Which will not allow us to use the public API.
Once the BE part of this issue is complete. We will need to refactor the FE part of this feature to use the controller rather than the public API.
NOTE: We need to be sure the inline JS in app/views/projects/pipelines/new.html.haml
is removed as part of this effort. If this is not possible, we chould create a follow up issue to track that removal
Edited by Sam Beckham