From 07c1bcd82d710d844ef039fa13975b16f376ae28 Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 16 Nov 2023 09:49:02 +0300 Subject: [PATCH] Fix visualization api type mismatch --- lib/galaxy/schema/visualization.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/schema/visualization.py b/lib/galaxy/schema/visualization.py index 10a0a3df1cdc..34b9ecb80b89 100644 --- a/lib/galaxy/schema/visualization.py +++ b/lib/galaxy/schema/visualization.py @@ -10,7 +10,10 @@ ) from typing_extensions import Literal -from galaxy.schema.fields import EncodedDatabaseIdField +from galaxy.schema.fields import ( + DecodedDatabaseIdField, + EncodedDatabaseIdField, +) from galaxy.schema.schema import ( CreateTimeField, Model, @@ -26,7 +29,7 @@ class VisualizationIndexQueryPayload(Model): show_own: Optional[bool] = None show_published: Optional[bool] = None show_shared: Optional[bool] = None - user_id: Optional[EncodedDatabaseIdField] = None + user_id: Optional[DecodedDatabaseIdField] = None sort_by: VisualizationSortByEnum = Field( "update_time", title="Sort By", description="Sort pages by this attribute." )