Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029478Retail ModulesWeb POSpublic2015-03-31 16:132015-06-19 10:30
aaroncalero 
aaroncalero 
normaltrivialhave not tried
closedfixed 
5
 
RR15Q3RR15Q3 
marvintm
No
0029478: Provide an API to do transactional OB.Dal calls
Currently Mobile Core is missing a way of executing sql transactions using OB.Dal functions (e.g. OB.Dal.find, OB.Dal.get,...).
We need a way to ensure that a set of OB.Dal calls are executed transactionally.
Try to write 2 OB.Dal actions in a transaction.
Verufy that it is not possible as each OB.Dal action creates its own transaction.
Create a new set of OB.Dal functions that explicitly state that they are going to be executed in a transaction.
No tags attached.
depends on backport 0030209RR15Q2.3 closed aaroncalero Provide an API to do transactional OB.Dal calls 
blocks defect 0029302RR15Q3 closed aaroncalero In paymentmethodcashup table one ticket can be added 2 times 
patch Q2.1_core_29478.patch (17,766) 2015-06-16 09:23
https://issues.openbravo.com/file_download.php?file_id=8208&type=bug
Issue History
2015-03-31 16:13aaroncaleroNew Issue
2015-03-31 16:13aaroncaleroAssigned To => aaroncalero
2015-03-31 16:13aaroncaleroTriggers an Emergency Pack => No
2015-03-31 16:20aaroncaleroNote Added: 0076177
2015-04-01 14:23hgbotCheckin
2015-04-01 14:23hgbotNote Added: 0076310
2015-04-01 14:23hgbotStatusnew => resolved
2015-04-01 14:23hgbotResolutionopen => fixed
2015-04-01 14:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7bc0fa1ceae1cdba0aae5df329479f5b5bd6ed6a [^]
2015-04-17 14:01dmitry_mezentsevReview Assigned To => marvintm
2015-04-20 11:17marvintmStatusresolved => closed
2015-04-20 11:17marvintmFixed in Version => RR15Q3
2015-04-22 09:08aaroncaleroNote Added: 0076668
2015-04-22 09:08aaroncaleroStatusclosed => new
2015-04-22 09:08aaroncaleroResolutionfixed => open
2015-04-22 09:08aaroncaleroFixed in VersionRR15Q3 =>
2015-04-22 09:12aaroncaleroRelationship addedblocks 0029302
2015-04-22 09:16hgbotCheckin
2015-04-22 09:16hgbotNote Added: 0076670
2015-04-22 09:16hgbotStatusnew => resolved
2015-04-22 09:16hgbotResolutionopen => fixed
2015-04-22 09:16hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7bc0fa1ceae1cdba0aae5df329479f5b5bd6ed6a [^] => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/20828cc11541b31458bc7142d11102fb20531408 [^]
2015-04-22 15:10OrekariaRelationship addedcauses 0029670
2015-04-22 15:11OrekariaRelationship deletedcauses 0029670
2015-05-13 18:12marvintmStatusresolved => closed
2015-05-13 18:12marvintmFixed in Version => RR15Q3
2015-06-16 09:23OrekariaFile Added: Q2.1_core_29478.patch
2015-06-19 10:29OrekariaStatusclosed => new
2015-06-19 10:29OrekariaResolutionfixed => open
2015-06-19 10:29OrekariaFixed in VersionRR15Q3 =>
2015-06-19 10:29OrekariaStatusnew => scheduled
2015-06-19 10:30OrekariaStatusscheduled => resolved
2015-06-19 10:30OrekariaFixed in Version => RR15Q3
2015-06-19 10:30OrekariaResolutionopen => fixed
2015-06-19 10:30OrekariaStatusresolved => closed

Notes
(0076177)
aaroncalero   
2015-03-31 16:20   
The wiki must be updated with this information as soon as it's confirmed to be stable (i.e. tests are not broken)
(0076310)
hgbot   
2015-04-01 14:23   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 7bc0fa1ceae1cdba0aae5df329479f5b5bd6ed6a
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Apr 01 14:16:36 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/7bc0fa1ceae1cdba0aae5df329479f5b5bd6ed6a [^]

Fixed issue 29478: Provide an API to do transactional OB.Dal calls

Added a new set of functions to OB.Dal to allow transactions.
Updated the existing functions.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0076668)
aaroncalero   
2015-04-22 09:08   
Reopened to apply a refactor to reduce the API complexity and to lower the number of new variables needed.
(0076670)
hgbot   
2015-04-22 09:16   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 20828cc11541b31458bc7142d11102fb20531408
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Wed Apr 22 09:10:04 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/20828cc11541b31458bc7142d11102fb20531408 [^]

Fixed issue 29478: Provide an API to do transactional OB.Dal calls

Applied a refactor to reduce the API complexity and to lower the number of new variables needed.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---