-
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
GO cleanup #2635
GO cleanup #2635
Conversation
Methods that deal with a node should get the node as an argument, not from 2 different side channels. This way it's easier to follow data flow in the code and write tests.
This actually saves a lot of repetition of string operations and provides better readability.
ExplorePresenter expects a hash not a string in :activate_node. So this has no positive effect.
node_info is called only from one place and x_node is set there. Removing unneeded condition, pass data as an argument.
Checked commits martinpovolny/manageiq-ui-classic@af249e3~...7e515c6 with ruby 2.3.3, rubocop 0.47.1, and haml-lint 0.20.0 |
@jhernand The card is private, but judging from the title, I'm guessing this is not related to generic object definitions? |
@himdel yes, just bad clicking in the Trello UI, my fault. I undid it. |
LGTM, the only ui breakage I see (not being able to create a custom button) is present in master as well (and hopefully fixed in #2569) 👍 |
GO cleanup (cherry picked from commit a0a1c1a)
Gaprindashvili backport details:
|
A quick round of cleanups for the new GO code.
TODO: Other issues that I have noticed:
app/views/generic_object_definition/_show_list.html.haml
-- a view that basically just contains a branching logic that should be in a controllerI think that this needs to go to the release, because we are going to see more work and fixes in this new area and we don't want to do the work twice.