-
Notifications
You must be signed in to change notification settings - Fork 15k
[1/4] Transition of get-value config command #49601
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
@bugraoz93 I think I’m starting to get a good grasp of how the transitioning works. However, I’m currently hitting this error:
It seems like my Note: This PR is still in draft—only Thanks a lot! |
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.
Thanks for the PR!
Basic commands are already generated automatically via 1-1 operation-command mapping.
Operations
https://github.com/apache/airflow/blob/main/airflow-ctl/src/airflowctl/api/operations.py
Auto Generation
class CommandFactory: |
If you run
airflowctl --help
or more specifically airflowctl config --help
. For example, in this case, all methods you added should stay and get-value shouldn't be there because get
comes from the generated part.
@bugraoz93 I think I’m starting to get a good grasp of how the transitioning works. However, I’m currently hitting this error:
airflowctl config command error: argument COMMAND: invalid choice: 'get-value' (choose from 'get'), see help above.
It seems like my get-value config ActionCommand isn’t being successfully registered in cli_config.py, and I haven’t been able to figure out why. Could you take a quick look and see if there’s something I might’ve missed?
I think one overrides the other since both GroupCommand have the same name. This gives precedence to one.
I have created a PR for this. When it is merged, you will be safely included commands and test it.
#49674
b2fa0f8
to
78da866
Compare
3849c89
to
b3c280e
Compare
@bugraoz93 I wanted to limit this PR to only transitions the I have one concern here, in the old airflow CLI, However, with the new auto-gen of commands, note: trying to fix CI error! |
Hey @yunchipang, it is okay to do it step by step and command by com and. For
This is expected, and we shouldn't implement anything that comes from generated commands from operations. This is not a problem but intended behavior. They will serve to the same purpose and do the same thing. So please skip get-value. Only focus on the capability other than generated ones. |
partially closes: #45664
parent issue: #45661
implements
get-value
config command. unit tests are added.