-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
AIP-84 Fix: Allow Null Values for end_date Field in Dashboard Endpint in FastAPI #44043
AIP-84 Fix: Allow Null Values for end_date Field in Dashboard Endpint in FastAPI #44043
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.
Thanks a few suggestions
The following were added in #43934 . The changes broke dashboard endpoint probably due
|
a4992ad
to
ac48b0b
Compare
I’ve made the adjustments in the methods and let FastAPI handle it as a
I haven’t updated the annotation to |
FastAPI itself returns
https://fastapi.tiangolo.com/tutorial/extra-data-types/?h=datet#other-data-types |
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, let us just merge again the PR introducing OptionalDateTimeQuery
(it got reverted because of CI issues not catching tests etc...) and we should be good to go
ac48b0b
to
20484b1
Compare
Thanks for the quick reviews and for merging the changes again so promptly! I aimed to replicate the changes and test the endpoint accordingly. I also followed up on the CI failure, which helped me realize I needed to apply a similar fix to the CI script updates in another PR later on :) |
Restarting failed job, ready to merge when CI is green. |
related: #43846
safe_date_time
to returnNone
if the input isNone
None
in queries/endpointsI have created a separate PR because write permissions don't allow me to push to the existing PR.
cc: @bbovenzi @pierrejeambrun @tirkarthi
^ 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.