-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Normal
-
None
-
Affects Version/s: None
-
Component/s: None
Across the codebase we have asynchronous code written using promises, which is hard to read and to maintain and error-prone.
All this code needs to be rewritten using the async/await syntax.
If you want to work on this, please create a sub-ticket for the file or section of the code you want to convert, and assign that sub-ticket to you (or ask me [monkey] to do it for you
)
One golden rule for async/await: be sure to catch potential errors thrown by the code, otherwise an uncaught error could crash the server.
Some reading material:
https://catchjs.com/Docs/AsyncAwait
http://thecodebarbarian.com/async-await-error-handling-in-javascript.html
1.
|
Convert promises in all entity server routes |
|
Review Submitted | Tarun |
2.
|
Convert promises in src/api/helpers/utils.js |
|
Review Submitted | Mokshagna |
3.
|
Refactor promises in src/common/helpers/utils.ts to use async/await. |
|
Review Submitted | Vedansh |
4.
|
Refactor promises in src/client/components/forms to use async/await |
|
Review Submitted | Ankit Matth |
5.
|
Convert promises in src/server/helpers/revisions.ts to async/await |
|
Review Submitted | Ashwani Yadav |