Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0034965
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2017-01-16 12:402017-01-19 11:18
ReportermarvintmView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0034965: OB-Dal query caching is not properly handled in some external modules

DescriptionSeveral external modules use the findUsingCache functionality, which allows to cache results of frequently used queries to improve performance.

However, they are using this feature improperly, because they are not specifying the "modelsAffectedByCache" property. This means that the cache is not cleared if incremental masterdata is executed, which may lead to wrong behavior. This property should therefore be added to those findUsingCache calls.


The affected modules are:
- org.openbravo.retail.activediscountspopup. File: active-discounts-hook.js
- org.openbravo.retail.discount.twofamiliescombo. File: twofamilies-rule-impl.js
- org.openbravo.retail.discounts.combo: File: combo-rule-impl.js
- org.openbravo.retail.discounts.scaledprice. File: scaledprice.js
Steps To ReproduceFor example, in the Two Family discount combo module:
- Define a two family combo
- Log in the Web POS. Realize that the combo is there. Do a ticket with this combo.
- Go to the backend, and change the combo definition.
- Let incremental refresh be executed automatically (not through F5)
- The new combo should now be in the Web POS. However, if a new ticket is done, the combo definition used is still the previous one.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0034846pi closedjorge-garcia Scanning could not work if the model has change but cache is not deleted 

-  Notes
(0093685)
hgbot (developer)
2017-01-18 13:07

Repository: erp/pmods/org.openbravo.retail.activediscountspopup
Changeset: e9c4b2fc4530cae0a2b9e7c159d41bd28363d4ab
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jan 18 17:36:38 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.activediscountspopup/rev/e9c4b2fc4530cae0a2b9e7c159d41bd28363d4ab [^]

Related to issue 34965 : Added logic to manage find models using cache

---
M web/org.openbravo.retail.activediscountspopup/js/active-discounts-hook.js
---
(0093686)
hgbot (developer)
2017-01-18 13:07

Repository: erp/pmods/org.openbravo.retail.activediscountspopup
Changeset: e9c4b2fc4530cae0a2b9e7c159d41bd28363d4ab
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jan 18 17:36:38 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.activediscountspopup/rev/e9c4b2fc4530cae0a2b9e7c159d41bd28363d4ab [^]

Related to issue 34965 : Added logic to manage find models using cache

---
M web/org.openbravo.retail.activediscountspopup/js/active-discounts-hook.js
---
(0093687)
hgbot (developer)
2017-01-18 13:07

Repository: erp/pmods/org.openbravo.retail.discounts.scaledprice
Changeset: a9b1fc89c88b5d78e9c76d3bb81815cb038bdd37
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jan 18 17:36:31 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.scaledprice/rev/a9b1fc89c88b5d78e9c76d3bb81815cb038bdd37 [^]

Related to issue 34965 : Added logic to manage find models using cache

---
M web/org.openbravo.retail.discounts.scaledprice/js/scaledprice.js
---
(0093688)
hgbot (developer)
2017-01-18 13:07

Repository: erp/pmods/org.openbravo.retail.discounts.combo
Changeset: 65dec8d2dd29a204ad6c5ec21954f884831193b3
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Jan 18 17:33:49 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.combo/rev/65dec8d2dd29a204ad6c5ec21954f884831193b3 [^]

Related to issue 34965 : Added logic to manage find models using cache

---
M web/org.openbravo.retail.discounts.combo/source/combo-rule-impl.js
---

- Issue History
Date Modified Username Field Change
2017-01-16 12:40 marvintm New Issue
2017-01-16 12:40 marvintm Assigned To => Retail
2017-01-16 12:40 marvintm Triggers an Emergency Pack => No
2017-01-16 12:42 marvintm Description Updated View Revisions
2017-01-16 12:42 marvintm Relationship added related to 0034846
2017-01-18 11:41 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2017-01-18 11:41 ranjith_qualiantech_com Status new => scheduled
2017-01-18 13:07 hgbot Checkin
2017-01-18 13:07 hgbot Note Added: 0093685
2017-01-18 13:07 hgbot Checkin
2017-01-18 13:07 hgbot Note Added: 0093686
2017-01-18 13:07 hgbot Checkin
2017-01-18 13:07 hgbot Note Added: 0093687
2017-01-18 13:07 hgbot Checkin
2017-01-18 13:07 hgbot Note Added: 0093688
2017-01-19 09:44 ranjith_qualiantech_com Status scheduled => resolved
2017-01-19 09:44 ranjith_qualiantech_com Resolution open => fixed
2017-01-19 11:17 marvintm Review Assigned To => marvintm
2017-01-19 11:17 marvintm Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker