Openbravo Issue Tracking System - POS2 |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0050720 | POS2 | Core | public | 2022-11-03 12:38 | 2022-11-08 09:44 |
|
Reporter | cberner | |
Assigned To | cberner | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 23Q1 | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | No |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0050720: Terminal log is lost on logout if state is removed before next login |
Description | Terminal log is saved when we logout from the application in the state. 0000145:0000030 seconds later, it is moved from state to indexedDB, where it is persisted. If this doesn't happen, because we close the application after logout, anything that is in the state, is susceptible to being removed and not persisted.
We should not lose this terminal log, by forcing save into indexedb just before logout. |
Steps To Reproduce | 1. Login WebPOS and do a cashup.
2. Refresh the application while in login screen, and then clear the current state -> OB.App.State.persistence.stateStorePersistor.purge() in devtools console
3. Try to login, check that terminal log is lost, by going to backend and looking at the terminal log window |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | depends on | backport | 0050730 | 22Q4.1 | closed | cberner | Terminal log is lost on logout if state is removed before next login | depends on | backport | 0050731 | 22Q3.3 | closed | cberner | Terminal log is lost on logout if state is removed before next login |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2022-11-03 12:38 | cberner | New Issue | |
2022-11-03 12:38 | cberner | Assigned To | => cberner |
2022-11-03 12:38 | cberner | OBNetwork customer | => No |
2022-11-03 12:38 | cberner | Triggers an Emergency Pack | => No |
2022-11-03 12:40 | hgbot | Merge Request Status | => open |
2022-11-03 12:40 | hgbot | Note Added: 0142875 | |
2022-11-04 10:53 | guilleaer | Status | new => scheduled |
2022-11-07 18:34 | hgbot | Note Added: 0143186 | |
2022-11-07 23:50 | hgbot | Merge Request Status | open => approved |
2022-11-07 23:54 | hgbot | Resolution | open => fixed |
2022-11-07 23:54 | hgbot | Status | scheduled => closed |
2022-11-07 23:54 | hgbot | Note Added: 0143188 | |
2022-11-07 23:54 | hgbot | Fixed in Version | => 23Q1 |
2022-11-07 23:54 | hgbot | Note Added: 0143189 | |
2022-11-07 23:54 | hgbot | Note Added: 0143190 | |
2022-11-07 23:54 | hgbot | Note Added: 0143191 | |
2022-11-08 09:44 | hgbot | Note Added: 0143223 | |
Notes |
|
(0142875)
|
hgbot
|
2022-11-03 12:40
|
|
|
|
(0143186)
|
hgbot
|
2022-11-07 18:34
|
|
|
|
(0143188)
|
hgbot
|
2022-11-07 23:54
|
|
|
|
(0143189)
|
hgbot
|
2022-11-07 23:54
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 6d5485e031a5f1b887abb62d565bd98eeb5a5b54
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 07-11-2022 23:54:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/6d5485e031a5f1b887abb62d565bd98eeb5a5b54 [^]
Fixes ISSUE-50720: Terminal log is lost on logout if state is removed before next login
To fix this, we force a synchronization of the data just before logout,
this already happens regularly every 30 seconds, so should have little
performance impact.
---
M web-jspack/org.openbravo.core2/src/model/session/Session.js
M web-jspack/org.openbravo.core2/src/model/session/__test__/ClearSession-actionPreparation.test.js
M web-jspack/org.openbravo.core2/src/model/session/__test__/Logout.test.js
M web-jspack/org.openbravo.core2/src/model/session/actions/ClearSessionActionPreparation.js
M web-jspack/org.openbravo.core2/src/model/session/user-actions/Logout.js
---
|
|
|
(0143190)
|
hgbot
|
2022-11-07 23:54
|
|
|
|
(0143191)
|
hgbot
|
2022-11-07 23:54
|
|
|
|
(0143223)
|
hgbot
|
2022-11-08 09:44
|
|
|