<#897 fix: use correct workflow name/version in ex...
# flyte-github
a
#897 fix: use correct workflow name/version in execution breadcrumbs Pull request opened by blaketastic2 # TL;DR Fixes breadcrumbs showing launch plan name instead of workflow name for workflow executions. ## Type • Bug Fix • Feature • Plugin ## Are all requirements met? • Code completed • Smoke tested • Unit tests added • Code documentation added • Any pending items have an associated Issue ## Complete description
getTaskOrWorkflowName
and
getTaskOrWorkflowVersion
in the breadcrumb execution context always returned the launch plan name/version, regardless of whether the execution was for a task or workflow. For workflow executions this is incorrect — the breadcrumb should display the workflow name from
closure.workflowId
. Now both functions check the resource type via
isExecutionTaskOrWorkflow
and return `workflowId.name`/`workflowId.version` for workflows, falling back to
spec.launchPlan
for tasks. Also exported the three helper functions and added unit tests covering both task and workflow execution paths. ## Tracking Issue ## Follow-up issue flyteorg/flyteconsole