Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030433Retail ModulesWeb POSpublic2015-07-27 14:432015-09-29 18:36
Orekaria 
Orekaria 
normalmajoralways
closedfixed 
5
 
RR15Q4RR15Q4 
marvintm
No
0030433: The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated
The synchronization is executing the success callbacks before the last stage of the synchronization, updating the client tables, has finished

This could lead to issues related to obsolete data being retrieved instead of fresh data
In the 'ob-terminal-model.js' file, 'removeSyncedElemsCallback' method, verify that the models are being asynchronously flushed and the synchronization is reported as finished
No tags attached.
depends on backport 0030434RR15Q3 closed Orekaria The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated 
depends on backport 0030435RR15Q2.3 closed Orekaria The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated 
blocks defect 0030603RR15Q4 closed Orekaria Stabilization: RR15Q4 related issues 
blocks defect 0030962RR16Q1 closed ranjith_qualiantech_com In syncModel, the 'update' command and support code, must be moved to OB.Dal 
Issue History
2015-07-27 14:43OrekariaNew Issue
2015-07-27 14:43OrekariaAssigned To => Orekaria
2015-07-27 14:43OrekariaTriggers an Emergency Pack => No
2015-07-27 14:44OrekariaStatusnew => scheduled
2015-07-27 14:48OrekariaSummaryThe 'syncAllModels ' process is reporting that the server synchronization has finished before it has actually finished => The 'syncAllModels ' process is reporting that the server synchronization has finished before the client has been updated
2015-07-27 14:48OrekariaDescription Updatedbug_revision_view_page.php?rev_id=9101#r9101
2015-07-27 14:48OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9103#r9103
2015-07-27 14:49OrekariaDescription Updatedbug_revision_view_page.php?rev_id=9104#r9104
2015-07-27 14:49OrekariaDescription Updatedbug_revision_view_page.php?rev_id=9105#r9105
2015-07-27 14:51OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=9106#r9106
2015-08-05 09:42hgbotCheckin
2015-08-05 09:42hgbotNote Added: 0079196
2015-08-05 09:42hgbotStatusscheduled => resolved
2015-08-05 09:42hgbotResolutionopen => fixed
2015-08-05 09:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad6881e591adf8a33e6ee6a962c7afa9c6742f5e [^]
2015-08-11 12:23OrekariaNote Added: 0079310
2015-08-11 12:23OrekariaStatusresolved => new
2015-08-11 12:23OrekariaResolutionfixed => open
2015-08-19 12:37OrekariaRelationship addedblocks 0030603
2015-08-22 10:10OrekariaTarget Version => RR15Q4
2015-09-29 14:49OrekariaStatusnew => scheduled
2015-09-29 14:49OrekariaStatusscheduled => resolved
2015-09-29 14:49OrekariaFixed in Version => RR15Q4
2015-09-29 14:49OrekariaResolutionopen => fixed
2015-09-29 14:49OrekariaReview Assigned To => Orekaria
2015-09-29 14:50OrekariaReview Assigned ToOrekaria => marvintm
2015-09-29 14:52OrekariaRelationship addedblocks 0030962
2015-09-29 18:36marvintmStatusresolved => closed

Notes
(0079196)
hgbot   
2015-08-05 09:42   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ad6881e591adf8a33e6ee6a962c7afa9c6742f5e
Author: Rafa Alonso <ral <at> openbravo.com>
Date: Wed Aug 05 09:41:28 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ad6881e591adf8a33e6ee6a962c7afa9c6742f5e [^]

Fixes issue 30433: Better logic for the 'syncModel' logic

The problem was that the flow was reporting that the synchronization was finished when there was still pending tasks

The flow has been fixed to report that the syncrhonization has finished when it is really finished, this is, when the 'removeSyncedElemsCallback' asynchronous tasks have finished

TODO: the atomic database update logic has to be moved to ob-dal.js

---
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0079310)
Orekaria   
2015-08-11 12:23   
Please note that the 'update' command and support code, must be moved to OB.Dal