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

Removed data-miq_observe from drop down #4499

Conversation

h-kataria
Copy link
Contributor

miqSelectPickerEvent is being called to observe botstrap dropdowns, having both observers causes double transactions to be sent upto server and causes an issue in UI randomly.

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

@himdel do you know why all of a sudden we are seeing these type of issues in UI with double transactions beings sent on drop downs, i recently fixed another one #4488
This issue does not happen always, but something to do with timings of transactions

miqSelectPickerEvent is being called to observe botstrap dropdowns, having both observers causes double transactions to be sent upto server and causes an issue in UI randomly.

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

miq-bot commented Aug 20, 2018

Checked commit h-kataria@14d01e4 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. ⭐

@h-kataria h-kataria requested review from skateman and removed request for himdel August 21, 2018 14:44
@h-kataria
Copy link
Contributor Author

@skateman can you please test/review

@himdel
Copy link
Contributor

himdel commented Aug 21, 2018

The fix looks good.

Not sure what changed, if anything. The combination of data-miq_observe + miqSelectPickerEvent was never really supposed to be there.
Maybe data-miq_observe didn't do anything on a select because there was no change event, and now there is?

@h-kataria h-kataria assigned dclarizio and unassigned himdel Aug 21, 2018
@dclarizio dclarizio merged commit a46f071 into ManageIQ:master Aug 21, 2018
@dclarizio dclarizio added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 21, 2018
simaishi pushed a commit that referenced this pull request Aug 21, 2018
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 91398ffcea19f105b2e91a5ba5cbc404ec94c259
Author: Dan Clarizio <[email protected]>
Date:   Tue Aug 21 08:34:04 2018 -0700

    Merge pull request #4499 from h-kataria/tagging_edit_double_observer_transaction_fix
    
    Removed `data-miq_observe` from drop down
    (cherry picked from commit a46f0712cc8b8ca5ca950b3ee9bdb8a827a215c1)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1615633
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1615632

@h-kataria h-kataria deleted the tagging_edit_double_observer_transaction_fix branch October 24, 2018 22:03
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