Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0052797 | POS2 | POS | public | 2023-06-20 14:51 | 2023-06-21 10:56 |
Reporter | AugustoMauch | ||||
Assigned To | AugustoMauch | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 23Q3 | |||
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 | 0052797: Improve log of persistence errors, try to unpause persistence | ||||
Description | Sometimes when completing an order or a cashup, we detect that the change has not been properly persisted. This is problematic becuase the next time the state is recovered from the persistence, it will be outdated. It would be useful to: - Increase the log when a persistence error is detected by including info about the size of the state and the localstorage, to detect problem caused of the state not fitting in localstorage - Try to unpause the persistence. A possible reason why the persistence is not working is that it is paused. If we unpause it when we detect a problem, and the problem was caused by a paused persistence, the next time the state is updated it should be properly persisted | ||||
Steps To Reproduce | We still don't know why the state stops being persisted. To force a persistence error simulating the persistence is paused: - Open POS2 - Add a product to the ticket - Open the developer tools and execute: OB.App.State.persistence.stateStorePersistor.pause() - Go to payments and pay the ticket and complete the ticket - Notice that an error message will be logged in the console: "[statePersistance] Error when persisting completion of..." | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2023-06-20 14:51 | AugustoMauch | New Issue | |||
2023-06-20 14:51 | AugustoMauch | Assigned To | => Retail | ||
2023-06-20 14:51 | AugustoMauch | OBNetwork customer | => No | ||
2023-06-20 14:51 | AugustoMauch | Triggers an Emergency Pack | => No | ||
2023-06-20 14:51 | AugustoMauch | Assigned To | Retail => AugustoMauch | ||
2023-06-20 14:51 | AugustoMauch | Status | new => scheduled | ||
2023-06-20 14:55 | hgbot | Merge Request Status | => open | ||
2023-06-20 14:55 | hgbot | Note Added: 0151387 | |||
2023-06-20 15:23 | AugustoMauch | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=26294#r26294 | ||
2023-06-21 10:56 | hgbot | Merge Request Status | open => approved | ||
2023-06-21 10:56 | hgbot | Resolution | open => fixed | ||
2023-06-21 10:56 | hgbot | Status | scheduled => closed | ||
2023-06-21 10:56 | hgbot | Note Added: 0151430 | |||
2023-06-21 10:56 | hgbot | Fixed in Version | => 23Q3 | ||
2023-06-21 10:56 | hgbot | Note Added: 0151431 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|