From c6793dcdde8009ebe665629f4abde2eb5d79d7c2 Mon Sep 17 00:00:00 2001 From: guerler Date: Thu, 2 Sep 2021 00:37:49 -0400 Subject: [PATCH 1/5] Hide details header in dataset error page if details are unavailable --- client/src/components/DatasetInformation/DatasetError.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/components/DatasetInformation/DatasetError.vue b/client/src/components/DatasetInformation/DatasetError.vue index 5618117ab4d..43b2b846ea5 100644 --- a/client/src/components/DatasetInformation/DatasetError.vue +++ b/client/src/components/DatasetInformation/DatasetError.vue @@ -21,10 +21,10 @@ {{ jobDetails.tool_id }}.

-
+

Details

-
+

Execution resulted in the following messages:

{{ job_message["desc"] }}
@@ -130,6 +130,9 @@ export default { }; }, methods: { + hasMessages(jobDetails) { + return jobDetails.job_messages && jobDetails.job_messages.length > 0; + }, onError(err) { this.errorMessage = err; }, From 3065ddf3d5ef6e9002844bd35e49878b6a706ae7 Mon Sep 17 00:00:00 2001 From: guerler Date: Fri, 3 Sep 2021 12:47:00 -0400 Subject: [PATCH 2/5] Add sub-component to dataset error view --- .../DatasetInformation/DatasetError.vue | 24 +++---- .../DatasetErrorDetails.vue | 62 +++++++++++++++++++ 2 files changed, 69 insertions(+), 17 deletions(-) create mode 100644 client/src/components/DatasetInformation/DatasetErrorDetails.vue diff --git a/client/src/components/DatasetInformation/DatasetError.vue b/client/src/components/DatasetInformation/DatasetError.vue index 43b2b846ea5..11e69e96d68 100644 --- a/client/src/components/DatasetInformation/DatasetError.vue +++ b/client/src/components/DatasetInformation/DatasetError.vue @@ -21,23 +21,11 @@ {{ jobDetails.tool_id }}.

-
-

Details

-
-
-

Execution resulted in the following messages:

-
-
{{ job_message["desc"] }}
-
-
-
-

Tool generated the following standard error:

-
{{ jobDetails.tool_stderr }}
-
-
-

Galaxy job runner generated the following standard error:

-
{{ jobDetails.job_stderr }}
-
+

Detected Common Potential Problems

@@ -97,6 +85,7 @@ From cad420112f46835b150e7bd48dda72dc12c79698 Mon Sep 17 00:00:00 2001 From: guerler Date: Fri, 3 Sep 2021 13:03:07 -0400 Subject: [PATCH 3/5] Remove unused imports from details sub component --- .../DatasetInformation/DatasetErrorDetails.vue | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/client/src/components/DatasetInformation/DatasetErrorDetails.vue b/client/src/components/DatasetInformation/DatasetErrorDetails.vue index 63afb97ec7b..5b0d857bb44 100644 --- a/client/src/components/DatasetInformation/DatasetErrorDetails.vue +++ b/client/src/components/DatasetInformation/DatasetErrorDetails.vue @@ -21,24 +21,7 @@