Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0044111 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2020-05-19 18:17 | 2020-05-21 10:26 | |||
Reporter | adrianromero | View Status | public | |||||
Assigned To | adrianromero | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR20Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | ba6e30b31143 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | marvintm | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0044111: Improve hooks registration with Promises | |||||||
Description | ith modern Javascript keywords async / await is very convenient to provide a way to register asynchronous hooks without calling the callbacks. For example. OB.UTIL.HookManager.registerAsyncHook( 'Hook_Qualifier', async args => { // Implementation of the hook // const condition = await ... // if (condition) { // throw new Error(); // } } ); | |||||||
Steps To Reproduce | N/A | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0120075) hgbot (developer) 2020-05-20 09:00 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: ba6e30b31143e3cd05f4034da80d24b91a915c0b Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Tue May 19 18:18:56 2020 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ba6e30b31143e3cd05f4034da80d24b91a915c0b [^] Fixes ISSUE-44111: Improve hooks registration with Promises --- M web/org.openbravo.mobile.core/source/utils/ob-hooks.js --- |
(0120076) hgbot (developer) 2020-05-20 09:09 |
Repository: erp/pmods/org.openbravo.mobile.core Changeset: 38cd9a07641db81b79461938f6d71e6a011ce822 Author: Adrián Romero <adrianromero <at> openbravo.com> Date: Wed May 20 09:09:31 2020 +0200 URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/38cd9a07641db81b79461938f6d71e6a011ce822 [^] Related ISSUE-44111: Improve hooks registration with Promises * Adds error that cancels hook execution to args --- M web/org.openbravo.mobile.core/source/utils/ob-hooks.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2020-05-19 18:17 | adrianromero | New Issue | |
2020-05-19 18:17 | adrianromero | Assigned To | => adrianromero |
2020-05-19 18:17 | adrianromero | OBNetwork customer | => No |
2020-05-19 18:17 | adrianromero | Triggers an Emergency Pack | => No |
2020-05-20 09:00 | hgbot | Checkin | |
2020-05-20 09:00 | hgbot | Note Added: 0120075 | |
2020-05-20 09:00 | hgbot | Status | new => resolved |
2020-05-20 09:00 | hgbot | Resolution | open => fixed |
2020-05-20 09:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ba6e30b31143e3cd05f4034da80d24b91a915c0b [^] |
2020-05-20 09:03 | adrianromero | Review Assigned To | => marvintm |
2020-05-20 09:09 | hgbot | Checkin | |
2020-05-20 09:09 | hgbot | Note Added: 0120076 | |
2020-05-21 10:26 | marvintm | Status | resolved => closed |
2020-05-21 10:26 | marvintm | Fixed in Version | => RR20Q3 |
Copyright © 2000 - 2009 MantisBT Group |