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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build the selected node key from the session stored model in RBS 馃尦馃悶 #5974

Merged
merged 1 commit into from Aug 9, 2019

Conversation

skateman
Copy link
Member

@skateman skateman commented Aug 9, 2019

The node highlighting in the TreeBuilderRolesByServer went a little off after some refactoring because the model has not been calculated into the selected node's prefix generation. Therefore, only servers could be highlighted after a tree reload. If there was no server with the same ID as the role, no node has been selected after suspending/resuming a server role.

This code is 馃崫 bad 馃崫 and I am working on a followup refactoring PR, but it touches too many pieces of session, so it takes me some time to make right all the wrongs. For more info about the reproducing, please see the BZ.

@miq-bot add_reviewer @ZitaNemeckova
@miq-bot assign @h-kataria
@miq-bot add_label bug, hammer/no, ivanchuk/yes, trees

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

@ZitaNemeckova
Copy link
Contributor

ZitaNemeckova commented Aug 9, 2019

Before:
Screenshot 2019-08-09 at 11 37 55

After:
Screenshot 2019-08-09 at 11 36 57

LGTM 馃憤 but copypasting steps to reproduce or before/after pics would be great :P

@miq-bot
Copy link
Member

miq-bot commented Aug 9, 2019

Checked commit skateman@7fa99bd with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 馃嵃

@h-kataria h-kataria added this to the Sprint 118 Ending Aug 19, 2019 milestone Aug 9, 2019
@h-kataria h-kataria merged commit 55ab533 into ManageIQ:master Aug 9, 2019
@skateman skateman deleted the server-tree-prefix branch August 9, 2019 15:10
simaishi pushed a commit that referenced this pull request Aug 9, 2019
Build the selected node key from the session stored model in RBS 馃尦馃悶

(cherry picked from commit 55ab533)

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

simaishi commented Aug 9, 2019

Ivanchuk backport details:

$ git log -1
commit 6cf3d93cbfa772d5bd5b11587fb7a7d937ddb2e3
Author: Harpreet Kataria <hkataria@redhat.com>
Date:   Fri Aug 9 10:46:44 2019 -0400

    Merge pull request #5974 from skateman/server-tree-prefix
    
    Build the selected node key from the session stored model in RBS 馃尦馃悶
    
    (cherry picked from commit 55ab5335ef4b10fc45e91f60274d104df2aef1aa)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1734393

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.

None yet

5 participants