Skip to content

UI: Show owning team in asset dependency popovers - #71446

Merged
vincbeck merged 2 commits into
apache:mainfrom
aws-mwaa:vincbeck/mt_ui_asset
Aug 19, 2026
Merged

vincbeck merged 2 commits into
apache:mainfrom
aws-mwaa:vincbeck/mt_ui_asset

Conversation

@vincbeck

Copy link
Copy Markdown
Contributor

Tracing data lineage across a multi-team deployment means jumping between assets and the Dags and tasks that produce or schedule them, without any signal of who owns each one. Surfacing the owning team directly in the "Scheduled Dags" and "Producing Tasks" popovers on the assets list makes ownership obvious while following those links, so operators know who to reach without opening each Dag.

The team is resolved in a single batched lookup and only when multi-team support is enabled, so single-team deployments issue no extra query and see no change.

Screenshots

Dags

Screenshot 2026-08-11 at 12 23 05 PM

Tasks

Screenshot 2026-08-11 at 12 23 13 PM
Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@seanghaeli

Copy link
Copy Markdown
Contributor

In the same way there's a test_query_count_with_multi_team test for the routes/ui/test_assets.py path, add an analogous test for the routes/public/test_assets.py path.

On the public path, test_assets_references_include_team_name checks that the team_name resolves correct but it seems that there isn't anything that tests that the query count is pinned. So there could still be an N+1 hiding in here that no test would surface.

@vincbeck
vincbeck force-pushed the vincbeck/mt_ui_asset branch from c7ae0da to d7b6b3e Compare August 12, 2026 15:34
@vincbeck

Copy link
Copy Markdown
Contributor Author

In the same way there's a test_query_count_with_multi_team test for the routes/ui/test_assets.py path, add an analogous test for the routes/public/test_assets.py path.

On the public path, test_assets_references_include_team_name checks that the team_name resolves correct but it seems that there isn't anything that tests that the query count is pinned. So there could still be an N+1 hiding in here that no test would surface.

Good call, fixed

@bbovenzi

Copy link
Copy Markdown
Contributor

I guess we should make all of these popovers more detailed. I'm sure users will want much more than just the dag name and team name

@vincbeck

vincbeck commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor Author

I guess we should make all of these popovers more detailed. I'm sure users will want much more than just the dag name and team name

What are you thinking in terms of information you want to display?

@vincbeck

Copy link
Copy Markdown
Contributor Author

I guess we should make all of these popovers more detailed. I'm sure users will want much more than just the dag name and team name

What are you thinking in terms of information you want to display?

@bbovenzi How to you want to tackle it?

  • Close this PR and you/someone will include this change as part of another bigger change to surface more information in the popover. I am just afraid of losing this change if it never happens (or in a very long time)
  • Get this PR merge and we can iterate on it later to surface more information

@seanghaeli

Copy link
Copy Markdown
Contributor

My vote is to merge this one and iterate on it in the future if more information is desired

@vincbeck
vincbeck force-pushed the vincbeck/mt_ui_asset branch from d7b6b3e to c98824e Compare August 17, 2026 18:36
Tracing data lineage across a multi-team deployment means jumping between
assets and the Dags and tasks that produce or schedule them, without any
signal of who owns each one. Surfacing the owning team directly in the
"Scheduled Dags" and "Producing Tasks" popovers on the assets list makes
ownership obvious while following those links, so operators know who to
reach without opening each Dag.

The team is resolved in a single batched lookup and only when multi-team
support is enabled, so single-team deployments issue no extra query and
see no change.
@vincbeck
vincbeck force-pushed the vincbeck/mt_ui_asset branch from a287aab to c0a986a Compare August 19, 2026 14:10
@vincbeck
vincbeck merged commit 513e46e into apache:main Aug 19, 2026
156 checks passed
@vincbeck
vincbeck deleted the vincbeck/mt_ui_asset branch August 19, 2026 15:43
@github-actions

Copy link
Copy Markdown
Contributor

Backport failed to create: airflow-ctl/v0-1-test. View the failure log Run details

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
❌ airflow-ctl/v0-1-test Commit Link

You can attempt to backport this manually by running:

cherry_picker 513e46e airflow-ctl/v0-1-test

This should apply the commit to the airflow-ctl/v0-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

potiuk pushed a commit that referenced this pull request Oct 25, 2026
…5610)

Seven core API models that only appear in responses, the config models
and the asset reference models, extend StrictBaseModel. So the OpenAPI
spec marks them "additionalProperties: false", and the airflowctl
models generated from it get extra="forbid". When a newer server adds
a field to one of them, an older airflowctl fails to parse the
response. #71446 added the optional team_name field to two asset
reference models for 3.4, and airflowctl from airflow-ctl/v0-1-test
now fails on "assets list" and "assets get" against 3.4.0b2.

StrictBaseModel is meant for request bodies, so that unknown fields
sent by a client are rejected (#44306). Response models are built by
the server, and new fields in them should not break existing clients.
shahar1 pushed a commit that referenced this pull request Oct 27, 2026
…by newer API servers (#75610) (#75754)

Seven core API models that only appear in responses, the config models
and the asset reference models, extend StrictBaseModel. So the OpenAPI
spec marks them "additionalProperties: false", and the airflowctl
models generated from it get extra="forbid". When a newer server adds
a field to one of them, an older airflowctl fails to parse the
response. #71446 added the optional team_name field to two asset
reference models for 3.4, and airflowctl from airflow-ctl/v0-1-test
now fails on "assets list" and "assets get" against 3.4.0b2.

StrictBaseModel is meant for request bodies, so that unknown fields
sent by a client are rejected (#44306). Response models are built by
the server, and new fields in them should not break existing clients.

(cherry picked from commit e990430)
shahar1 pushed a commit that referenced this pull request Nov 19, 2026
…by newer API servers (#75610) (#75754)

Seven core API models that only appear in responses, the config models
and the asset reference models, extend StrictBaseModel. So the OpenAPI
spec marks them "additionalProperties: false", and the airflowctl
models generated from it get extra="forbid". When a newer server adds
a field to one of them, an older airflowctl fails to parse the
response. #71446 added the optional team_name field to two asset
reference models for 3.4, and airflowctl from airflow-ctl/v0-1-test
now fails on "assets list" and "assets get" against 3.4.0b2.

StrictBaseModel is meant for request bodies, so that unknown fields
sent by a client are rejected (#44306). Response models are built by
the server, and new fields in them should not break existing clients.

(cherry picked from commit e990430)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:airflow-ctl area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. backport-to-airflow-ctl/v0-1-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants