- I can make multiple revision of the task by using
identifier - I have to make trade off table
CurrentTaskContentto showupdated_bythe latest user withupdated_attimestamp.
docker compose up. To up and running thepostgres.alembic upgrade head. To apply migration files.uvicorn main:app --reload. To run the project.
filter and pagination
get /?due_dates__lte=2021-09-01&status=completed&created_by_username=foo&updated_by_username=foo
post= make new instance with newidentifierput= make new instance with newidentifier, but reuse the oldid.delete= mark as deleted.post/undo/<task_id>= undelete the instance
Rather than using POSTMAN click. I prefer run the script. It mutates the database. Then be careful.
You need to add User first start with id=1.
python -m unittest core/tests/*.py. To run all test cases.
python -m unittest core.tests.test_delete.TestDelete. To run specific test file.
python -m unittest core.tests.test_delete.TestDelete.test_delete_task. To run specific test case.
pip install coveragecoverage run -m unittest core/tests/*.pycoverage report -mcoverage html
