[AIP-94] Mark airflow dags list as migrated to airflowctl - #68444
Conversation
ashb
left a comment
There was a problem hiding this comment.
- If
airflowctlexists, why change this CLI at all. Deprecate it sure, but why change it to use the API endpoint which may or may not be running when? - Please improve the commit message as per our contributing guidlines
- Where does it get auth from?
It gets authentication from I interpreted #68402's instruction to follow #68175 as requiring the legacy |
fcdcfe9 to
2cb5c32
Compare
|
@henry3260 could you please update PR and it's decriptions :)
Hey Ash, thanks for raising this! There will be some PRs like this using airflowctl client. I added the auth and how the client should be created here #68175. It should use that. https://github.com/apache/airflow/blob/main/airflow-core/src/airflow/cli/api_client.py |
bugraoz93
left a comment
There was a problem hiding this comment.
Looks good Henry!
Hey Ash, could you please share your concern about the approach please? I would be happy to hear and make it better if we can at any point
There was a problem hiding this comment.
On second thought, we don't need this change at all. We can just redirect it with a warning. It will only create maintenance here with the additional code we are adding. Just adding a deprecation warning should be enough for this command, as Ash suggested.
Edit: I missed the SELECT statement we deleted and replaced with airflowctl. To be honest, the GitHub UI tricked me the more I looked, as I pulled it locally to really see. My above comment applies 😅 I thought that local and what we are doing for actual parsing is the same. The deletion was hidden between additions
https://github.com/apache/airflow/pull/68444/changes#diff-b28357c8748ec828697a10b2d785bffea845397916d410da18e0265b54155867L532-L536
This part indeed should be replaced with the airflowctl client as described in the issue and in AIP-94. What we need to ensure while deprecating, airflowctl should also have --local support before Airflow v4.
|
|
Haha, no worries! The GitHub UI has definitely tricked me before too. 😅 |
2cb5c32 to
74dccd2
Compare
74dccd2 to
840cf7e
Compare
|
@bugraoz93 Since we've agreed to follow ashb's suggested pattern and the PR has been updated accordingly, could you or another maintainer help dismiss the stale 'Changes requested' block so we can move forward with the merge? |
|
To whoever merges this: please ensure the message/title is accurate (it isn't right now) |
840cf7e to
1c7f986
Compare
|
Hi maintainer, this PR was merged without a milestone set.
|
Backport successfully created: v3-3-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
|
@vatsrahul1001 how would you prefer release note reflection of these changes? Should I add |

What
airflow dags listas deprecated in favor ofairflowctl dags list.dag_list_dagsto the migrated command coverage intest_command_deprecations.py.related: #68402
Was generative AI tooling used to co-author this PR?
{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.