Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043166Retail ModulesWeb POSpublic2020-02-10 16:532020-02-18 07:32
gorka_gil 
markmm82 
urgentmajoralways
closedfixed 
5
 
RR19Q3.3RR19Q3.3 
guilleaer
No
0043166: Before update sources the messages should be synchronized
If exist messages without synchronize, it is needed to send them to the backend before update the webpos sources.
This issues is especially relevant when message table is moved from websql to indexedDB.

- Having an instance of message table in websql (20q1 or less).
- Go offline and create a ticket.
- Switch the an instance with message table in indexedDB (20q2 or more)
- Go back online.
- Problem: it is updating the sources before synchronize the messages, to these messages will be never synchronize.
No tags attached.
blocks defect 0043163 closed gorka_gil Before update sources the messages should be synchronized 
Issue History
2020-02-10 16:59gorka_gilTypedefect => backport
2020-02-10 16:59gorka_gilTarget Version => RR19Q3.3
2020-02-13 17:33hgbotCheckin
2020-02-13 17:33hgbotNote Added: 0117751
2020-02-13 17:33hgbotStatusscheduled => resolved
2020-02-13 17:33hgbotResolutionopen => fixed
2020-02-13 17:33hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR19Q3.3/org.openbravo.mobile.core/rev/5b052b8960c0f3a1bd42d47acbd7f27707200483 [^]
2020-02-13 17:43markmm82Assigned Togorka_gil => markmm82
2020-02-18 07:32guilleaerReview Assigned To => guilleaer
2020-02-18 07:32guilleaerStatusresolved => closed
2020-02-18 07:32guilleaerFixed in Version => RR19Q3.3

Notes
(0117751)
hgbot   
2020-02-13 17:33   
Repository: retail/backports/3.0RR19Q3.3/org.openbravo.mobile.core
Changeset: 5b052b8960c0f3a1bd42d47acbd7f27707200483
Author: Mark Molina <mark.molina <at> doceleguas.com>
Date: Thu Feb 13 13:26:17 2020 -0300
URL: http://code.openbravo.com/retail/backports/3.0RR19Q3.3/org.openbravo.mobile.core/rev/5b052b8960c0f3a1bd42d47acbd7f27707200483 [^]

Fixes BUG-43166: Synchronize messages before update sources
- In login, don't update sources if still messages in message table
- Requests of import entry: added call to checkSourceVersion
- Normal requests: it have the sourceVersion, save it in RAM
  for use on import entry request that don't have it:
  OB.UTIL.sourceVersionFromResponse
- When detected the change of source version, force the
  synchronization of messages
   - If fail, show popup and do logout
- Stop logClient synchronization to avoid errors when updating
  because logClient servlet was removed as part of indexedDB change

Also removed error popup on update to allow login offline
If we do login with messages pending to synchronize, in the login process
is forced a syncrhonize of all the messages, but if fails
we don't want to show a popup and do logout, because on innestable
networks will make very dificult the login offline.

---
M web/org.openbravo.mobile.core/source/data/ob-datasource.js
M web/org.openbravo.mobile.core/source/data/ob-requestrouter.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
M web/org.openbravo.mobile.core/source/utils/ob-utilities.js
---