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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043164
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2020-02-10 16:532020-02-21 09:30
Reportergorka_gilView Statuspublic 
Assigned Tomarkmm82 
PriorityurgentResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision2340d1df1352
ProjectionnoneETAnoneTarget VersionRR20Q1
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

0043164: Before update sources the messages should be synchronized

DescriptionIf exist messages without synchronize, it is needed to send them to the backend before update the webpos sources.
Steps To ReproduceThis 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0043163 closedgorka_gil Before update sources the messages should be synchronized 

-  Notes
(0117757)
hgbot (developer)
2020-02-13 17:40

Repository: retail/backports/3.0RR20Q1/org.openbravo.mobile.core
Changeset: 2340d1df13528f8d978c51426336b958769c7843
Author: Mark Molina <mark.molina <at> doceleguas.com>
Date: Thu Feb 13 13:39:43 2020 -0300
URL: http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.mobile.core/rev/2340d1df13528f8d978c51426336b958769c7843 [^]

Fixes BUG-43164: 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
---

- Issue History
Date Modified Username Field Change
2020-02-10 16:59 gorka_gil Type defect => backport
2020-02-10 16:59 gorka_gil Target Version => RR20Q1
2020-02-13 17:40 hgbot Checkin
2020-02-13 17:40 hgbot Note Added: 0117757
2020-02-13 17:40 hgbot Status scheduled => resolved
2020-02-13 17:40 hgbot Resolution open => fixed
2020-02-13 17:40 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.mobile.core/rev/2340d1df13528f8d978c51426336b958769c7843 [^]
2020-02-13 17:43 markmm82 Assigned To gorka_gil => markmm82
2020-02-21 09:30 marvintm Review Assigned To => marvintm
2020-02-21 09:30 marvintm Status resolved => closed
2020-02-21 09:30 marvintm Fixed in Version => RR20Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker