Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@silvareal
Copy link
Collaborator

@silvareal silvareal commented Nov 18, 2021

  • 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
Copy link
Member

MeNsaaH commented Nov 19, 2021

Looking good 🙌🏿

from typing import List
import contextlib
import logging

Copy link
Member

@deven96 deven96 Nov 22, 2021

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
Copy link
Member

@deven96 deven96 Nov 22, 2021

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
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
Member

Choose a reason for hiding this comment

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

Alright no problem

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
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
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

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
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
Member

Choose a reason for hiding this comment

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

Alright no problem

@@ -0,0 +1,5 @@
{
Copy link
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
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

@@ -0,0 +1,4 @@
GOOGLE_CLIENT_ID=553026630658-ed4e19reiffffm0kihn5lh6ln3d4g.apps.googleusercontent.com
Copy link
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
Copy link
Collaborator Author

silvareal commented Nov 22, 2021 via email

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