Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
46 stars 201 forks source link

Removal of backfill script for "in_discord" false role, "in_discord" field in user's data and replacing "in_discord" with NOT "archived" in codebase #1966

Open aneeshsubudhi-7901 opened 4 months ago

aneeshsubudhi-7901 commented 4 months ago

Issue Description

Currently, there is a backfill script in place that adds the "in_discord" role with a value of false to all existing users. With a robust verification process in place, this script is no longer needed. Also, as discord features were built over time "in_discord" and "archived" fields for users have been in flip state i.e when "in_discord" false, archived "true" and vice versa. Hence, the "in_discord" field is now redundant, needs to be replaced with NOT "archived" in all its occurrences in codebase. Further, the "in_discord" field is to be removed from each users' data.

Expected Behavior

Backfill script safely removed, NOT "archived" in use in codebase in place of "in_discord", "in_discord" field removed from users' data.

Current Behavior

Backfill script here is a redundant piece of code and not in use any more. "in_discord" field has become a redundant field with "archived" more in use.

Screenshots

N/A

Reproducibility

Steps to Reproduce

N/A

Severity/Priority

Additional Information

This issue is based on and an extension of an old open issue #1404

Checklist