Add toolbox_auto_sort config option, expose in config manager.

This commit is contained in:
Dannon Baker
2022-10-06 22:20:06 -04:00
parent 102fb207a2
commit c8659d1d4a
4 changed files with 33 additions and 16 deletions
+14 -16
View File
@@ -592,22 +592,6 @@
:Type: str
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``load_tool_shed_datatypes``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Description:
This option controls whether legacy datatypes are loaded from
installed tool shed repositories. We're are in the process of
disabling Tool Shed datatypes. This option with a default of true
will be added in 22.01, we will disable the datatypes on the big
public servers during that release. This option will be switched
to False by default in 22.05 and this broken functionality will be
removed all together during some future release.
:Default: ``true``
:Type: bool
~~~~~~~~~~~~~~~
``watch_tools``
~~~~~~~~~~~~~~~
@@ -4672,6 +4656,20 @@
:Type: bool
~~~~~~~~~~~~~~~~~~~~~
``toolbox_auto_sort``
~~~~~~~~~~~~~~~~~~~~~
:Description:
If true, the toolbox will be sorted by tool id when the toolbox is
loaded. This is useful for ensuring that tools are always
displayed in the same order in the UI. If false, the order of
tools in the toolbox will be preserved as they are loaded from the
tool config files.
:Default: ``true``
:Type: bool
~~~~~~~~~~~~~~~~
``tool_filters``
~~~~~~~~~~~~~~~~
@@ -2345,6 +2345,13 @@ galaxy:
# if running many handlers.
#cache_user_job_count: false
# If true, the toolbox will be sorted by tool id when the toolbox is
# loaded. This is useful for ensuring that tools are always displayed
# in the same order in the UI. If false, the order of tools in the
# toolbox will be preserved as they are loaded from the tool config
# files.
#toolbox_auto_sort: true
# Define toolbox filters
# (https://galaxyproject.org/user-defined-toolbox-filters/) that
# admins may use to restrict the tools to display.
@@ -3397,6 +3397,17 @@ mapping:
greater possibility that jobs will be dispatched past the configured limits
if running many handlers.
toolbox_auto_sort:
type: bool
default: true
required: false
reloadable: true
desc: |
If true, the toolbox will be sorted by tool id when the toolbox is loaded.
This is useful for ensuring that tools are always displayed in the same
order in the UI. If false, the order of tools in the toolbox will be
preserved as they are loaded from the tool config files.
tool_filters:
type: str
required: false
+1
View File
@@ -189,6 +189,7 @@ class ConfigSerializer(base.ModelSerializer):
"python": _defaults_to((sys.version_info.major, sys.version_info.minor)),
"select_type_workflow_threshold": _use_config,
"file_sources_configured": lambda item, key, **context: self.app.file_sources.custom_sources_configured,
"toolbox_auto_sort": _use_config,
"panel_views": lambda item, key, **context: self.app.toolbox.panel_view_dicts(),
"default_panel_view": _use_config,
"upload_from_form_button": _use_config,