RealDevSquad / RealDevSquad/website-backend

Change the `status` key to `legacy_status` in `\users\:userName` endpoint

Open
#789 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
74
Forks
276
Avg merge
1d 26m
Merged PRs (30d)
14

Description

Currently, in the \users\:userName endpoint we get the object which has a key status and its value is one of the items in this list [ ooo, active, idle]. We are also creating a new Status collection. Hence we need to change the status key in the \users\:userName endpoint to legacy_status. Also wherever in our apps we are using status it needs to be updated to legacy_status so that our Apps don't break because of this change.

TLDR:

  • Change status key to legacy_status in \users\:userName endpoint.
  • Update the status key to legacy_status in all the apps.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the users/:userName endpoint and identify every app reference to the existing status key. Update the endpoint and all consuming apps consistently, then verify that no affected app still expects status and that the new legacy_status response works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
api, 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.