Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Routes project refactor #80

Open
wants to merge 20 commits into
base: develop
Choose a base branch
from
Open

Routes project refactor #80

wants to merge 20 commits into from

Conversation

petak5
Copy link
Member

@petak5 petak5 commented Jul 3, 2020

No description provided.

@petak5 petak5 added this to the Release 1.0 milestone Jul 3, 2020
@petak5 petak5 marked this pull request as ready for review July 3, 2020 13:59
Copy link
Contributor

@cgeopapa cgeopapa left a comment

Choose a reason for hiding this comment

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

src/api/controllers/userController.py changes will make conflicts with the input-validation branch changes

Comment on lines +17 to +19
userHasProject = UserHasProject(role=1)
userHasProject.project = project
userHasProject.user = user
Copy link
Contributor

Choose a reason for hiding this comment

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

userHasProject table is not filled automatically?

Copy link
Member Author

Choose a reason for hiding this comment

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

I followed the example in the documentation: https://docs.sqlalchemy.org/en/13/orm/basic_relationships.html#association-object

Didn't find any other way to create the relationship.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants