Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: message sorting in playground #3293

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import TYPE_CHECKING, Optional
from uuid import UUID, uuid4

from pydantic import field_validator, BaseModel
from pydantic import field_serializer, field_validator, BaseModel
from sqlmodel import JSON, Column, Field, Relationship, SQLModel


Expand Down Expand Up @@ -32,6 +32,13 @@ def validate_flow_id(cls, value):
value = UUID(value)
return value

@field_serializer("timestamp")
@classmethod
def serialize_timestamp(cls, value):
if value.tzinfo is None:
value = value.replace(tzinfo=timezone.utc)
return value


class VertexBuildTable(VertexBuildBase, table=True): # type: ignore
__tablename__ = "vertex_build"
Expand Down
Loading