Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0043721 | Retail Modules | Web POS | public | 2020-04-13 14:15 | 2020-04-22 07:10 |
Reporter | caristu | ||||
Assigned To | caristu | ||||
Priority | high | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR20Q3 | |||
Merge Request Status | |||||
Review Assigned To | alostale | ||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0043721: Change IndexedDBController and MasterdataController API to define async functions instead of returning Promises | ||||
Description | The functions of IndexedDBController and MasterdataController that are returning Promises can be changed to define them as async functions. See [1] and [2]. In the case of IndexedDBController functions we can follow this pattern[3]. This change should be transparent for the API consumers. [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/persistence/indexeddb/IndexedDBController.js#L206 [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/model/masterdata/MasterdataController.js#L482 [^] [3] https://stackoverflow.com/questions/46933801/how-do-i-wrap-a-callback-with-async-await/46933884#46933884 [^] | ||||
Steps To Reproduce | . | ||||
Proposed Solution | Replace Promise returning with async function definition | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-04-13 14:15 | caristu | New Issue | |||
2020-04-13 14:15 | caristu | Assigned To | => Retail | ||
2020-04-13 14:15 | caristu | OBNetwork customer | => No | ||
2020-04-13 14:15 | caristu | Triggers an Emergency Pack | => No | ||
2020-04-13 14:15 | caristu | Summary | Change IndexedDBController and MasterdataController API to define asyn functions instead of returning Promises => Change IndexedDBController and MasterdataController API to define async functions instead of returning Promises | ||
2020-04-16 08:08 | alostale | Assigned To | Retail => caristu | ||
2020-04-16 08:09 | alostale | Review Assigned To | => alostale | ||
2020-04-17 09:43 | hgbot | Checkin | |||
2020-04-17 09:43 | hgbot | Note Added: 0119229 | |||
2020-04-17 09:43 | hgbot | Status | new => resolved | ||
2020-04-17 09:43 | hgbot | Resolution | open => fixed | ||
2020-04-17 09:43 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f3bf0b0001dbfda3e7549de5b71821dd8258b26f [^] | ||
2020-04-17 10:08 | hgbot | Checkin | |||
2020-04-17 10:08 | hgbot | Note Added: 0119230 | |||
2020-04-22 07:10 | alostale | Status | resolved => closed | ||
2020-04-22 07:10 | alostale | Fixed in Version | => RR20Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|