Openbravo Issue Tracking System - POS2
View Issue Details
0052894POS2POSpublic2023-06-30 08:482023-07-03 14:07
AugustoMauch 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
 
No
0052894: Cache refresh forced after updating environment
After upgrading an environment, installing the changes of [1], the application will show an error when trying to login until the user cleans the cache. This should not be needd.

[1] https://issues.openbravo.com/view.php?id=52092 [^]
In a pos2 environment (not pos2-modules, to make it easier to switch between before/after the issue 52092 is applied.

Place the environment before the project was merged:

cd ../org.openbravo.core2 && git checkout 2da4c8fd
cd ../org.openbravo.pos2 && git checkout 28c6e126f
cd ../org.openbravo.mobile.core && git checkout e0737608
cd ../org.openbravo.retail.posterminal && git checkout 259250a90

- Clear the cache
- Start the environment, check that it works properly

Update the environment to put the modules just after including the 52092 changes:

cd ../org.openbravo.core2 && git checkout be2b7bb397472c32d16993c52cddad94d1ce80f2
cd ../org.openbravo.pos2 && git checkout ef56ec499cc5b9fb85fd560aa71b442c152a8bf0
cd ../org.openbravo.mobile.core && git checkout 271308ae405e2c0ac316fcbba143022670219200
cd ../org.openbravo.retail.posterminal && git checkout ee09f381b564690bcfb52403a043659531d138

- Start the environment (do not clear the cache), try to log in. An error will be displayed
No tags attached.
depends on backport 005289523Q3 closed AugustoMauch Cache refresh forced after updating environment 
caused by feature request 0052092 closed gonzalo_fernandez Store a single copy of the Terminal in IndexedDB 
Issue History
2023-06-30 08:48AugustoMauchNew Issue
2023-06-30 08:48AugustoMauchAssigned To => AugustoMauch
2023-06-30 08:48AugustoMauchTriggers an Emergency Pack => No
2023-06-30 08:48AugustoMauchStatusnew => scheduled
2023-06-30 08:56AugustoMauchRelationship addedcaused by 0052092
2023-06-30 09:22AugustoMauchSummaryCache refresh forced after => Cache refresh forced after updating environment
2023-06-30 09:27hgbotNote Added: 0151927
2023-07-03 14:07hgbotResolutionopen => fixed
2023-07-03 14:07hgbotStatusscheduled => closed
2023-07-03 14:07hgbotNote Added: 0152049
2023-07-03 14:07hgbotFixed in Version => RR23Q4
2023-07-03 14:07hgbotNote Added: 0152050

Notes
(0151927)
hgbot   
2023-06-30 09:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/562 [^]
(0152049)
hgbot   
2023-07-03 14:07   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/562 [^]
(0152050)
hgbot   
2023-07-03 14:07   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: 768145f4b9dbd31dd87bcfb58efee9fdc3d71e84
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 02-07-2023 12:48:53
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/768145f4b9dbd31dd87bcfb58efee9fdc3d71e84 [^]

Fixes ISSUE-52894: Prevents forced cache clean after updating IndexedDB model

The problem was that the login IndexedDB store required to be notified of a version change after introducing the new
Terminal model. If it is not modified, on an existing application, it will not try to recreate that database, resulting
in the new model not being created, but being accessed by the updated sources

---
M web/org.openbravo.mobile.core/app/model/login/OfflineSessionController.js
---