Skip to content

fix(breadcrumbs): keep the execution domain in links - #939

Merged
Sovietaced merged 1 commit into
flyteorg:masterfrom
1fanwang:1fannnw/breadcrumb-execution-domain
Aug 24, 2026
Merged

fix(breadcrumbs): keep the execution domain in links#939
Sovietaced merged 1 commit into
flyteorg:masterfrom
1fanwang:1fannnw/breadcrumb-execution-domain

Conversation

@1fanwang

@1fanwang 1fanwang commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

TL;DR

A breadcrumb can link to the domain currently being browsed instead of the execution's
own domain.

Before this change, browsing project production in domain staging can send an
execution from domain production back to staging. After this change, the link
always keeps the execution's domain.

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added. Not applicable: no public API changed.
  • Any pending items have an associated Issue. No pending items.

Complete description

Compare the selected domain, rather than the selected project, with the execution
domain.

Manual check:

  1. Browse project production in domain staging.
  2. Open an execution whose domain is production.
  3. Click its breadcrumb.

Before this change, the link returns to domain staging. With this change, it stays in
domain production.

The focused breadcrumb test receives staging instead of production on master and
passes on this branch.

The same one-line correction is present in the broader breadcrumb PR:
#921.

Tracking Issue

N/A

Follow-up issue

N/A

…cution's domain

getExecutionSpecProjectDomain tests breadcrumb.projectId against the execution's
domain when deciding which domain to use. The project branch above it compares
projectId to project, so the domain branch is comparing the wrong field.

When a project happens to be named after a domain, the comparison succeeds and
the breadcrumb resolves to whatever domain the user is currently browsing rather
than the execution's own.

Signed-off-by: 1fanwang <1fannnw@gmail.com>
@1fanwang 1fanwang changed the title Fix breadcrumb resolving the wrong domain for an execution fix(breadcrumbs): keep the execution domain in links Aug 20, 2026
@Sovietaced
Sovietaced merged commit 04d6a33 into flyteorg:master Aug 24, 2026
10 checks passed
@welcome

welcome Bot commented Aug 24, 2026

Copy link
Copy Markdown

Congrats on merging your first pull request! 🎉

@flyte-bot

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.21.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants