Skip to content

fix: use correct workflow name/version in execution breadcrumbs#897

Open
blaketastic2 wants to merge 1 commit intoflyteorg:masterfrom
blaketastic2:fix/breadcrumb-workflow-name
Open

fix: use correct workflow name/version in execution breadcrumbs#897
blaketastic2 wants to merge 1 commit intoflyteorg:masterfrom
blaketastic2:fix/breadcrumb-workflow-name

Conversation

@blaketastic2
Copy link
Contributor

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

Previously, getTaskOrWorkflowName and getTaskOrWorkflowVersion always
returned the launch plan name/version, even for workflow executions.
Now they check the resource type and return workflowId fields for
workflows, matching the existing isExecutionTaskOrWorkflow logic.

Signed-off-by: Blake <blaketastic2@gmail.com>
@blaketastic2 blaketastic2 force-pushed the fix/breadcrumb-workflow-name branch from cc5676f to b8afffc Compare February 18, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant