ManageIQ / manageiq

ManageIQ Open-Source Management Platform
https://manageiq.org
Apache License 2.0
1.35k stars 898 forks source link

Use Generic.*Mixins in controllers #13057

Closed jzigmund closed 7 years ago

jzigmund commented 7 years ago

Starting issue for this issue is https://github.com/ManageIQ/manageiq/issues/11979 https://www.pivotaltracker.com/epic/show/3144799

GenericSessionMixin Affected controller methods:

Goal: Code uses session handling methods (getter/setter of session object/controller's vars) from the mixin.

Controllers with the methods:

GenericShowMixin Affected controller method:

Goal: Code uses show method to display data about a resource or a nested resource from the mixin.

Controllers with the method:

GenericButtonMixin Affected controller method:

Controllers with the method:

GenericListMixin Affected controller methods:

Controllers with the methods:

miq-bot commented 7 years ago

@jzigmund @hayesr @jzigmund is an invalid user, ignoring...

hayesr commented 7 years ago

@miq-bot assign @hayesr

PanSpagetka commented 7 years ago

https://github.com/ManageIQ/manageiq-ui-classic/pull/1390 https://github.com/ManageIQ/manageiq-ui-classic/pull/1387 https://github.com/ManageIQ/manageiq-ui-classic/pull/1356

PanSpagetka commented 7 years ago

Status for Show:

TO DO: app/controllers/host_aggregate_controller.rb app/controllers/storage_controller.rb

Hard to convert: app/controllers/dashboard_controller.rb app/controllers/miq_request_controller.rb

Other occurrences of show just redirecting or setting some variables.