vatsrahul1001 opened a new pull request, #71107: URL: https://github.com/apache/airflow/pull/71107
Backport of #70893 to `v3-3-test`. When a Dag is resolved by lookup (asset materialize, wait-dag-run XCom check) rather than named by the caller, its `team_name` is now resolved via `DagModel.get_team_name()` and passed to the auth check — otherwise a team-aware auth manager is asked about a differently-scoped resource. The required infra is present on the branch (`DagModel.get_team_name`, `DagDetails.team_name`). One conflict in `assets.py` imports: main also imports `DagVersion` there (from an unrelated main-only change), which #70893 does not use — resolved by adding only `from airflow.models.dag import DagModel` and dropping the unused `DagVersion` import (would otherwise be a ruff F401 on this branch). `dag_run.py` and tests applied cleanly. ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) — cherry-pick backport with one import-conflict resolution (documented above). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
