-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Switch Ui codegen to fastAPI spec #42222
base: main
Are you sure you want to change the base?
Conversation
1f2736a
to
ae14c0c
Compare
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.
Just one comment, non blocking.
Looking good :)
origins = [ | ||
"http://localhost:28080", | ||
"http://localhost:8080", | ||
] | ||
app.add_middleware( | ||
CORSMiddleware, | ||
allow_origins=origins, | ||
allow_credentials=True, | ||
allow_methods=["*"], | ||
allow_headers=["*"], | ||
) | ||
|
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 don't know if you want to do that now or merge this one and do that in the following PR but 'packaging' things to plug on the config and remove hardcoded values to make that 'production' ready.
-
axios.defaults.baseURL will not work depending on how they deploy the
airflow fastapi-api
and only works with breeze
I approved just in case you want to move forward and merge that working 'development' environment, we will need to figure things out a bit
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 am on vacation for the next week so feel free to contribute to this PR. Or merge this one and fix the urls in a follow-up PR
ae14c0c
to
1a22044
Compare
Switch new UI to use fastAPI
^ 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 newsfragments.