Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0046510 | Retail Modules | Web POS | public | 2021-05-05 12:33 | 2023-05-24 08:19 |
Reporter | alostale | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR23Q3 | |||
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 | 0046510: unhandled promise rejections are not sent to the terminal log | ||||
Description | Unhandled promise rejections are not sent to the terminal log as unhandled errors are. This causes, for example, not logging unexpected errors in state actions. | ||||
Steps To Reproduce | 1. Edit AddProduct.jsOB.App.StateAPI.Ticket.addProduct.addActionPreparation( async (ticket, payload) => { if (true) throw Error('failed adding product'); // ... 2. Log in pos and try add a product to the ticket -> OK: the product is not added because the code above failed 3. Wait until terminal log is sent to backend 4. Log in backoffice and open Terminal Log window -> ERROR: there is no entry with the 'failed adding product' message | ||||
Proposed Solution | Implement unhandledrejection event [1] similar to current window.onerror. Note both APIs are different. [1] https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-05-05 12:33 | alostale | New Issue | |||
2021-05-05 12:33 | alostale | Assigned To | => Retail | ||
2021-05-05 12:33 | alostale | OBNetwork customer | => No | ||
2021-05-05 12:33 | alostale | Triggers an Emergency Pack | => No | ||
2021-05-05 12:50 | alostale | Proposed Solution updated | |||
2022-07-21 15:47 | radhakrishnan | Assigned To | Retail => radhakrishnan | ||
2022-07-21 15:48 | radhakrishnan | Status | new => scheduled | ||
2023-05-04 07:30 | marvintm | Assigned To | radhakrishnan => Retail | ||
2023-05-09 07:06 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2023-05-10 09:28 | hgbot | Merge Request Status | => open | ||
2023-05-10 09:28 | hgbot | Note Added: 0149538 | |||
2023-05-24 08:18 | hgbot | Merge Request Status | open => approved | ||
2023-05-24 08:19 | hgbot | Resolution | open => fixed | ||
2023-05-24 08:19 | hgbot | Status | scheduled => closed | ||
2023-05-24 08:19 | hgbot | Note Added: 0150178 | |||
2023-05-24 08:19 | hgbot | Fixed in Version | => RR23Q3 | ||
2023-05-24 08:19 | hgbot | Note Added: 0150179 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|