Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018064Openbravo ERPA. Platformpublic2011-07-22 12:542012-01-25 18:04
pjuvara 
guilleaer 
highminorhave not tried
closedfixed 
5
3.0MP1 
3.0MP8 
Google Chrome
Core
No
0018064: Wrong visual feedback on linked items while loading
There are situations where linked items can be very slow because of either number of different objects linking to the record or the volume of data.

Performance should be reviewed but, besides that, we need to ensure that the system gives the right visual clue, allowing the user to understand that the query is still in progress.

At the moment, the Linked Items region opens up with a text of "No items to show" and, when the query is completed, the items are shown.

When it takes a long time to complete the query, the user assumes that "No items to show" means that the query is complete and didn't return any data.

See the screenshot in attachment where LinkedItems-1 has been taken before LinkedItems-2.
In Butler, open a license, navigate to an instance and for that instance open linked items to see the heartbeat.
Since the volume of beat is very high, this is a slow query and you can see the effect very clearly.
Show a progress bar while the query is still in progress and reserve the sentence "No items to show" only to cases when no data has been found.

Final solution: Show "Loading data" as it happens in the rest of the ERP
nextMP
related to defect 0020052 closed guilleaer When there aren't linked items categories the empty message is not shown 
png LinkedItems-1.png (101,650) 2011-07-22 12:54
https://issues.openbravo.com/file_download.php?file_id=4386&type=bug
png

png LinkedItems-2.png (105,135) 2011-07-22 12:55
https://issues.openbravo.com/file_download.php?file_id=4387&type=bug
png
Issue History
2011-07-22 12:54pjuvaraNew Issue
2011-07-22 12:54pjuvaraAssigned To => alostale
2011-07-22 12:54pjuvaraFile Added: LinkedItems-1.png
2011-07-22 12:54pjuvaraWeb browser => Google Chrome
2011-07-22 12:54pjuvaraModules => Core
2011-07-22 12:55pjuvaraFile Added: LinkedItems-2.png
2011-08-01 11:31psarobeWeb browserGoogle Chrome => Google Chrome
2011-08-01 11:31psarobePrioritynormal => high
2011-08-01 11:31psarobeSeveritymajor => minor
2011-08-01 11:31psarobeStatusnew => scheduled
2011-08-01 11:31psarobeTarget Version => 3.0MP5
2011-08-01 11:31psarobeProposed Solution updated
2011-10-31 14:28alostaleTarget Version3.0MP5 => 3.0MP6
2011-11-15 08:41alostaleTag Attached: nextMP
2011-11-15 08:59alostaleWeb browserGoogle Chrome => Google Chrome
2011-11-15 08:59alostaleTarget Version3.0MP6 =>
2011-12-15 09:01alostaleAssigned Toalostale => guilleaer
2012-01-19 11:10guilleaerNote Added: 0044446
2012-01-24 18:37hgbotCheckin
2012-01-24 18:37hgbotNote Added: 0044528
2012-01-24 18:37hgbotStatusscheduled => resolved
2012-01-24 18:37hgbotResolutionopen => fixed
2012-01-24 18:37hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/7246b6950ddd9bd62b112e62caa3dedeb74b5d98 [^]
2012-01-24 18:40alostaleNote Added: 0044530
2012-01-24 18:40alostaleStatusresolved => closed
2012-01-24 18:40alostaleFixed in Version => 3.0MP8
2012-01-25 18:04hudsonbotCheckin
2012-01-25 18:04hudsonbotNote Added: 0044586
2012-03-16 15:30guilleaerRelationship addedrelated to 0020052

Notes
(0044446)
guilleaer   
2012-01-19 11:10   
The issue has been resolved showing a loading text while the data is being retrieved.

Test plan:
 1. Add a sleep in "doPost" method of the class UsedByLink.java. This step is not necessary but is better to test it.
 2. When linked item section is expanded the linked items categories will be retrieved from server
 3. During the sleep time you should see the loading text in the linked items category Grid.
 4. When one category is selected in the category grid, the linked items will be retrieved from the server
 5. While linked items are being retrieved you will see the loading text.

Regressions:
No regression risks
(0044528)
hgbot   
2012-01-24 18:37   
Repository: erp/devel/pi
Changeset: 7246b6950ddd9bd62b112e62caa3dedeb74b5d98
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Jan 19 10:42:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/7246b6950ddd9bd62b112e62caa3dedeb74b5d98 [^]

Fixed Issue 0018064: Loading text is shown while linked items are being loaded

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-view-form-linked-items.js
---
(0044530)
alostale   
2012-01-24 18:40   
Code reviewed and tested on pi@7246b6950ddd
(0044586)
hudsonbot   
2012-01-25 18:04   
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/e66cf6210386 [^]

Maturity status: Test