From c9832dd88c4b85873f31a7ae0c4dd1bdf88369b2 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Mon, 16 Dec 2024 14:51:26 +0100 Subject: [PATCH 01/10] Add test case for optional unspecified text parameter which is accessed after scheduling. Caused the failure in https://github.com/galaxyproject/galaxy/issues/19328. --- ...nal_text_param_rescheduling.gxwf-tests.yml | 12 ++++++++ .../optional_text_param_rescheduling.gxwf.yml | 30 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf-tests.yml create mode 100644 lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf.yml diff --git a/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf-tests.yml b/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf-tests.yml new file mode 100644 index 000000000000..c531a2b803bb --- /dev/null +++ b/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf-tests.yml @@ -0,0 +1,12 @@ +- doc: | + Test that scheduling succeeds even if step needs rescheduling + job: + optional_text: + type: raw + value: null + outputs: + out: + class: File + asserts: + - that: has_text + text: "null" diff --git a/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf.yml b/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf.yml new file mode 100644 index 000000000000..dbf5a4b57b64 --- /dev/null +++ b/lib/galaxy_test/workflow/optional_text_param_rescheduling.gxwf.yml @@ -0,0 +1,30 @@ +class: GalaxyWorkflow +inputs: + optional_text: + type: text + optional: true + when: + type: boolean + default: true +outputs: + out: + outputSource: gx_text_optional/inputs_json +steps: + pick_value: + tool_id: pick_value + tool_state: + style_cond: + pick_style: first + type_cond: + param_type: boolean + pick_from: + - value: true + gx_text_optional: + tool_id: gx_text_optional + # the when expression requires pick_value to execute, which recapitulates https://github.com/galaxyproject/galaxy/issues/19328 + when: $(inputs.when) + in: + parameter: + source: optional_text + when: + source: pick_value/boolean_param From 20d904ec621746dd69d25b400b44044a2235e687 Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Wed, 18 Dec 2024 10:39:29 +0100 Subject: [PATCH 02/10] Add type annotation for workflow_step --- lib/galaxy/model/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index edb721c1d30e..e5057dd6bee4 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -9420,7 +9420,7 @@ class WorkflowInvocationStep(Base, Dictifiable, Serializable): ) action: Mapped[Optional[bytes]] = mapped_column(MutableJSONType) - workflow_step = relationship("WorkflowStep") + workflow_step: Mapped[WorkflowStep] = relationship("WorkflowStep") job: Mapped[Optional["Job"]] = relationship(back_populates="workflow_invocation_step", uselist=False) implicit_collection_jobs = relationship("ImplicitCollectionJobs", uselist=False) output_dataset_collections = relationship( From 15115ffa04b077cfde396aca67a402f9691e54d0 Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 19 Dec 2024 09:17:47 +0300 Subject: [PATCH 03/10] Remove unused styles from activity settings panel --- .../components/ActivityBar/ActivitySettings.vue | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/client/src/components/ActivityBar/ActivitySettings.vue b/client/src/components/ActivityBar/ActivitySettings.vue index 272c4304b938..c150e3ec669d 100644 --- a/client/src/components/ActivityBar/ActivitySettings.vue +++ b/client/src/components/ActivityBar/ActivitySettings.vue @@ -70,8 +70,8 @@ function executeActivity(activity: Activity) {