Skip to content

Commit

Permalink
Add tool_shed_urls to admin computed configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Aug 23, 2023
1 parent 17a2a88 commit 2a61dcc
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion lib/galaxy/schema/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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."""
Expand Down

0 comments on commit 2a61dcc

Please sign in to comment.