Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033747Retail ModulesWeb POSpublic2016-08-19 09:052016-08-19 10:38
Orekaria 
Retail 
normalminorhave not tried
newopen 
5
 
 
No
0033747: Performance: Images are always retrieved when the approvals are requested from the server
Images are always retrieved when the approvals are requested from the server

The problem is that image data is large and has to be transferred from the server to the terminal. Large data requires network bandwidth and takes longer to be transferred.
In a high volume context
Create an approval for e.g.: delete receipts
Load the WebPOS
Open the developer tools, network tab
In the WebPOS, perform the approval action to provoke the approval popup to be shown
1. Verify, in the developer tools, that the images are being loaded from the server
2. Verify that in the LoginUtilsServlet, the images are being attached to the response (item.put("image", imageData);)

How to create approval:
- http://wiki.openbravo.com/wiki/Retail:Configuration_Guide#Approvals [^]
- Steps from another issue: https://issues.openbravo.com/view.php?id=33654 [^]
The solution chosen should be aligned with the solution implemented in other functionalities (e.g: product images)

We should load the images after the user data has been loaded (lazy loading)
We should not load images every time the request is done (cache)
No tags attached.
depends on defect 0033673 closed mario_castello slow population of approvals popup 
Issue History
2016-08-19 09:05OrekariaNew Issue
2016-08-19 09:05OrekariaAssigned To => Retail
2016-08-19 09:05OrekariaTriggers an Emergency Pack => No
2016-08-19 09:05OrekariaRelationship addeddepends on 0033673
2016-08-19 09:06OrekariaProposed Solution updated
2016-08-19 09:09OrekariaDescription Updatedbug_revision_view_page.php?rev_id=12870#r12870
2016-08-19 10:38shuehnerIssue Monitored: shuehner

There are no notes attached to this issue.