Skip to content

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

Development

Successfully merging this pull request may close these issues.

Return more detailed response from controllers Rename projects routes to project Remove ids from **project** update and delete routes

2 participants