Skip to content

Commit

Permalink
Merge pull request #1191 from Agenta-AI/reference-fields-migration
Browse files Browse the repository at this point in the history
Migration - Update odmantic reference to beanie link & migrate old evaluation scenarios to new evaluation scenarios
  • Loading branch information
aakrem authored Jan 14, 2024
2 parents 109fbc8 + f057095 commit 5071ff2
Show file tree
Hide file tree
Showing 9 changed files with 1,231 additions and 225 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ class OldEvaluationDB(Document):
organization: Link[OrganizationDB]
user: Link[UserDB]
status: str
evaluation_type: str
evaluation_type_settings: OldEvaluationTypeSettings
variants: List[PydanticObjectId]
evaluation_type: Optional[str]
evaluation_type_settings: Optional[OldEvaluationTypeSettings]
variants: Optional[List[PydanticObjectId]]
testsets: Link[TestSetDB]
created_at: Optional[datetime] = Field(default=datetime.utcnow())
updated_at: Optional[datetime] = Field(default=datetime.utcnow())
Expand All @@ -183,9 +183,9 @@ class EvaluationDB(Document):
organization: Link[OrganizationDB]
user: Link[UserDB]
status: str
evaluation_type: str
evaluation_type_settings: OldEvaluationTypeSettings
variants: List[PydanticObjectId]
evaluation_type: Optional[str]
evaluation_type_settings: Optional[OldEvaluationTypeSettings]
variants: Optional[List[PydanticObjectId]]
testset: Link[TestSetDB]
created_at: Optional[datetime] = Field(default=datetime.utcnow())
updated_at: Optional[datetime] = Field(default=datetime.utcnow())
Expand Down
Loading

0 comments on commit 5071ff2

Please sign in to comment.