-
-
Notifications
You must be signed in to change notification settings - Fork 141
Migrate IndexedRepository model to Pydantic v2 configuration #139
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels