Bug 1359934 - Fields observed with interval send changes multiple times if focused multiple times
Summary: Fields observed with interval send changes multiple times if focused multiple...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.7.0
Assignee: Martin Hradil
QA Contact: Nandini Chandra
URL:
Whiteboard:
Depends On:
Blocks: 1359937
TreeView+ depends on / blocked
 
Reported: 2016-07-25 20:44 UTC by Martin Hradil
Modified: 2017-01-12 05:09 UTC (History)
8 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1359937 (view as bug list)
Environment:
Last Closed: 2017-01-11 20:19:03 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Hradil 2016-07-25 20:44:45 UTC
Description of problem:

An input that is watched for changes on a certain interval (as opposed to fields that react on the change event) sends multiple requests on every single change, if that fields has been focused (entered) more than once.

If you just enter it and press a letter, it will send 1 request and will continue to do so for every letter if types slowly enough. However, after leaving this field and entering it again, every letter will send 2 requests, and so forth.


Version-Release number of selected component (if applicable):
darga, master

How reproducible:
always

Steps to Reproduce:
1. go to Configuration > Settings > Region - click the region line to edit 
2. click on the (Description) input
3. click elsewhere
4. click on the input
5. click elsewhere
6. click on the input
7. write a single letter

Actual results:
This will generate 3 requests.


Expected results:
Only one request is generated.


Additional info:

(as a substitue for step 1, any of the 263 inputs which have "data-miq_observe" => {:interval => ...} can be used)

Comment 3 Nandini Chandra 2016-12-01 23:27:50 UTC
Verified in 5.7.0.11


Note You need to log in before you can comment on or make changes to this bug.