Description
The IndexedRepository model in backend/app/models/database/supabase.py currently uses Pydantic v1-style configuration (Config.orm_mode = True), which will be ignored under Pydantic v2.
Required Changes
Replace the v1-style config with v2-style configuration:
# Add import at top of file
from pydantic import ConfigDict
# In IndexedRepository class, replace:
class Config:
orm_mode = True
# With:
model_config = ConfigDict(from_attributes=True)
Additional Scope
Review all other models in the same file and across the codebase for similar v1-style configurations that need migration.
Context
This issue was identified during the review of PR #138.
Related PR: #138
Review Comment: #138 (comment)
Requested by: @smokeyScraper
Description
The
IndexedRepositorymodel inbackend/app/models/database/supabase.pycurrently uses Pydantic v1-style configuration (Config.orm_mode = True), which will be ignored under Pydantic v2.Required Changes
Replace the v1-style config with v2-style configuration:
Additional Scope
Review all other models in the same file and across the codebase for similar v1-style configurations that need migration.
Context
This issue was identified during the review of PR #138.
Related PR: #138
Review Comment: #138 (comment)
Requested by: @smokeyScraper