Skip to content

Commit

Permalink
Change the inherited class from BaseModel to Model in some pydantic m…
Browse files Browse the repository at this point in the history
…odels
  • Loading branch information
heisner-tillman committed Dec 15, 2023
1 parent f0f91f6 commit 6aa1dfc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/galaxy/schema/invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ class InvocationOutputCollection(InvocationIOBase):
)


class WorkflowInvocationResponse(BaseModel):
class WorkflowInvocationResponse(Model):
id: EncodedDatabaseIdField = InvocationIdField
create_time: datetime = CreateTimeField
update_time: datetime = UpdateTimeField
Expand All @@ -478,8 +478,8 @@ class WorkflowInvocationResponse(BaseModel):
title="History ID",
description="The encoded ID of the history associated with the invocation.",
)
# TODO The uuid version is 1. Is this desired?
uuid: Optional[UUID1] = Field(
# The uuid version here is 1, which deviates from the other UUIDs used as they are version 4.
uuid: Optional[Union[UUID4, UUID1]] = Field(
..., title="UUID", description="Universal unique identifier of the workflow invocation."
)
state: InvocationState = Field(
Expand Down Expand Up @@ -510,7 +510,7 @@ class WorkflowInvocationResponse(BaseModel):
messages: Optional[Any] = Field(default=None, title="Message", description="Message of the workflow invocation.")


class InvocationJobsSummaryBaseModel(BaseModel):
class InvocationJobsSummaryBaseModel(Model):
id: EncodedDatabaseIdField = InvocationIdField
states: Dict[str, int] # TODO add field description
populated_state: JobState # TODO add field description
Expand Down

0 comments on commit 6aa1dfc

Please sign in to comment.