5.5 KiB
5.5 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.0.7] - 2024-05-05
Added
- Models subpackage:
- User class:
- get_dogs() method
- str() method that returns name attribute
- status attribute
- Dog class:
- get_age() method to calculate age of dog from birth_date attribute
- str() method that returns name attribute
- Visit class:
- str() method that returns date_time attribute
- repr() method that returns to_dict() method
- User class:
- App factory now in app_factory.py
- Development and testing now have different configurations.
- development_config.py
- tests/testing_config.py
- Makefile:
- Default help target
- Views submodule:
- users.py:
- user_dogs_panel() view for users dashboard to config dogs
- users.py:
- Jinja templates:
- Users my dogs panel for users dashboard
- Tests:
- test_dog_model.py to test Dog model
Changed
- Models subpackage:
- User class:
- get_bookings() method renamed to get_visits()
- get_bookings_history() method renamed to get_visit_history()
- Dog class:
- age attribute renamed to birth_date
- status attribute now linked to User status
- repr() method now return to_dict() method
- Dog Submodule:
- BreedSize values are now specific
- Visit Submodule:
- VisitType values are now specific
- User class:
- Tests package:
- conftest.py:
- Updated to use new app_factory.py
- client() fixture renamed to http_client()
- test_user_model.py:
- Updated to use new app_factory.py
- Variables updated to reflect methods in User model
- test number of dogs user owns
- conftest.py:
- Views submodel:
- Users dashboard route:
- Update User model object usage to reflect renamed methods
- Renamed variable user_dogs to user_pets
- user_pets template variable renamed to user_dogs
- User API endpoints:
- user_pets() view renamed to user_dogs()
- user_dogs() endpoint renamed to /users//dogs
- Users dashboard route:
- Makefile:
- Target commands are no longer echoed when run.
- Jinja templates:
- Login and Registration:
- Initial form work
- Users Dashboard:
- Page title now includes "Account Dashboard"
- pets_overview.html renamed to dogs_overview.html
- dogs_overview.html started using Bootstrap for styling
- visits_overview.html started using Bootstrap for styling
- Login and Registration:
Removed
- Models subpackage:
- User class:
- removed redundent import from get_visit_history() method
- User class:
- Nix shell:
- Exported environment variables
- Tests:
- test_user_model.py:
- Unused imports
- test_user_model.py:
Fixed
- Fixed typo in CHANGELOG.md
- Makefile:
- Comments used by help target now use correct symbol (##)
- Models subpackage:
- Dog class:
- to_dict() method should now return dict representation of Dog object
- User class:
- get_visit_history() method renamed to get_visit_overview()
- to_dict() method should now return dict representation of User object
- Visit class:
- to_dict() method should now return dict representation of Visit object
- Dog class:
- Jinja templates:
- Users Dashboard:
- Page header changed to "Account Dashboard"
- Update dog overview include
- Users Dashboard:
- App factory:
- DB dog test data updated to use birth_date attribute
- DB test data for the dog Rufus changed to reflect actual breed_size
[0.0.6] - 2024-04-28
Added
- This changelog file. Hooray!
- Nix shell:
- Retext now available to easily view markdown files
- Makefile targets:
- view-readme now available for convenient README.md viewing.
- view-changelog now available for convenient CHANGELOG.md viewing.
- Models subpackage:
- Status class
- Dog subpackage:
- BreedSize class
- Dog class:
- age column
- breed_size column
- created_at column
- status column
- updated_at column
- User class:
- created_at column
- name column
- updated_at column
- Visit subpackage:
- VisitType class
- Visit class:
- created_at column
- updated_at column
- visit_type column
- get_date method
- get_time method
- Tests:
- Test for User db model class (test_user_model.py)
- testing_app.py:
- added additional user (Real Person)
- Jinja templates:
- User dashboard:
- Pets overview table subtemplate
- User dashboard:
Changed
- Models subpackage:
- back_populates replaced backref parameter to explicitly define table relationships
- Dog class moved to its own subpackage of models
- Visit class moved to its own subpackage) of models
- Tests:
- testing_app.py:
- updated models to use new columns in database seeding function
- seeded db data changed to be more unique
- testing_app.py:
- Jinja templates:
- User dashboard:
- User visit overview renamed
- User dashboard:
Removed
- Nix development shell:
- Inlyne markdown viewer (replaced by Retext)
- Jinja templates:
- User Dashboard:
- User details no longer displayed
- User Dashboard: