From 2d1680b0421a2777234cc2a04a5c34c9b7c3197d Mon Sep 17 00:00:00 2001 From: mvdbeek Date: Tue, 13 Aug 2024 13:10:31 +0200 Subject: [PATCH 01/11] Really do change PJA in test case --- lib/galaxy_test/api/test_workflows.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/lib/galaxy_test/api/test_workflows.py b/lib/galaxy_test/api/test_workflows.py index c42da227984e..cfb723048934 100644 --- a/lib/galaxy_test/api/test_workflows.py +++ b/lib/galaxy_test/api/test_workflows.py @@ -2086,14 +2086,25 @@ def test_run_workflow_pick_value_bam_pja(self): pick_from: - value: __class__: RuntimeValue + consume_index: + tool_id: metadata_bam + in: + input_bam: pick_value/data_param + tool_state: + ref_names: + - chr10_random + - chr11 + - chrM + - chrX + - chr16 outputs: pick_out: outputSource: pick_value/data_param """, test_data=""" some_file: - value: 1.bam - file_type: bam + value: 3.bam + file_type: unsorted.bam type: File """, history_id=history_id, @@ -2106,6 +2117,7 @@ def test_run_workflow_pick_value_bam_pja(self): ) assert dataset_details["metadata_reference_names"] assert dataset_details["metadata_bam_index"] + assert dataset_details["file_ext"] == "bam" def test_run_workflow_simple_conditional_step(self): with self.dataset_populator.test_history() as history_id: From 886cd1b36e191c04c1a55ff36d3cee4223ba77b7 Mon Sep 17 00:00:00 2001 From: John Davis Date: Tue, 13 Aug 2024 10:51:24 -0400 Subject: [PATCH 02/11] Fix bug: remove parens --- lib/galaxy/webapps/galaxy/controllers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/webapps/galaxy/controllers/admin.py b/lib/galaxy/webapps/galaxy/controllers/admin.py index 7e788bb1cc0f..bd0ea3a06158 100644 --- a/lib/galaxy/webapps/galaxy/controllers/admin.py +++ b/lib/galaxy/webapps/galaxy/controllers/admin.py @@ -73,7 +73,7 @@ def sort(self, trans, query, ascending, column_name=None): .group_by(model.GalaxySession.table.c.user_id) .subquery() ) - query = query.outerjoin((last_login_subquery, model.User.table.c.id == last_login_subquery.c.user_id)) + query = query.outerjoin(last_login_subquery, model.User.table.c.id == last_login_subquery.c.user_id) if not ascending: query = query.order_by((last_login_subquery.c.last_login).desc().nullslast()) From ad659adbc42f01c1aef3d24cb94b4e0e32e1acd5 Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:57:48 +0200 Subject: [PATCH 03/11] Expose currentHistory in useUserHistories composable --- client/src/composables/userHistories.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/client/src/composables/userHistories.js b/client/src/composables/userHistories.js index ae8376527e83..823e66c45bef 100644 --- a/client/src/composables/userHistories.js +++ b/client/src/composables/userHistories.js @@ -15,6 +15,10 @@ export function useUserHistories(user) { ); const currentHistoryId = computed(() => historyStore.currentHistoryId); + const currentHistory = computed(() => historyStore.currentHistory); - return { currentHistoryId }; + return { + currentHistoryId, + currentHistory, + }; } From 1fc96de5854286118258f7a3065c92b13837819b Mon Sep 17 00:00:00 2001 From: davelopez <46503462+davelopez@users.noreply.github.com> Date: Wed, 14 Aug 2024 11:01:18 +0200 Subject: [PATCH 04/11] Display target history name in upload modal --- client/src/components/Upload/UploadModal.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/client/src/components/Upload/UploadModal.vue b/client/src/components/Upload/UploadModal.vue index 762abcc9afc0..a78b0ce0adea 100644 --- a/client/src/components/Upload/UploadModal.vue +++ b/client/src/components/Upload/UploadModal.vue @@ -1,17 +1,17 @@