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

Display only the inline methods in the embedded methods tree #3050

Merged
merged 5 commits into from
Dec 15, 2017

Conversation

skateman
Copy link
Member

The TreeBuilder calls are playing too much with the session, I even failed with a simpler solution. I decided to utilize the same TreeSelector component that we're using in the dialog editor for entry point selection. I created a new method into the TreeController 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 new embedded_methods_add route.

screenshot from 2017-12-12 17-26-07

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

@miq-bot
Copy link
Member

miq-bot commented Dec 13, 2017

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

@himdel himdel self-assigned this Dec 15, 2017
@himdel
Copy link
Contributor

himdel commented Dec 15, 2017

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

@himdel himdel merged commit 2c1ff87 into ManageIQ:master Dec 15, 2017
@himdel himdel added this to the Sprint 76 Ending Jan 1, 2018 milestone Dec 15, 2017
@skateman skateman deleted the inline-methods-tree branch December 15, 2017 13:31
simaishi pushed a commit that referenced this pull request Dec 15, 2017
Display only the inline methods in the embedded methods tree
(cherry picked from commit 2c1ff87)

https://bugzilla.redhat.com/show_bug.cgi?id=1526585
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 55741b02ec5691b385934c2c41aae2f94cd7d835
Author: Martin Hradil <[email protected]>
Date:   Fri Dec 15 14:25:35 2017 +0100

    Merge pull request #3050 from skateman/inline-methods-tree
    
    Display only the inline methods in the embedded methods tree
    (cherry picked from commit 2c1ff87075758ae39f3509c96db32249f07cca36)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1526585

@mkanoor
Copy link
Contributor

mkanoor commented Dec 15, 2017

@skateman
👍 Looks good. The only comment would be if the nodes are empty should we display those nodes. If there are no inline methods should we display those namespace/class

@skateman
Copy link
Member Author

@mkanoor as we use lazy loading, we don't know how many grandchildren a node has without doing something time consuming.

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.

5 participants