Skip to content
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

Add feature buttons for physical server toolbar #1299

Merged
merged 1 commit into from
May 12, 2017

Conversation

gabrielsvinha
Copy link
Contributor

@gabrielsvinha gabrielsvinha commented May 5, 2017

This pull request implements buttons features and view settings for physical server toolbar:

  • app/helpers/application_helper/physical_server_center.rb

  • app/helpers/application_helper/physical_servers_center.rb
    And the feature buttons:

  • app/helpers/application_helper/button/physical_server_feature_button.rb

  • app/helpers/application_helper/button/physical_server_feature_button_with_disable.rb

Implemented for PhysicalServer#show and PhysicalServer#show_list

Depends on the actions implemented in #1298

@AparnaKarve
Copy link
Contributor

@gabrielsvinha Please include the button screenshot in your first PR comment.
But otherwise, LGTM.

@gabrielsvinha
Copy link
Contributor Author

@AparnaKarve Done it.

@@ -0,0 +1,9 @@
class ApplicationHelper::Button::PhysicalServerFeatureButton < ApplicationHelper::Button::GenericFeatureButton
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this class?

and if we need it why do we override the visible? behavior (as that is really what the GenericFeatureButton is about).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is to improve this class in the future, disabling certain types of features and buttons in some cases. (still to be defined by Lenovo)

@gabrielsvinha gabrielsvinha force-pushed the ph_server_buttons branch 2 times, most recently from 44d976c to 70c0b98 Compare May 11, 2017 13:47
@miq-bot
Copy link
Member

miq-bot commented May 11, 2017

Checked commit gabrielsvinha@70c0b98 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
4 files checked, 0 offenses detected
Everything looks fine. 👍

- add physical server option for toolbar chooser
@AparnaKarve
Copy link
Contributor

@martinpovolny All the code around GenericFeatureButton has been removed.
It maybe added in the future (we do not know atm)
Please review and merge if all looks good. Thanks.

@martinpovolny
Copy link
Member

I appreciate the effort to make PRs small to make the review simple. Thx!

But please, don't go too far. In most cases the PR should somehow wrap a piece of work. Also there's no need to include an empty method in most cases.

Anyway merging this.

@martinpovolny martinpovolny merged commit b112a63 into ManageIQ:master May 12, 2017
@martinpovolny martinpovolny added this to the Sprint 61 Ending May 22, 2017 milestone May 12, 2017
@gabrielsvinha
Copy link
Contributor Author

@martinpovolny Got it!

@simaishi
Copy link
Contributor

simaishi commented Jun 8, 2017

@gabrielsvinha @AparnaKarve This PR depends on #1298, which was closed in favor of #1380 and 1380 is fine/no.

Should this PR and 1380 go to Fine? If it should, do you have a BZ?

@AparnaKarve
Copy link
Contributor

@simaishi None of the compute/physical infrastructure labeled PRs should be fine/yes

Can you remove the 2 labels from this PR?
bugzilla needed
fine/yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants