From d9b5e945ef23b8ab06d2afe67b5c114b3aa50e6f Mon Sep 17 00:00:00 2001 From: Dirk Van Bruggen Date: Tue, 7 Jun 2022 16:02:53 -0400 Subject: [PATCH] Change online UI schema field to be optional Change the `online` field in feastFeatureViews schema to be optional. This addresses a problem with the UI erroring out when trying to present offline FeatureViews since protobuf would not pass along the `online` tag (#2719). Signed-off-by: Dirk Van Bruggen --- ui/src/parsers/feastFeatureViews.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/parsers/feastFeatureViews.ts b/ui/src/parsers/feastFeatureViews.ts index 3e63b5afd0..cbf15d280e 100644 --- a/ui/src/parsers/feastFeatureViews.ts +++ b/ui/src/parsers/feastFeatureViews.ts @@ -39,7 +39,7 @@ const FeastFeatureViewSchema = z.object({ features: z.array(FeastFeatureColumnSchema), ttl: z.string().transform((val) => parseInt(val)), batchSource: FeastBatchSourceSchema, - online: z.boolean(), + online: z.boolean().optional(), owner: z.string().optional(), tags: z.record(z.string()).optional(), }),