[ x ] Please be aware that intentional bugs have been incorporated into the application, leading to test failures. Kindly address and rectify these issues as part of the assignment.
bug : APIs could be triggered with non-matching wrong user_id and and corresponding incorrect teacher_id, student_id, or principal_id.
fix : Added validation at decorators
bug : State of assignment
fix : added the missing code to change the type of assignment.
bug : The assertions were hard coded number_of_assignments_per_state, as in the db if the number of any type of assignment is 0 then the sql_result doesn't have that in the returned list
[ x ] There are certain SQL tests present inside tests/SQL/. You have to write SQL in following files:
[ x ] count_grade_A_assignments_by_teacher_with_max_grading.sql
[ x ] number_of_assignments_per_state.sql
[ x ] Optionally, Dockerize your application by creating a Dockerfile and a docker-compose.yml file, providing clear documentation on building and running the application with Docker, to stand out in your submission
Tasks
[ x ] Add missing APIs mentioned here and get the automated tests to pass
[ x ] Add tests for grading API
[ x ] Please be aware that intentional bugs have been incorporated into the application, leading to test failures. Kindly address and rectify these issues as part of the assignment.
[ x ] All tests should pass![1706032221](https://github.com/fylein/fyle-interview-intern-backend/assets/66643292/9c743e59-3e9b-4511-8aa6-4d978c12d126)
[ x ] Get the test coverage to 94% or above![1706031967](https://github.com/fylein/fyle-interview-intern-backend/assets/66643292/fdc8f8a6-8ab0-442b-a16f-dea68e09336c)
[ x ] There are certain SQL tests present inside tests/SQL/. You have to write SQL in following files:
[ x ] Optionally, Dockerize your application by creating a Dockerfile and a docker-compose.yml file, providing clear documentation on building and running the application with Docker, to stand out in your submission
Instructions to start the application
run
sh docker compose up
this should build the container and start it , while exposing the 7755 port.