Bug 1359934

Summary: Fields observed with interval send changes multiple times if focused multiple times
Product: Red Hat CloudForms Management Engine Reporter: Martin Hradil <mhradil>
Component: UI - OPSAssignee: Martin Hradil <mhradil>
Status: CLOSED CURRENTRELEASE QA Contact: Nandini Chandra <nachandr>
Severity: medium Docs Contact:
Priority: high    
Version: 5.6.0CC: cpelland, dclarizi, hkataria, jhardy, mpovolny, nachandr, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.7.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1359937 (view as bug list) Environment:
Last Closed: 2017-01-11 20:19:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1359937    

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