Release Notes: RecAnthology v2.0.0
Release v2.0.0 - August 4, 2024
Introduction
We are excited to announce the second major release of RecAnthology. This version introduces a range of new features, improvements, and bug fixes to enhance your experience with personalized recommendations for books and TV media
New Features
- Custom User Model: Implemented a custom user model CustomUser with email as the primary identifier.
- TV Media Support: Users can now rate TV media and get personalized recommendations.
- Genre Preferences: Users can have genre preferences for both books and TV media.
- Rating System Enhancements: Introduced a detailed rating system for books and TV media with validations.
- Cache Invalidation: Added logic to invalidate cache for user genre preferences upon rating updates.
- Signal Handlers: Implemented signal handlers to update genre preferences when user ratings are saved.
Improvements
- Database Schema: Refined database schema for handling user ratings and genre preferences.
- Validation: Enhanced validation logic for user ratings to ensure ratings are within a valid range.
- Error Handling: Improved error handling in test cases to catch and manage validation errors.
Bug Fixes
- Case Sensitivity: Resolved case sensitivity issues in database table names.
- Unique Constraints: Fixed unique constraint violations for user ratings to prevent duplicate entries.
- Test Cases: Corrected and improved test cases for better coverage and reliability.
Testing
- Unit Tests: Added comprehensive unit tests for user ratings and genre preference updates.
- Simultaneous Ratings: Ensured that multiple ratings do not create duplicate genre preferences.
- Invalid Ratings: Verified that invalid ratings are properly handled and raise appropriate validation errors.
- User Deletion: Ensured related ratings are correctly deleted when a user is removed.
Database Migrations
- Migrations: Updated database migrations to reflect changes in the schema, including new models and fields.
Miscellaneous
- Code Cleanup: General code cleanup and refactoring for improved readability and maintainability.
- Documentation: Updated documentation to reflect new features and changes.
Installation & Upgrade
To upgrade to the latest version, please follow these steps
-
Backup Database: Ensure you have a current backup of your database.
-
Update Code: Pull the latest changes from the repository.
git pull origin main Apply Migrations: Run the database migrations to update your schema.
python manage.py makemigrations python manage.py migrate
-
Test Application: Run the test suite to ensure everything is working correctly.
python manage.py test
Known Issues
- Limited Genre Filtering: The genre filtering in the search functionality is basic and will be enhanced in future releases.
- Initial Data Load: Some users may experience a delay when loading initial data for the first time.
Future Plans
- Expanded Recommendations: Incorporate additional content types like movies and music.
- User Profiles: Improved user profile management and preference tracking.
- Collaborative Recommendations: Incorporate recommendations based on preferences from similar users.
Contact and Feedback
We welcome your feedback and suggestions. For any questions or to report issues, please reach out to me through LinkedIn: Karar Haider
For more information, visit our GitHub repository
We hope you enjoy using RecAnthology and look forward to your support and contributions
Full Changelog: v1.0.0...v2.0.0