Openbravo Issue Tracking System - POS2
View Issue Details
0047719POS2Corepublic2021-09-20 13:022021-09-28 14:32
jarmendariz 
jarmendariz 
normalmajoralways
closedfixed 
5
 
 
No
0047719: Background incremental Masterdata refresh should not be executed when logged out
After a login and a logout in a mobile application, a timer that triggers the incremental Masterdata refresh in a given interval will still be executed, resulting in unnecesary requests to the backoffice that always returns error 401.
In backoffice, switch to "White valley group admin"

- Open "Touchpoint type" window and look for "POS2SD VBS POS2 Terminal Type"
- Update "Time to Incrementally Refresh Masterdata (in minutes)" to 1
- Update "Time to force masterdata refresh on inactivity (in minutes)" to 1

Then, open POS2 with VBS-2 terminal:

- Login
- Logout

Notice in the network tab in developer tools that a MasterDataLoader request is being executed every minute and always returns 401.
Background masterdata incremental refresh timer should be stopped on logout.
No tags attached.
related to defect 0047655 closed prakashmurugesan88 JIRA 2305 - Update database in background - Info message appears several times 
Issue History
2021-09-20 13:02jarmendarizNew Issue
2021-09-20 13:02jarmendarizAssigned To => jarmendariz
2021-09-20 13:02jarmendarizTriggers an Emergency Pack => No
2021-09-20 13:04jarmendarizRelationship addedrelated to 0047655
2021-09-20 18:07guilleaerProjectRetail Modules => POS2
2021-09-20 18:08guilleaerStatusnew => acknowledged
2021-09-20 18:08guilleaerCategoryWeb POS => POS
2021-09-21 12:04AugustoMauchCategoryPOS => Core
2021-09-21 17:44hgbotNote Added: 0131964
2021-09-21 18:10guilleaerStatusacknowledged => scheduled
2021-09-22 13:54hgbotNote Added: 0131973
2021-09-28 14:32hgbotNote Added: 0132043
2021-09-28 14:32hgbotNote Added: 0132044
2021-09-28 14:32hgbotResolutionopen => fixed
2021-09-28 14:32hgbotStatusscheduled => closed
2021-09-28 14:32hgbotNote Added: 0132045
2021-09-28 14:32hgbotNote Added: 0132046

Notes
(0131964)
hgbot   
2021-09-21 17:44   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/636 [^]
(0131973)
hgbot   
2021-09-22 13:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/686 [^]
(0132043)
hgbot   
2021-09-28 14:32   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: f3b1f0298a352f5c5dc26f3b88b5a0be78284636
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 2021-09-28T14:31:02+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/f3b1f0298a352f5c5dc26f3b88b5a0be78284636 [^]

Related to ISSUE-47719: Refactoring and simplifying failing tests that used Logout user action

---
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/AbortInitialCount.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/FinishCashupUserAction.test.js
M web-jspack/org.openbravo.pos2/src/model/user-interface/__test__/finishCashupUi.js
---
(0132044)
hgbot   
2021-09-28 14:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/686 [^]
(0132045)
hgbot   
2021-09-28 14:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 4f9631ea85f1bd5370f6ed4505d168baf6b28388
Author: Javier Armendáriz <javier.armendariz@openbravo.com>
Date: 2021-09-28T09:42:04+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/4f9631ea85f1bd5370f6ed4505d168baf6b28388 [^]

Fixed ISSUE-47719: Masterdata background incremental refresh is executed after logout

---
M web-jspack/org.openbravo.core2/src/model/session/__test__/Logout.test.js
M web-jspack/org.openbravo.core2/src/model/session/user-actions/Logout.js
---
(0132046)
hgbot   
2021-09-28 14:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/636 [^]