Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035501Retail ModulesWeb POSpublic2017-03-13 19:512017-03-13 19:51
shuehner 
Retail 
normalminorhave not tried
newopen 
5
 
 
No
0035501: Add Warning message to code which inside renderLine hook does either http requests or websql queries
Example issue 35456 is caused by using the renderLine hook to do potentially slow things like doing http requests.

That renderLine hook can be called many times for each UI update and should be used for anything which could be slow.

So idea is to add a WARN line in the logs whenever:
- from inside any renderLine hook
- either an http request is fired
- or any websql query is ran

So code not following this can be found more easily (i.e. by having ci tests warnings triggers)
i.e. see 35456 issue for example
No tags attached.
related to defect 0035456 closed ranjith_qualiantech_com Multiple duplicate requests to Complementary Products when adding product to ticket with remote data enabled. 
Issue History
2017-03-13 19:51shuehnerNew Issue
2017-03-13 19:51shuehnerAssigned To => Retail
2017-03-13 19:51shuehnerTriggers an Emergency Pack => No
2017-03-13 19:51shuehnerRelationship addedrelated to 0035456

There are no notes attached to this issue.