-
Notifications
You must be signed in to change notification settings - Fork 356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding PhysicalStorages list and summary pages #4167
Adding PhysicalStorages list and summary pages #4167
Conversation
3c33789
to
2897396
Compare
|
||
private | ||
|
||
def health_state_img |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused method and also it's no longer needed, as it has been replaced by a method in QuadiconHelper.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skateman Just fixed it in my new push, can you take a look to see if it's correct now?
2897396
to
a8b2553
Compare
a8b2553
to
660673f
Compare
%physical-switch-toolbar#physical_storage_show_list_form | ||
|
||
:javascript | ||
miq_bootstrap('#physical_storage_show_list_form'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls, add the missing EOL (and update you editor setting to do that for you automatically)
also above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@martinpovolny Thanks for the reminder, just added here.
Code looks good. I'd like to test this in the UI before merging (and I did not do that yet). |
660673f
to
d0eb9e8
Compare
config/routes.rb
Outdated
button | ||
listnav_search_selected | ||
show_list | ||
create |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about all these create and update routes? do you need these?
Also, if the controller + action name match the feature name, then this would work: https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/application_controller.rb#L1172
The idea is that people forget to add the assert_rbac(...)
to their action so there's a second checking mechanism in place for all the actions.
Of course you might need actions that don't check RBAC (but those should not be POST for sure) and sure you might want to pass throught the for all mechanism and just use your assert_rbac
call in your action.
physical_storage_
+ create
looks good. It might be a feature name that you might have. But physical_storage_
+ create_del
looks weird.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about all these create and update routes? do you need these?
@martinpovolny Currently no, I thought that some of these could be used in the future, but I'm going to remove them and leave only the necessary for now. Also, and correct me if I'm wrong, I just noticed that some routes in compare_get
might not be supported in this case, so to be safe I'll remove it too. If they'll be needed in the future, we can simply add it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless you are adding the compare capability for the new entity you don't need the compare_get
set of routes.
Please, do not add routes that you do not need ;-)
12150b7
to
b4cdee2
Compare
This pull request is not mergeable. Please rebase and repush. |
@miq-bot add_label ux/review |
b4cdee2
to
f7eb122
Compare
@martinpovolny Could you take a look at it? All dependencies were merged and I rebased the code. |
f7eb122
to
dbcd85c
Compare
@martinpovolny I checked the example that you sent and I adapted it to the PhysicalStorage textual summary. Can you take a look at it to see if it's ok? |
e4094f6
to
be30d28
Compare
This pull request is not mergeable. Please rebase and repush. |
d94e138
to
5e4a8b7
Compare
Looks good to me. Would be nice if you could fix the style issues in the spec file. Also waiting for travis. Otherwise I think we can merge this. Thx! |
5e4a8b7
to
60d7ad7
Compare
Some comments on commit EsdrasVP@60d7ad7 spec/controllers/physical_storage_controller_spec.rb
|
Checked commit EsdrasVP@60d7ad7 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 **
|
@martinpovolny I fixed the style issues, and also travis tests passed. Now I think it is good to merge. Thank you! |
This PR is able to:
Depends on:
ManageIQ/manageiq-schema#224[Merged]ManageIQ/manageiq#17616[Merged]ManageIQ/manageiq-providers-lenovo#201[Merged]ManageIQ/manageiq#17586[Merged]ManageIQ/manageiq-api#397[Merged]ManageIQ/manageiq-ui-classic#4065[Merged]Storage Menu:

Storage On Physical Infra Provider Dashboard:

Storage On Physical Infra Provider Summary Page:

Storage List Page:

Storage Summary Page:

Storage Inside Rack Reference
