-
Notifications
You must be signed in to change notification settings - Fork 3
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
166152325 Adds relation between workout log and workout session #19
166152325 Adds relation between workout log and workout session #19
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work. The link between workoutlog and session has been established. The pr meets all checks on the description
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected. The session id foreign key is being registered once a new workout log is added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work, the relation has been established successfully
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job implementing the workout log and workout session relationship. 👍🏾
- Adds field session to workoutlog - Adds tests to show relationship between workoutlog and workoutsession [Delivers #166152325]
5e48e85
to
a53cc6e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please increase coverage
Coverage is well taken care of as it ought to be. |
Title
Adds a relation between workout log and workout session
Description
Right now the workout logs and the workout session are only linked through the date (for sessions this value is unique and enforced by the DB). This presents in some places a problem since it's not possible to just follow a foreign key relationship with the ORM like in other places.
Type of change
Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Breaking change (fix or feature that would cause existing functionality to not work as expected)
This change requires a documentation update
How Has This Been Tested?
Acceptance Criteria:
Checklist:
PT stories
#166152325
Screenshots
As can be viewed below, once a workout log is created, it is auto-populated with the respective session id. This can be verified by browsing the database with a tool like
pgAdmin