mitlist/be/app
google-labs-jules[bot] 3811dc7ee5 Refactor: Polish backend based on review
I reviewed the backend codebase covering schema, API endpoints, error handling, and tests.

Key changes I implemented:
- Updated `app/models.py`:
    - Added `parent_expense_id` and `last_occurrence` fields to the `Expense` model to align with the `add_recurring_expenses.py` migration.
    - Added `parent_expense` and `child_expenses` self-referential relationships to the `Expense` model.
- Updated `app/core/exceptions.py`:
    - Removed the unused and improperly defined `BalanceCalculationError` class.

I identified areas for future work:
- Create a new Alembic migration if necessary to ensure `parent_expense_id` and `last_occurrence` columns are correctly reflected in the database, or verify the existing `add_recurring_expenses.py` migration's status.
- Significantly improve API test coverage, particularly for:
    - Chores module (personal and group)
    - Groups, Invites, Lists, Items, OCR endpoints
    - Full CRUD operations for Expenses and Settlements
    - Recurring expense functionalities.
2025-06-01 14:26:36 +02:00
..
api feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
core Refactor: Polish backend based on review 2025-06-01 14:26:36 +02:00
crud feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
db feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
jobs feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
models feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00
schemas feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
__init__.py weeee💃 2025-03-30 16:02:49 +02:00
auth.py feat: Implement refresh token functionality in authentication flow 2025-05-25 12:51:02 +02:00
config.py feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
database.py feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
main.py feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
models.py Refactor: Polish backend based on review 2025-06-01 14:26:36 +02:00