RealDevSquad / RealDevSquad/website-backend

Remove temporary/one-time-use migration endpoint for GitHub duplication fix

Open
#1,331 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

The following endpoint was added for migration purposes which was a one-time operation.

Now that they have served their purpose they should be removed from the codebase
Along with the routes their corresponding models, controllers, tests(if any) & import/exports should also be removed

This should be done after

  • POST /users/migrate has been executed

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 in routes/users.js at the POST /users/migrate endpoint. Confirm that the migration has been executed, then trace its corresponding models, controllers, tests, and import/exports for removal. Done means the temporary endpoint and all of its related code are removed from the codebase.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
api, backend
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.