Skip to content

New graph view renders incorrectly when prefix_group_id=false #31025

Description

@bbovenzi

Apache Airflow version

2.6.0

What happened

If a task_group in a dag has prefix_group_id=false in its config, the new graph won't render correctly. When the group is collapsed nothing is shown and there is an error in the console. When the group is expanded, the nodes will render but its edges become disconnected. As reported in #29852 (comment)

This is because we use the prefix to determine where an edge is supposed to be rendered. We shouldn't make that assumption and actually iterate through the nodes to find where an edge belongs.

What you think should happen instead

It renders like any other task group

How to reproduce

Add prefix_group_id=false to a task group

Operating System

any

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

_eol_affected_version:2.6Issues Reported for 2.6area:UIRelated to UI/UX. For Frontend Developers.kind:bugThis is a clearly a bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions