CSC510-Group-25 / feature-hunt

A feature collection platform where users can share/vote/discuss feature requests and product owners can organize them
MIT License
0 stars 6 forks source link

MongoDB: collections named "user" and "users", both used in backend and backend-new files #129

Closed snapcat closed 2 years ago

snapcat commented 2 years ago

"user" collection used in backend-new/db_init.py

"users" collection used in backend/app/init.py

This may cause significant confusion down the road if left unaddressed.

Suggested fix: delete or rename one of the collections and/or update the relevant files.

peeyush10234 commented 2 years ago

changed records = db.user to db.users in db_init.py file.

snapcat commented 2 years ago

Resolved

Discussion:

Leila Moran — 11/03/2021 Is the collection "total_records" still being used somewhere? If not, it'd be better to delete it I think.

Peeyush — 11/03/2021 in which file ?

Leila Moran — 11/03/2021 I'm not sure? I'm looking at the collections on MongoDB.

Peeyush — 11/03/2021 yeah we don't have total_records anywhere in backend code

Peeyush — 11/03/2021 You can delete it

Leila Moran — 11/03/2021 Done! Are we using db.register?

Peeyush — 11/03/2021 no we are only using feature-hunt

Leila Moran — 11/03/2021 I don't think we're using feature-hunt.db anywhere either.

Peeyush — 11/03/2021 we are not using db and user_projects and also not user only users and user_projects are being used