[X] ✨feature: Introduces completely new code or new features.
[ ] 🐛fix: Implements changes that fix a bug. Ideally, reference an issue if present.
[ ] ♻️refactor: Includes any code-related change that is neither a fix nor a feature.
[ ] ✅build: Encompasses all changes related to the build of the software, including changes to dependencies or the addition of new ones.
[ ] ⚡️test: Pertains to all changes regarding tests, whether adding new tests or modifying existing ones.
[ ] 🚰ci: Involves all changes related to the configuration of continuous integration, such as GitHub Actions or other CI systems.
[ ] 📚docs: Includes all changes to documentation, such as README files, or any other documentation present in the repository.
[ ] 🗑️chore: Captures all changes to the repository that do not fit into the above categories.
Description
What did you change? How did you change it?
I added router endpoints for the WorkoutLog model of our schema including:
A creation function that allows us to create workout logs
An update function that allows us to update a log based on the provided log id (not userID)
A single query function that will return a single workout log based on the provided log id (not userID)
A multiple query function that will return all workout logs for the provided userID (not log id) in ascending order off dates.
Tests
How was this tested?
[ ] Unit tests
[ ] Integration tests
[ ] E2E tests
[X] Manual tests
[ ] Tests were NOT needed
[ ] Other (explain below)
[Optional] Screenshots
Database before creating a new workout log:
Successful queries using single and multiple query functions:
Database after creating a new workout log:
Database after updating newly created log:
Documentation
[ ] Added to README.me
[ ] Seperate document
[X] NO documentation needed
Link to external documentation:
[Optional] Are there any post-deployment tasks we need to perform?
There was just one thing I noticed that I wasn't too sure about; when I create a new workout log, the duration was 3660 as opposed to the passed value of 0 that I gave it. This could just be a local thing, but worth looking into.
What type of PR is this? (Check all that apply)
Description
What did you change? How did you change it?
I added router endpoints for the WorkoutLog model of our schema including: A creation function that allows us to create workout logs An update function that allows us to update a log based on the provided log id (not userID) A single query function that will return a single workout log based on the provided log id (not userID) A multiple query function that will return all workout logs for the provided userID (not log id) in ascending order off dates.
Tests
How was this tested?
[Optional] Screenshots
Database before creating a new workout log:
Successful queries using single and multiple query functions:
Database after creating a new workout log:
Database after updating newly created log:
Documentation
Link to external documentation:
[Optional] Are there any post-deployment tasks we need to perform?
There was just one thing I noticed that I wasn't too sure about; when I create a new workout log, the duration was 3660 as opposed to the passed value of 0 that I gave it. This could just be a local thing, but worth looking into.