Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038640Retail ModulesWeb POSpublic2018-05-28 11:352018-07-05 08:28
malsasua 
jorge-garcia 
normalmajorsometimes
closedfixed 
5
 
RR18Q3 
marvintm
No
0038640: POS is ready but master refresh process is running yet
Sometimes, the POS is ready to do sales, but the master refresh process continue executing in background.
Sometimes:
. slow network
. execute master refresh
No tags attached.
depends on backport 0038894RR18Q2.1 closed jorge-garcia POS is ready but master refresh process is running yet 
has duplicate defect 0039359 closed Retail Login process takes more than 5 minutes to finish 
causes defect 0039366 closed jorge-garcia Error in the preference "No Auto Incremental Load at Login" 
Issue History
2018-05-28 11:35malsasuaNew Issue
2018-05-28 11:35malsasuaAssigned To => Retail
2018-05-28 11:35malsasuaResolution time => 1529272800
2018-05-28 11:35malsasuaTriggers an Emergency Pack => No
2018-05-28 11:41malsasuaNote Added: 0104742
2018-05-30 14:57jorge-garciaStatusnew => scheduled
2018-05-30 14:57jorge-garciaAssigned ToRetail => jorge-garcia
2018-05-30 14:59jorge-garciaNote Added: 0104809
2018-05-31 13:25hgbotCheckin
2018-05-31 13:25hgbotNote Added: 0104841
2018-05-31 13:25hgbotStatusscheduled => resolved
2018-05-31 13:25hgbotResolutionopen => fixed
2018-05-31 13:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/76b04df18c4c746eb6c64dc621962f8d2aeb1dc1 [^]
2018-06-01 12:31marvintmNote Added: 0104869
2018-06-01 12:31marvintmStatusresolved => new
2018-06-01 12:31marvintmResolutionfixed => open
2018-06-01 13:15hgbotCheckin
2018-06-01 13:15hgbotNote Added: 0104873
2018-06-01 13:15hgbotCheckin
2018-06-01 13:15hgbotNote Added: 0104874
2018-06-01 13:15jorge-garciaStatusnew => scheduled
2018-06-01 13:15jorge-garciaStatusscheduled => resolved
2018-06-01 13:15jorge-garciaFixed in Version => RR18Q3
2018-06-01 13:15jorge-garciaResolutionopen => fixed
2018-06-04 12:04jorgewederagoIssue Monitored: jorgewederago
2018-06-04 15:03hgbotCheckin
2018-06-04 15:03hgbotNote Added: 0104921
2018-06-04 15:03hgbotCheckin
2018-06-04 15:03hgbotNote Added: 0104922
2018-06-05 09:39marvintmReview Assigned To => marvintm
2018-06-05 09:39marvintmStatusresolved => closed
2018-07-05 08:26jorge-garciaNote Added: 0105603
2018-07-05 08:26jorge-garciaStatusclosed => new
2018-07-05 08:26jorge-garciaResolutionfixed => open
2018-07-05 08:26jorge-garciaFixed in VersionRR18Q3 =>
2018-07-05 08:27jorge-garciaStatusnew => scheduled
2018-07-05 08:28jorge-garciaStatusscheduled => resolved
2018-07-05 08:28jorge-garciaResolutionopen => fixed
2018-07-05 08:28jorge-garciaStatusresolved => closed
2018-07-05 08:28jorge-garciaFixed in Version => RR18Q3
2018-09-27 11:12jorge-garciaRelationship addedhas duplicate 0039359
2018-09-28 11:53jorge-garciaRelationship addedcauses 0039366

Notes
(0104742)
malsasua   
2018-05-28 11:41   
We can reproduce it in 17Q2
(0104809)
jorge-garcia   
2018-05-30 14:59   
The issue is reproducible in PI with sessions module installed and with Chrome's network set as Fast 3G
(0104841)
hgbot   
2018-05-31 13:25   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 76b04df18c4c746eb6c64dc621962f8d2aeb1dc1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu May 31 10:19:17 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/76b04df18c4c746eb6c64dc621962f8d2aeb1dc1 [^]

Fixed issue 38640: POS is ready but master refresh process is running yet

The solution is to serialize the login process to wait until all datasources
are loaded in order to show the main window.

LoadRegistered windows now supports a callback.

The datasource array is a list of all datasources for the registered windows
instead of been a array for each windows defined.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
M web/org.openbravo.mobile.core/source/model/ob-terminal-model.js
---
(0104869)
marvintm   
2018-06-01 12:31   
There is currently a problem with the fix. In normal cases, both in full refresh and incremental refresh, it works as expected.

When there is a problem in a request in full refresh, this model and the corresponding ones fail, and finally a popup is shown explaining that the login failed and must be retried. This is also correct, and the expected behaviour.

However, when a request fails in incremental refresh, then the login should automatically navigate to the current window. However, this doesn't happen, and the loading process is stuck indefinitely. This is not correct.
(0104873)
hgbot   
2018-06-01 13:15   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 105690edb8d3910e6b55f34ec70e17758467a224
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jun 01 13:12:47 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/105690edb8d3910e6b55f34ec70e17758467a224 [^]

Related to issue 38640: POS is ready but master refresh process is running yet

Added callback if incremental refresh fail to render main window.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0104874)
hgbot   
2018-06-01 13:15   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 255ac6b87d396bf2532e0da925fc55cf8e344d1e
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jun 01 13:13:57 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/255ac6b87d396bf2532e0da925fc55cf8e344d1e [^]

Related to issue 38640: POS is ready but master refresh process is running yet

If manifest fails, OK button callback should launch showLoading window.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0104921)
hgbot   
2018-06-04 15:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a6c771b881019b10cab2a36bb6be2198f31c3794
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 04 13:48:17 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a6c771b881019b10cab2a36bb6be2198f31c3794 [^]

Related to issue 38640: POS is ready but master refresh process is running yet

Added flag terminalCorrectlyLoadedFromBackend to terminal object to indicate
if terminal request has succedeed.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---
(0104922)
hgbot   
2018-06-04 15:03   
Repository: erp/pmods/org.openbravo.retail.sessions
Changeset: 836c4838e9c711332ebab37674336b051f1492ef
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Jun 04 13:50:23 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sessions/rev/836c4838e9c711332ebab37674336b051f1492ef [^]

Related to issue 38640: POS is ready but master refresh process is running yet

If the terminal object has been correctly loaded from backend, do not execute
business date check from sessions.

---
M web/org.openbravo.retail.sessions/js/components/loginhook.js
---
(0105603)
jorge-garcia   
2018-07-05 08:26   
Reopened to create backports