From dcf00430541ab62e247bc128bedd04f407503ae6 Mon Sep 17 00:00:00 2001 From: Alexander Song Date: Thu, 7 Mar 2024 12:48:36 -0800 Subject: [PATCH] add streamingLastUpdatedAt as project field --- app/schema.graphql | 1 + src/phoenix/server/api/types/Project.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/app/schema.graphql b/app/schema.graphql index 7af3536618..aa78ea6259 100644 --- a/app/schema.graphql +++ b/app/schema.graphql @@ -555,6 +555,7 @@ type Project implements Node { documentEvaluationNames(spanId: ID): [String!]! spanEvaluationSummary(evaluationName: String!, timeRange: TimeRange, filterCondition: String): EvaluationSummary documentEvaluationSummary(evaluationName: String!, timeRange: TimeRange, filterCondition: String): DocumentEvaluationSummary + streamingLastUpdatedAt: DateTime } type ProjectConnection { diff --git a/src/phoenix/server/api/types/Project.py b/src/phoenix/server/api/types/Project.py index 9be7fe75c6..450c2dfc6e 100644 --- a/src/phoenix/server/api/types/Project.py +++ b/src/phoenix/server/api/types/Project.py @@ -213,3 +213,9 @@ def document_evaluation_summary( evaluation_name=evaluation_name, metrics_collection=metrics_collection, ) + + @strawberry.field + def streaming_last_updated_at( + self, + ) -> Optional[datetime]: + return self.project.last_updated_at