ContactAssistApp / ContactAssistApp/dashboard

Use promise-based http requests instead of callback-based

Open
#81 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
9
Forks
3
PR merge metrics
No merged PRs in 30d

Description

We are currently using https module to make http requests, which takes in a callback. When you have to make multiple requests, this makes the code very hard to follow. We should use a promise-based approach instead. Axios is a popular library for doing this.

Contributor guide

Open the contributing guide

Research direction

Start by locating the dashboard's uses of the Node.js https module and trace the call sites that make multiple requests. Replace the callback-based request flow with a promise-based approach, then verify that the existing HTTP request behavior is preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.