Skip to content

Migrate IndexedRepository model to Pydantic v2 configuration #139

@coderabbitai

Description

@coderabbitai

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions