-
- Downloads
Convert clusters to use a top-level controller
In preparation so that we can create both cluster attached to project and cluster attached to group. - Move ClustersController to top level - Move Clusters::ApplicationsController to top-level too - Creates a Clusters::BaseController to share common functions - Do not rely on @Project ivar. Anything could set the ivar. - Fix Vue page components due to new data-page value Because of the controller change we have gone from `projects:clusters:new` to `clusters:new`, so we need to update the file location of the page components. There is somewhere a function that will convert data-page to a file location. On that note, projects/clusters/gcp/new/, translate to Projects::Clusters::Gcp#new doesn't exist so replace that with clusters/create_gcp/ and clusters/create_user/
Showing
- app/assets/javascripts/pages/clusters/create_gcp/index.js 2 additions, 0 deletionsapp/assets/javascripts/pages/clusters/create_gcp/index.js
- app/assets/javascripts/pages/clusters/create_user/index.js 7 additions, 0 deletionsapp/assets/javascripts/pages/clusters/create_user/index.js
- app/assets/javascripts/pages/clusters/destroy/index.js 0 additions, 0 deletionsapp/assets/javascripts/pages/clusters/destroy/index.js
- app/assets/javascripts/pages/clusters/index/index.js 0 additions, 0 deletionsapp/assets/javascripts/pages/clusters/index/index.js
- app/assets/javascripts/pages/clusters/new/index.js 7 additions, 0 deletionsapp/assets/javascripts/pages/clusters/new/index.js
- app/assets/javascripts/pages/clusters/show/index.js 0 additions, 0 deletionsapp/assets/javascripts/pages/clusters/show/index.js
- app/assets/javascripts/pages/clusters/update/index.js 0 additions, 0 deletionsapp/assets/javascripts/pages/clusters/update/index.js
- app/assets/javascripts/pages/projects/index.js 0 additions, 14 deletionsapp/assets/javascripts/pages/projects/index.js
- app/controllers/clusters/applications_controller.rb 1 addition, 2 deletionsapp/controllers/clusters/applications_controller.rb
- app/controllers/clusters/base_controller.rb 42 additions, 0 deletionsapp/controllers/clusters/base_controller.rb
- app/controllers/clusters_controller.rb 12 additions, 4 deletionsapp/controllers/clusters_controller.rb
- app/helpers/clusters_helper.rb 1 addition, 1 deletionapp/helpers/clusters_helper.rb
- app/views/clusters/_advanced_settings.html.haml 0 additions, 0 deletionsapp/views/clusters/_advanced_settings.html.haml
- app/views/clusters/_banner.html.haml 0 additions, 0 deletionsapp/views/clusters/_banner.html.haml
- app/views/clusters/_cluster.html.haml 0 additions, 0 deletionsapp/views/clusters/_cluster.html.haml
- app/views/clusters/_empty_state.html.haml 0 additions, 0 deletionsapp/views/clusters/_empty_state.html.haml
- app/views/clusters/_gcp_signup_offer_banner.html.haml 0 additions, 0 deletionsapp/views/clusters/_gcp_signup_offer_banner.html.haml
- app/views/clusters/_integration_form.html.haml 0 additions, 0 deletionsapp/views/clusters/_integration_form.html.haml
- app/views/clusters/_sidebar.html.haml 0 additions, 0 deletionsapp/views/clusters/_sidebar.html.haml
- app/views/clusters/gcp/_form.html.haml 0 additions, 0 deletionsapp/views/clusters/gcp/_form.html.haml
File moved
File moved
File moved
File moved
app/controllers/clusters/base_controller.rb
0 → 100644
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
Please register or sign in to comment