Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032908Openbravo ERPB. User interfacepublic2016-05-09 14:082016-08-11 18:40
plujan 
alostale 
normalminorhave not tried
closedfixed 
5
 
3.0PR16Q4 
caristu
Core
No
0032908: Grid recordcount has a delay to be updated
When closing the form and returning to grid view after creating a record, the grid shows, for an instant, the outdated value of records. See steps.

This issue is important, not only for the visual glitch, but because Selenium tests take this value and if the machine is fast enough this issue generates false positives.
1. Enter as F&B admin user
2. Go to Unit of Measure window
3. Check the grid, note the number of records counted (i.e. 13)
4. Create a new record on the form view
5. Create another record on the form.
6. Click the close button to return to grid.
7. Note the number of records counted. It says 13 for a fraction of second and then it changes to the expected 15 value. (See attached screenshot)
This issue seems a natural consequence of a delay introduced in the updateRowDisplay method:

https://code.openbravo.com/erp/devel/pi/file/58bacde3f953/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js#l1577 [^]

A good workaround to this issue (providing the delay has been inserted to solve another issue) is to add to this method a flag, true only when the grid has been loaded and the count has been recalculated.
No tags attached.
related to defect 00186783.0MP4 closed mtaal Procurement Selenium test is failing on record counting for the grid 
png vlcsnap-2016-05-09-11h15m12s29.png (168,433) 2016-05-09 14:08
https://issues.openbravo.com/file_download.php?file_id=9378&type=bug
png
Issue History
2016-05-09 14:08plujanNew Issue
2016-05-09 14:08plujanAssigned To => platform
2016-05-09 14:08plujanFile Added: vlcsnap-2016-05-09-11h15m12s29.png
2016-05-09 14:08plujanModules => Core
2016-05-09 14:08plujanTriggers an Emergency Pack => No
2016-05-25 17:08alostaleRelationship addedrelated to 0018678
2016-07-15 10:42alostaleStatusnew => acknowledged
2016-07-15 13:20hgbotCheckin
2016-07-15 13:20hgbotNote Added: 0088538
2016-07-15 13:20hgbotStatusacknowledged => resolved
2016-07-15 13:20hgbotResolutionopen => fixed
2016-07-15 13:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/34b24bdf94bf338f372c21d30f462013d4304b8c [^]
2016-07-27 08:23caristuReview Assigned To => caristu
2016-07-27 09:17alostaleAssigned Toplatform => alostale
2016-07-27 09:30caristuNote Added: 0088678
2016-07-27 09:30caristuStatusresolved => closed
2016-07-27 09:30caristuFixed in Version => 3.0PR16Q4
2016-08-11 18:40hudsonbotCheckin
2016-08-11 18:40hudsonbotNote Added: 0089016

Notes
(0088538)
hgbot   
2016-07-15 13:20   
Repository: erp/devel/pi
Changeset: 34b24bdf94bf338f372c21d30f462013d4304b8c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jul 15 10:12:00 2016 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/34b24bdf94bf338f372c21d30f462013d4304b8c [^]

fixed bug 32908: Grid recordcount has a delay to be updated

  Removed unneded delay

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
(0088678)
caristu   
2016-07-27 09:30   
Code review + testing OK.
(0089016)
hudsonbot   
2016-08-11 18:40   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/edaa05b1fb18 [^]
Maturity status: Test