Skip to content

Feature/user management#24

Draft
silvareal wants to merge 12 commits into
stagingfrom
feature/user-management
Draft

Feature/user management#24
silvareal wants to merge 12 commits into
stagingfrom
feature/user-management

Conversation

@silvareal

@silvareal silvareal commented Nov 18, 2021

Copy link
Copy Markdown
Collaborator
  • user login
  • User registration
  • user logout
  • user reset password
  • user forgot password
  • social auth login (Facebook or google)
  • replace IP's with user instance

@silvareal silvareal requested review from MeNsaaH and deven96 November 18, 2021 11:48
@silvareal silvareal changed the base branch from master to staging November 18, 2021 11:49
@MeNsaaH

MeNsaaH commented Nov 19, 2021

Copy link
Copy Markdown
Member

Looking good 🙌🏿

Comment thread app/routers/music.py
from typing import List
import contextlib
import logging

@deven96 deven96 Nov 22, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice refactor

@@ -0,0 +1,28 @@
"""autho2

@deven96 deven96 Nov 22, 2021

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the new migration files look incredibly sus
From my understanding, user table should be created in an upgrade and those foreign keys added to necessary tables
Then downgrade will consist of deleting the foreign keys and the table
I can't see the new user id foreign key field getting added to the download and referral tables

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not been able to successfully migrate this, we could possibly check this out together later... having issues with FK and i haven't worked on it since the last time we spoke.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright no problem

Comment thread app/__init__.py
Comment thread app/models/schemas.py Outdated
Comment thread app/models/crud.py
models.Movie.referral_id == spec_rating.referral_id).first()
db_rating_query = get_rating_by_schema(db, schemas.IndexedRating(
ip_address=spec_rating.ip_address, movie_id=movie.id))
user_id=spec_rating.user_I, movie_id=movie.id))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user_I instead of user_id I suppose

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oo typo, thanks

Comment thread app/models/models.py
movie_id = Column(Integer, ForeignKey("movies.id"))
ip_address = Column(String)
user_id = Column(Integer, ForeignKey("user.id"))
user_id = Column(ForeignKey("user.id"))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

user_id here is just foreign key?
Any reason why the one above is a GUID?

@@ -0,0 +1,28 @@
"""autho2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright no problem

Comment thread .vscode/settings.json
@@ -0,0 +1,5 @@
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this file to .gitignore

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also add the .DS_Store and clean them up

Comment thread .env.example
@@ -0,0 +1,4 @@
GOOGLE_CLIENT_ID=553026630658-ed4e19reiffffm0kihn5lh6ln3d4g.apps.googleusercontent.com

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this is actually a fake accoutn.

@silvareal

silvareal commented Nov 22, 2021 via email

Copy link
Copy Markdown
Collaborator Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants