-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#173] Update Pet and Profile models to improve data handling
Implement the following changes: - Convert `pet_type` values to lowercase on save in `Pet` model - Order `Profile` objects by creation date, oldest first - Add `get_default_profile()` method to `User` model - Allow reconciling pets for a profile via `reconcile_pets` action - Refine `PetsForm` component and client pet schema Rationale: - Ensure consistent `pet_type` values by converting to lowercase - Order profiles by creation date to determine the "main" profile easily - Provide a convenient method to retrieve the default/first profile - Enable synchronizing pet data between client and server efficiently - Improve form UI and validation for better user experience Benefits: - Data integrity and consistency - Intuitive profile ordering and retrieval - Streamlined pet data management - Enhanced form usability and validation
- Loading branch information
Showing
8 changed files
with
297 additions
and
177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.