shahar1 opened a new pull request, #76074: URL: https://github.com/apache/airflow/pull/76074
Backport of #69110 to `airflow-ctl/v0-1-test` (cherry picked from 7790bb52994a69bdcfd3bcaf4cdbd846797eaf6c, path-limited). Airflow 3.4 servers return `fileloc: null` for a Dag whose file location is unknown; airflowctl 0.1.x rejects `dags list/get/get-details` responses for such Dags. This makes `fileloc` nullable in `DAGResponse` and `DAGDetailsResponse`, with the UI handling and tests from #69110. Checks: `pytest airflow-ctl/tests` 386 passed (the one failure, `test_server_connection_refused`, also fails on the unchanged branch locally); new airflowctl test fails without the change; core `test_dags.py` 104 passed; UI `tsc --noEmit` clean and `FileLocation.test.tsx` 2 passed. Generated files were regenerated on this branch rather than copied from `main` (codegen versions differ): the v2 spec, `_private_ui.yaml` and the simple-auth spec via `scripts/in_container/run_generate_openapi_spec.py` on Python 3.12, the airflowctl and task-sdk datamodels via the branch's `codegen` group, and the UI `openapi-gen` via `pnpm codegen`. On the unchanged branch these reproduce the committed files byte for byte. CI on this branch only runs the airflow-ctl tests, so please re-run the generators when reviewing. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 5.5) Generated-by: Claude Code (Opus 5.5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
