Openbravo Issue Tracking System - POS2
View Issue Details
0046499POS2Corepublic2021-05-04 19:002021-06-01 10:44
gorka_gil 
alostale 
normalmajoralways
closedfixed 
5
 
 
No
0046499: After updating the sources, the old app can be used for few seconds
When new sources are detected, it reset the state and do a page reload, but this happens some seconds after login, so is possible to use the old application for few seconds. All the changes done will be lost, and also is not the desired flow.

The loading screen should be maintained till sources update or something similar.
Needed to be in production mode: in tomcat , so service workers are active
No tags attached.
related to defect 0046439 closed gorka_gil Reset app state on sources update 
related to defect 0046498 closed alostale New sources are not updated till doing a reload (F5) in the pos 
Issue History
2021-05-04 19:00gorka_gilNew Issue
2021-05-04 19:00gorka_gilAssigned To => platform
2021-05-04 19:00gorka_gilResolution time => 1621980000
2021-05-04 19:00gorka_gilTriggers an Emergency Pack => No
2021-05-04 19:01gorka_gilRelationship addedrelated to 0046439
2021-05-05 19:30guilleaerStatusnew => acknowledged
2021-05-19 09:41alostaleRelationship addedrelated to 0046498
2021-05-19 09:41alostaleAssigned Toplatform => alostale
2021-05-28 10:55hgbotResolutionopen => fixed
2021-05-28 10:55hgbotStatusacknowledged => resolved
2021-05-28 10:55hgbotNote Added: 0128765
2021-06-01 10:44alostaleStatusresolved => closed

Notes
(0128765)
hgbot   
2021-05-28 10:55   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: d8188a44878f1513a70382b1f73729bd694959ea
Author: Asier Lostalé <asier.lostale@openbravo.com>
Date: 2021-05-28T10:53:51+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/d8188a44878f1513a70382b1f73729bd694959ea [^]

fixes BUG-46498: check updates on login; fixes BUG-46499: block UI when updating

Included changes:

   * BUG-46498: When logging in, check if there are new sources and update if so
   * BUG-46499: While fetching new sources, block the UI so the user cannot operate the application

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.core2/src/components/LoadingScreen/LoadingScreen.jsx
M web-jspack/org.openbravo.core2/src/core/authentication/LoginProcess.js
M web-jspack/org.openbravo.core2/src/index.jsx
M web-jspack/org.openbravo.core2/src/registerServiceWorker.js
M web-jspack/org.openbravo.core2/src/service-worker.js
M web-jspack/org.openbravo.core2/src/serviceWorkerRegistration.js
---