Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0044111
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSminorhave not tried2020-05-19 18:172020-05-21 10:26
ReporteradrianromeroView Statuspublic 
Assigned Toadrianromero 
PrioritynormalResolutionfixedFixed in VersionRR20Q3
StatusclosedFix in branchFixed in SCM revisionba6e30b31143
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0044111: Improve hooks registration with Promises

Descriptionith 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 ReproduceN/A
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(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
---

- Issue History
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 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
Powered by Mantis Bugtracker