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

Update open_nodes when creating new element #4590

Merged
merged 2 commits into from
Sep 6, 2018

Conversation

PanSpagetka
Copy link
Contributor

@PanSpagetka PanSpagetka commented Sep 4, 2018

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]

  1. Navigate to Automate/Explorer.
  2. Add a domain, a namespace.
  3. Add a class.

@PanSpagetka
Copy link
Contributor Author

ping @romanblanco

@PanSpagetka
Copy link
Contributor Author

@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')
Copy link
Member

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?

Copy link
Member

@romanblanco romanblanco left a 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

Copy link
Member

@romanblanco romanblanco left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@romanblanco
Copy link
Member

@miq-bot add_label bug, automate

@miq-bot
Copy link
Member

miq-bot commented Sep 5, 2018

@romanblanco Cannot apply the following label because they are not recognized: automate

@miq-bot miq-bot added the bug label Sep 5, 2018
@miq-bot
Copy link
Member

miq-bot commented Sep 5, 2018

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
1 file checked, 0 offenses detected
Everything looks fine. 🍪

@romanblanco
Copy link
Member

@miq-bot add_label automation/automate

@mzazrivec mzazrivec added this to the Sprint 94 Ending Sep 10, 2018 milestone Sep 6, 2018
@mzazrivec mzazrivec merged commit 73e7f57 into ManageIQ:master Sep 6, 2018
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.

4 participants