From bd847412a0207833060909e237a6789137de03bc Mon Sep 17 00:00:00 2001 From: Enis Afgan Date: Thu, 6 Feb 2025 15:32:52 -0500 Subject: [PATCH 1/5] Add config options for tool dependency installs --- .../InstallationSettings.test.js | 15 +++++++++ .../InstallationSettings.vue | 12 +++++-- doc/source/admin/galaxy_options.rst | 33 +++++++++++++++++++ doc/source/dev/faq.rst | 13 +++++++- lib/galaxy/config/sample/galaxy.yml.sample | 17 ++++++++-- lib/galaxy/config/schemas/config_schema.yml | 21 ++++++++++++ lib/galaxy/managers/configuration.py | 5 ++- 7 files changed, 108 insertions(+), 8 deletions(-) diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js index 29094f7574f0..c17b1fc0910a 100644 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js +++ b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.test.js @@ -4,6 +4,17 @@ import { getLocalVue } from "tests/jest/helpers"; import InstallationSettings from "./InstallationSettings"; jest.mock("app"); +// Mock the useConfig composable +jest.mock("@/composables/config", () => ({ + useConfig: () => ({ + config: { + install_tool_dependencies: true, + install_repository_dependencies: true, + install_resolver_dependencies: true + }, + isConfigLoaded: true + }) +})); const localVue = getLocalVue(); @@ -28,5 +39,9 @@ describe("InstallationSettings", () => { expect(wrapper.find(".title").text()).toBe("Installing 'name'"); expect(wrapper.find(".description").text()).toBe("long_description"); expect(wrapper.find(".revision").text()).toBe("owner rev. changesetRevision"); + + expect(wrapper.vm.installToolDependencies).toBe(true); + expect(wrapper.vm.installRepositoryDependencies).toBe(true); + expect(wrapper.vm.installResolverDependencies).toBe(true); }); }); diff --git a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.vue b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.vue index b726ffa8cf5a..ef86345d7531 100644 --- a/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.vue +++ b/client/src/components/Toolshed/RepositoryDetails/InstallationSettings.vue @@ -46,6 +46,8 @@