From 2a61dcc204dafb054ed8d5aaeb759e62e9eb9df8 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Tue, 22 Aug 2023 09:11:32 +0200 Subject: [PATCH] Add tool_shed_urls to admin computed configuration --- lib/galaxy/schema/configuration.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/schema/configuration.py b/lib/galaxy/schema/configuration.py index 0439f0ab9294..414a6e834497 100644 --- a/lib/galaxy/schema/configuration.py +++ b/lib/galaxy/schema/configuration.py @@ -23,7 +23,11 @@ class ComputedGalaxyConfig(Model): - """Contains Galaxy configuration options computed at runtime.""" + """Contains Galaxy configuration options computed at runtime. + + These values are used to generate the OpenAPI schema and are excluded from the YAML schema + of the configuration file. + """ lims_doc_url: Annotated[ Optional[str], @@ -180,6 +184,15 @@ class AdminOnlyComputedGalaxyConfig(ComputedGalaxyConfig): is_admin_user: Annotated[Literal[True], IsAdminUserField] = True + tool_shed_urls: Annotated[ + List[str], + Field( + title="Tool Shed Urls", + description="""List of Tool Shed URLs to search for tools. This is a list of +fully qualified URLs (e.g., https://toolshed.g2.bx.psu.edu/).""", + ), + ] = [] + class UserOnlyComputedGalaxyConfig(ComputedGalaxyConfig): """Contains Galaxy configuration options computed at runtime that can be exposed to users."""