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

Dialog Editor - rework tree params, *don't* pre-initialize the tree #5267

Merged
merged 2 commits into from
Mar 4, 2019
Merged

Dialog Editor - rework tree params, *don't* pre-initialize the tree #5267

merged 2 commits into from
Mar 4, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Feb 22, 2019

Automation > Automate > Customization, add/edit a dialog

https://bugzilla.redhat.com/show_bug.cgi?id=1553846

When editing dynamic field details in the dialog editor, the tree gets loaded before any field data is available, so it can't expand the active node, because it doesn't know it.

This, along with ManageIQ/ui-components#369 makes it possible to delay the tree initialization until the tree gets displayed.

Depends on ManageIQ/ui-components#369 and will need (a @skateman PR adding ?fqdn support to /tree/automate_entrypoint) for the preselection to work.

(Feel free to merge #5267 + ManageIQ/ui-components#369 together, the endpoint PR can be separate.)

Cc @skateman

@himdel himdel added the wip label Feb 22, 2019
@skateman
Copy link
Member

Looks good to me, looking forward to the ui-components change. Also there are some issues in the automate land with parsing the fqdn (see the BZ).

expected methods:

* load() -> Promise(data)
* lazyLoad(node) -> Promise(data)

https://bugzilla.redhat.com/show_bug.cgi?id=1553846
used to initialize the tree with the right node expanded

treeOptions.load now accepts an optional fqdn argument

https://bugzilla.redhat.com/show_bug.cgi?id=1553846
@miq-bot
Copy link
Member

miq-bot commented Feb 25, 2019

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/afa4734fa37253a471249e8b783a20387aeafee5~...c97834dcacef1c68b1a1a4cc201e168f4b567b14 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@himdel
Copy link
Contributor Author

himdel commented Feb 25, 2019

@miq-bot remove_label wip

@miq-bot miq-bot changed the title [WIP] Dialog Editor - rework tree params, *don't* pre-initialize the tree Dialog Editor - rework tree params, *don't* pre-initialize the tree Feb 25, 2019
@miq-bot miq-bot removed the wip label Feb 25, 2019
@mzazrivec mzazrivec self-assigned this Feb 28, 2019
@mzazrivec mzazrivec added this to the Sprint 106 Ending Mar 4, 2019 milestone Mar 4, 2019
@mzazrivec mzazrivec merged commit b195881 into ManageIQ:master Mar 4, 2019
@himdel himdel deleted the bz1553846 branch March 4, 2019 12:48
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