-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
OpenApiSpec - DAGRun - make dag_id in body not required #21024
Conversation
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/airflow/blob/main/CONTRIBUTING.rst)
|
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.
This is a problem from the client generating the API not airflow.
And has been solved in openapi python client.
Issue: OpenAPITools/openapi-generator#9296
PR: OpenAPITools/openapi-generator#9409
You can create issue for it in the go client tool
@ephraimbuddy, Thanks for the quick response. While I understand this may be an issue with an upstream tool. This makes it impossible to use golang generated client for managing DAG Runs at the moment. My real question is, does my change break anything and is fundamentally wrong? my feeling (for my current understanding) is that its worth it. |
I get your point now. Your code is actually fine. I think there's no harm. |
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
Awesome work, congrats on your first merged pull request! |
(cherry picked from commit 2af0f70)
(cherry picked from commit 2af0f70)
(cherry picked from commit 2af0f70)
(cherry picked from commit 2af0f70)
related: apache/airflow-client-go#9
When generating a golang client for the spec and trying to create a DAGRun. it requires the dag_id property in the body which the server refuses. see above linked issue.
Results for how code gen changes would look after the schema change can be seen here: https://github.com/DrFaust92/airflow-client-go/pull/2/files