-
Task
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
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 src/server/routes/statistics.js | Closed | Meziyum | |
2.
|
Convert promises in all entity server routes | Review Submitted | Tarun | |
3.
|
Convert promises in src/server/helpers/middleware.ts | Closed | rohansasne30 | |
4.
|
Convert promises in src/server/routes/revision.js | Closed | rohansasne30 | |
5.
|
Convert promises in merge route (src/server/routes/merge.ts) | Closed | rohansasne30 | |
6.
|
Convert promises in src/common/helpers/search.js | Closed | Aryan Agrawal | |
7.
|
Convert promises in all test files | In Development Branch | faraz16iqbal | |
8.
|
Convert promises in src/api/helpers/utils.js | Open | munishk |