Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0050730 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [POS2] Core | major | have not tried | 2022-11-03 12:38 | 2022-11-08 09:42 | |||
Reporter | cberner | View Status | public | |||||
Assigned To | cberner | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 22Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | 22Q4.1 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0050730: 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 | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0143193) hgbot (developer) 2022-11-08 00:04 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/896 [^] |
(0143194) hgbot (developer) 2022-11-08 00:10 |
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/432 [^] |
(0143217) hgbot (developer) 2022-11-08 09:42 |
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^] Changeset: 17bb442f71444fb5108c0c1603e7877574163c90 Author: Cristian Berner <cristian.berner@openbravo.com> Date: 08-11-2022 00:09:58 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/17bb442f71444fb5108c0c1603e7877574163c90 [^] Related to ISSUE-50730: Extract terminalLogGenerateMessage state action to utility action The implementation was extracted to a TerminalLog utility action, so it can be used in pre and posthooks. --- M web/org.openbravo.mobile.core/app/model/business-object/terminal-log/actions/TerminalLogGenerateMessage.js --- |
(0143218) hgbot (developer) 2022-11-08 09:42 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/432 [^] |
(0143221) hgbot (developer) 2022-11-08 09:42 |
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/896 [^] |
(0143222) hgbot (developer) 2022-11-08 09:42 |
Directly closing issue as related merge request is already approved. Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^] Changeset: d35057877a0476df73bbaf80a190fea385a3e369 Author: Cristian Berner <cristian.berner@openbravo.com> Date: 08-11-2022 09:33:38 URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/d35057877a0476df73bbaf80a190fea385a3e369 [^] Fixes ISSUE-50730: 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__/Logout.test.js M web-jspack/org.openbravo.core2/src/model/session/user-actions/Logout.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2022-11-04 10:53 | guilleaer | Type | defect => backport |
2022-11-04 10:53 | guilleaer | Target Version | => 22Q4.1 |
2022-11-08 00:04 | hgbot | Note Added: 0143193 | |
2022-11-08 00:10 | hgbot | Note Added: 0143194 | |
2022-11-08 09:39 | hgbot | Merge Request Status | open => approved |
2022-11-08 09:42 | hgbot | Note Added: 0143217 | |
2022-11-08 09:42 | hgbot | Note Added: 0143218 | |
2022-11-08 09:42 | hgbot | Note Added: 0143221 | |
2022-11-08 09:42 | hgbot | Resolution | open => fixed |
2022-11-08 09:42 | hgbot | Status | scheduled => closed |
2022-11-08 09:42 | hgbot | Fixed in Version | => 22Q4 |
2022-11-08 09:42 | hgbot | Note Added: 0143222 |
Copyright © 2000 - 2009 MantisBT Group |