-
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
Render errors when getting a list of dags #42897
Conversation
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.
Too bad we can't use axios, lot of boilerplate is done for us. Now we have a bunch of mimetype manual handling and checking.
Do we still have the redirection, to login page on 401 ? (the former interceptor) ?
Actually, it was a bug in our interceptor. I put axios back in and restored our 401 check. |
Nice ! |
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
* Render errors when getting a list of dags * Restore axios, prettierignore pnpm-store * Add pnpm-store to prettier ignore
Render error messages when getting a list of dags such as if the query params are incorrect:
Closes #42893
I had to do a few things to get this to work:
Remove
axios
and switch our codegen tofetch
. It was much easier to correctly catch the http error.Our opengen treats both error as
unknown
and error.body asunknown
. Open GitHub issue on codegen. Therefore we had to manually assert a lot of the type values, even though they exist in the openapi spec. If there is a new error body type, we will have to manually update this ErrorAlert component.^ 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.