mitlist/be
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
..
alembic feat: Add Recurrence Pattern and Update Expense Schema 2025-05-23 21:01:49 +02:00
app Refactor: Polish backend based on review 2025-06-01 14:26:36 +02:00
tests feat: Add comprehensive notes and tasks for project stabilization and enhancements 2025-05-24 21:36:57 +02:00
.dockerignore weeee💃 2025-03-30 16:02:49 +02:00
.gitignore weeee💃 2025-03-30 16:02:49 +02:00
alembic.ini weeee💃 2025-03-30 16:02:49 +02:00
Dockerfile add_version_to_lists_and_items 2025-05-07 23:30:23 +02:00
Dockerfile.prod feat: Add production deployment configuration and environment setup 2025-05-28 08:23:22 +02:00
pytest.ini Implement test fixtures for async database sessions and enhance test coverage for CRUD operations. Introduce mock settings for financial endpoints and improve error handling in user and settlement tests. Refactor existing tests to utilize async mocks for better reliability and clarity. 2025-05-20 01:18:31 +02:00
requirements.txt feat: Implement recurring expenses feature with scheduling and management 2025-05-22 16:37:14 +02:00