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

ToolbarController - always $digest after Rx message #1095

Merged
merged 2 commits into from
Apr 20, 2017
Merged

ToolbarController - always $digest after Rx message #1095

merged 2 commits into from
Apr 20, 2017

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Apr 20, 2017

Replaces #1054 - Cc @jzigmund

I gave up on trying to use $timeout, seems like to much code is dependent on the synchronous nature right now :(.

So this just makes sure that $digest is called every time we gate an observable message, not only in the other cases. (Also verified that those methods are never called from anywhere else..)

(fine/yes because related to https://bugzilla.redhat.com/show_bug.cgi?id=1440118 )


EUWE: https://bugzilla.redhat.com/show_bug.cgi?id=1444178 and https://bugzilla.redhat.com/show_bug.cgi?id=1444037 - please backport together with #1058

@martinpovolny
Copy link
Member

@jzigmund : As you where close to this problem, can you, please, test this?

@martinpovolny martinpovolny requested a review from jzigmund April 20, 2017 13:05
@jzigmund
Copy link

@martinpovolny already done, it's not fixing my BZ though :-/ already contacted @himdel to look again and find the working bugfix

@himdel
Copy link
Contributor Author

himdel commented Apr 20, 2017

Ok, should be working now @jzigmund, can you please check again?

(The key was to rebase this PR on top of #1058, which fixes the actual bug :D)

@miq-bot
Copy link
Member

miq-bot commented Apr 20, 2017

Checked commits https://github.com/himdel/manageiq-ui-classic/compare/39210ff99781e5715d1b83ed6e57c3931a5610f3~...b808cbff9e64bc8eaea00bf096a719c433934063 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
0 files checked, 0 offenses detected
Everything looks good. ⭐

Copy link

@jzigmund jzigmund left a comment

Choose a reason for hiding this comment

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

after rebase, I can confirm that this PR is fixing https://bugzilla.redhat.com/show_bug.cgi?id=1440118

@martinpovolny martinpovolny added this to the Sprint 59 Ending Apr 24, 2017 milestone Apr 20, 2017
@martinpovolny martinpovolny merged commit 2128ff1 into ManageIQ:master Apr 20, 2017
simaishi pushed a commit that referenced this pull request Apr 20, 2017
ToolbarController - always $digest after Rx message
(cherry picked from commit 2128ff1)

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

Fine backport details:

$ git log -1
commit 249e21d5e2390d48e9834f36ac79a1e29d4f6e56
Author: Martin Povolny <[email protected]>
Date:   Thu Apr 20 22:01:03 2017 +0200

    Merge pull request #1095 from himdel/toolbar-digest
    
    ToolbarController - always $digest after Rx message
    (cherry picked from commit 2128ff11c529d1e648bd8d04f12fbe6786c69652)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1444176

@himdel himdel deleted the toolbar-digest branch April 21, 2017 10:57
@simaishi
Copy link
Contributor

simaishi commented May 11, 2017

Euwe backport (to manageiq repo) details:

$ git log -1
commit 2e2c060e70366541c4c4e6065e1ada38bc4e6b7b
Author: Martin Povolny <[email protected]>
Date:   Thu Apr 20 22:01:03 2017 +0200

    Merge pull request #1095 from himdel/toolbar-digest
    
    ToolbarController - always $digest after Rx message
    (cherry picked from commit 2128ff11c529d1e648bd8d04f12fbe6786c69652)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1444178
    https://bugzilla.redhat.com/show_bug.cgi?id=1444037

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