From 0caf1395dad1421f3dbab931539f0702e8fe4595 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 31 Mar 2021 20:46:34 +0200 Subject: [PATCH] Fix default query parameters value for RemoteFilesFormat to `uri`. The default value was set to `flat` and causing different behavior between the legacy and FastAPI endpoints for remote_files. --- lib/galaxy/webapps/galaxy/api/remote_files.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/galaxy/webapps/galaxy/api/remote_files.py b/lib/galaxy/webapps/galaxy/api/remote_files.py index 86550c380d7..927a9d5f61b 100644 --- a/lib/galaxy/webapps/galaxy/api/remote_files.py +++ b/lib/galaxy/webapps/galaxy/api/remote_files.py @@ -36,11 +36,12 @@ TargetQueryParam: str = Query( ) FormatQueryParam: Optional[RemoteFilesFormat] = Query( - default=RemoteFilesFormat.flat, + default=RemoteFilesFormat.uri, title="Response format", description=( "The requested format of returned data. Either `flat` to simply list all the files" - " or `jstree` to get a tree representation of the files." + ", `jstree` to get a tree representation of the files, or the default `uri` to list " + "files and directories by their URI." ), )