From d6b5d5c78c4ef24a0290853306f03680d3bc7174 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Fri, 6 Dec 2024 11:58:46 -0500 Subject: [PATCH] Fix multiple layers with different axis labels in workflow metrics. --- client/src/components/Help/HelpText.vue | 10 +- client/src/components/Help/terms.yml | 17 +- .../WorkflowInvocationState/VegaWrapper.vue | 19 +- .../WorkflowInvocationMetrics.vue | 341 +++++++++++++++--- 4 files changed, 333 insertions(+), 54 deletions(-) diff --git a/client/src/components/Help/HelpText.vue b/client/src/components/Help/HelpText.vue index f5f6a7006295..bfd54ed79b61 100644 --- a/client/src/components/Help/HelpText.vue +++ b/client/src/components/Help/HelpText.vue @@ -4,9 +4,12 @@ import HelpPopover from "./HelpPopover.vue"; interface Props { uri: string; text: string; + forTitle?: boolean; } -defineProps(); +withDefaults(defineProps(), { + forTitle: false, +}); @@ -28,4 +31,7 @@ defineProps(); text-decoration-line: underline; text-decoration-style: dashed; } +.title-help-text { + text-decoration-thickness: 1px; +} diff --git a/client/src/components/Help/terms.yml b/client/src/components/Help/terms.yml index fce6204d6198..c361ddf91e60 100644 --- a/client/src/components/Help/terms.yml +++ b/client/src/components/Help/terms.yml @@ -72,8 +72,23 @@ galaxy: each individual file above. If there is only one extension, Galaxy will attempt to set that as the extension for each file. - jobs: + metrics: + cores: | + This is how many [cores](https://en.wikipedia.org/wiki/Central_processing_unit) (or distinct central processing units (CPUs)) are + allocated to run the job for the tool. This value is generally configured for the tool by the Galaxy administrator. This value + does not guarantee how many cores the job actually used - the job may have used more and less based on how Galaxy is configured + and how the tool is programmed. + + walltime: | + This is estimate of the length of time the job ran created by recording the start and stop of the job in the job script + created for the tool execution and subtracting these values. + + allocated_core_time: | + This is the number of cores Galaxy believes is allocated for the job times the estimated walltime for the job. This can be thought + of as scaling the runtime/walltime metric by the number of cores allocated - when purchasing compute time per core hour or consuming + compute time from a compute center's allocation - this is likely to be a more interesting and useful number than the walltime. + states: # upload, waiting, failed, paused, deleting, deleted, stop, stopped, skipped. ok: | diff --git a/client/src/components/WorkflowInvocationState/VegaWrapper.vue b/client/src/components/WorkflowInvocationState/VegaWrapper.vue index e5f4a8f49ba8..ec4ce67b8586 100644 --- a/client/src/components/WorkflowInvocationState/VegaWrapper.vue +++ b/client/src/components/WorkflowInvocationState/VegaWrapper.vue @@ -1,17 +1,24 @@