-
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
Display only the inline methods in the embedded methods tree #3050
Conversation
Checked commits skateman/manageiq-ui-classic@69a8393~...22d72d9 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
LGTM, should not touch session anymore :) (also, matches what we do when chosing the method in catalog explorer) Tested in UI - Automation > Automate > Explorer - ... - add a new method, type = inline |
Display only the inline methods in the embedded methods tree (cherry picked from commit 2c1ff87) https://bugzilla.redhat.com/show_bug.cgi?id=1526585
Gaprindashvili backport details:
|
@skateman |
@mkanoor as we use lazy loading, we don't know how many grandchildren a node has without doing something time consuming. |
The
TreeBuilder
calls are playing too much with the session, I even failed with a simpler solution. I decided to utilize the sameTreeSelector
component that we're using in the dialog editor for entry point selection. I created a new method into theTreeController
that retrieves a special automate tree with inline methods only. The most complicated part was the link between the session-based edit form and the angular controller, but I sorted it out by salvaging @pkomanek's code into a newembedded_methods_add
route.I also tried to remove some dead code, but maybe missed a lot ... so this needs future refactoring.
https://bugzilla.redhat.com/show_bug.cgi?id=1512683
ping @martinpovolny @himdel @mkanoor