-
Notifications
You must be signed in to change notification settings - Fork 15.6k
AIP-67 - Multi-team: CLI commands for multi team #55283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
CLI commands for Create, List, Delete of teams. These are delivered as CLI commands instead of API because they are administrator only (similar to `airflow db reset`). These are not commands that DAG authors should be regularly running (therefore no APIs implemented)
@@ -305,6 +305,8 @@ def string_lower_type(val): | |||
ARG_LOCAL = Arg(("-l", "--local"), help="Run the task using the LocalExecutor", action="store_true") | |||
ARG_POOL = Arg(("--pool",), "Resource pool to use") | |||
|
|||
# teams | |||
ARG_TEAM_NAME = Arg(("name",), help="Team name") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if you add required=True
? Then you could remove _extract_team_name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you will still need it because it is possible to pass things like empty string as the argument. But I still like making this required, so I'll make that change either way!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I just double checked and positional arguments are already required. But the input sanitation is still needed (for inputs like empty string).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
CLI commands for Create, List, Delete of teams. These are delivered as CLI commands instead of API because they are administrator only (similar to
airflow db reset
). These are not commands that DAG authors should be regularly running (therefore no APIs implemented)^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rst
or{issue_number}.significant.rst
, in airflow-core/newsfragments.