Openbravo Issue Tracking System - Retail Modules
View Issue Details
0052484Retail ModulesWeb POSpublic2023-05-18 18:472023-05-26 12:41
cberner 
cberner 
normalminorhave not tried
closedfixed 
5
 
RR23Q3 
AugustoMauch
No
0052484: Ability to store the currently persisted version of the state, and check for conflict on initialization
It should be possible to store the current persisted version of the state(timestamp) each time the state is persisted. And check on state retrieval if it coincides with the last one persisted, if not, show that info to the user, as that might be a state persistence discrepancy problem.
-
No tags attached.
depends on backport 0052578RR23Q2.3 closed cberner Ability to store the currently persisted version of the state, and check for conflict on initialization 
Issue History
2023-05-18 18:47cbernerNew Issue
2023-05-18 18:47cbernerAssigned To => cberner
2023-05-18 18:47cbernerTriggers an Emergency Pack => No
2023-05-18 18:50hgbotNote Added: 0149943
2023-05-18 18:51hgbotNote Added: 0149944
2023-05-25 18:04hgbotResolutionopen => fixed
2023-05-25 18:04hgbotStatusnew => closed
2023-05-25 18:04hgbotNote Added: 0150305
2023-05-25 18:04hgbotFixed in Version => RR23Q3
2023-05-25 18:04hgbotNote Added: 0150306
2023-05-25 18:05hgbotNote Added: 0150307
2023-05-25 18:05hgbotNote Added: 0150308
2023-05-26 12:40cbernerStatusclosed => new
2023-05-26 12:40cbernerResolutionfixed => open
2023-05-26 12:40cbernerFixed in VersionRR23Q3 =>
2023-05-26 12:40cbernerStatusnew => scheduled
2023-05-26 12:40cbernerStatusscheduled => resolved
2023-05-26 12:40cbernerFixed in Version => RR23Q3
2023-05-26 12:40cbernerResolutionopen => fixed
2023-05-26 12:41cbernerReview Assigned To => AugustoMauch
2023-05-26 12:41cbernerStatusresolved => closed

Notes
(0149943)
hgbot   
2023-05-18 18:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/524 [^]
(0149944)
hgbot   
2023-05-18 18:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1108 [^]
(0150305)
hgbot   
2023-05-25 18:04   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/524 [^]
(0150306)
hgbot   
2023-05-25 18:04   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 2c55dea4b9a339029750acf84578e07fc51073f6
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 25-05-2023 16:04:45
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/2c55dea4b9a339029750acf84578e07fc51073f6 [^]

Fixes FR-52484: Add state versioning and checks on state retrieval

A timestamp has been added on localStorage each time a state persistence happens. That value is also saved in indexedDB and on refresh or application start, it will check if there is any discrepancy between the last retrieved state and the one timestamp persisted in indexedDB.

---
A web/org.openbravo.mobile.core/app/model/application-state/LastStatePersistenceModel.js
A web/org.openbravo.mobile.core/app/model/application-state/LastStatePersistenceModelController.js
M src/org/openbravo/mobile/core/MobileCoreComponentProvider.java
M web/org.openbravo.mobile.core/app/model/application-state/StatePersistence.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0150307)
hgbot   
2023-05-25 18:05   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: d21a1b1130602ea1c681d4b3111983e23a977874
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 25-05-2023 16:04:58
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/d21a1b1130602ea1c681d4b3111983e23a977874 [^]

Related to FR-52484: Add check of last state persistence timestamp on state retrieval

A timestamp has been added on localStorage each time a state persistence happens. That value is also saved in indexedDB and on refresh or application start, it will check if there is any discrepancy between the last retrieved state and the one timestamp persisted in indexedDB.

---
M web-jspack/org.openbravo.core2/src/ob-init.js
---
(0150308)
hgbot   
2023-05-25 18:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1108 [^]