-
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
Update open_nodes when creating new element #4590
Conversation
ping @romanblanco |
@miq-bot assign @romanblanco |
@@ -2729,6 +2733,11 @@ def flash_validation_errors(am_obj) | |||
end | |||
end | |||
|
|||
def add_active_node_to_open_nodes | |||
return unless @sb.dig('trees') && @sb.dig('trees').dig('ae_tree') && @sb.dig('trees').dig('ae_tree').dig('open_nodes') |
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.
@PanSpagetka by using #dig
, you don't need to investigate each node separately
return unless @sb.dig('trees', 'ae_tree', 'open_nodes').present?
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.
Fixes the issue 👍, but Rubocop is complaining
aaa88d6
to
15a54df
Compare
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.
LGTM 👍
@miq-bot add_label bug, automate |
@romanblanco Cannot apply the following label because they are not recognized: automate |
Checked commits PanSpagetka/manageiq-ui-classic@a452ea1~...15a54df with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@miq-bot add_label automation/automate |
This bug was caused by not properly setting environment for treebuilder, resulting in treebulder not build only shallow version of the tree and focused element was not included in rendered tree, so it couldn't be selected.
Links [Optional]
https://bugzilla.redhat.com/show_bug.cgi?id=1611969
Steps for Testing/QA [Optional]