Openbravo Issue Tracking System - POS2
View Issue Details
0046439POS2Corepublic2021-04-30 12:352021-05-05 07:59
gorka_gil 
gorka_gil 
highmajorsometimes
closedfixed 
5
 
 
No
0046439: Reset app state on sources update
Right now the app state is not recreated when sources updates,
this lead sometimes to errors like:
  Cannot read property 'id' of undefined

The state should be reset, deleted and recreated based on new sources.
Needed to be in production mode: in tomcat , so service workers are active
No tags attached.
depends on backport 0046441TAP closed gorka_gil Reset app state on sources update 
has duplicate defect 0046335 closed jmelin JIRA 1748 - Message 'ActionCanceled' on POS after application update 
related to defect 0046498 closed alostale New sources are not updated till doing a reload (F5) in the pos 
related to defect 0046499 closed alostale After updating the sources, the old app can be used for few seconds 
Issue History
2021-04-30 12:35gorka_gilNew Issue
2021-04-30 12:35gorka_gilAssigned To => gorka_gil
2021-04-30 12:35gorka_gilTriggers an Emergency Pack => No
2021-04-30 13:32marvintmStatusnew => scheduled
2021-05-03 09:37guilleaerRelationship addedrelated to 0046335
2021-05-03 09:37guilleaerRelationship replacedhas duplicate 0046335
2021-05-04 17:05hgbotNote Added: 0127775
2021-05-04 18:52gorka_gilRelationship addedrelated to 0046498
2021-05-04 19:01gorka_gilSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22442#r22442
2021-05-04 19:01gorka_gilRelationship addedrelated to 0046499
2021-05-05 07:59hgbotResolutionopen => fixed
2021-05-05 07:59hgbotStatusscheduled => closed
2021-05-05 07:59hgbotNote Added: 0127801
2021-05-05 07:59hgbotNote Added: 0127802

Notes
(0127775)
hgbot   
2021-05-04 17:05   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/487 [^]
(0127801)
hgbot   
2021-05-05 07:59   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 406acdf1842498a7124a7ad429ae9cdeedd8000a
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 2021-05-05T05:41:15+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/406acdf1842498a7124a7ad429ae9cdeedd8000a [^]

Fixes ISSUE-46439: reset state on sources update

This fix only affect to production (tomcat and service workers)
In development (npm start with no service workers) the state is mantained after update sources

---
M web-jspack/org.openbravo.core2/src/registerServiceWorker.js
---
(0127802)
hgbot   
2021-05-05 07:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/487 [^]