-
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 Migrate /object/grid_data from views to FastAPI #44332
AIP-84 Migrate /object/grid_data from views to FastAPI #44332
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.
Nice. A few early comments, but overall looking good.
I'll do a more in depth review when the PR is ready :)
597fed2
to
41e6dca
Compare
I addressed the comments. Thanks for the review! Some parts turned out to be more complex than I imagined. It still needs small touches and should be ready with unit tests soon. 😅 |
41e6dca
to
dc6466d
Compare
0642476
to
a65e089
Compare
@pierrejeambrun this is ready for review. I removed the WIP earlier but forgot to ping you again 😅 Please when you have time, thanks! |
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.
Great.
Looking good, just a few suggestions / improvement on the code, but nothing blocking.
I'll also let Brent double check that the interface corresponds to the UI specifications.
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.
Great work! This will power so much of the new UI!
In the old UI we also included the note for both dag runs and task instances. We should still include it for the new UI.
That sounds amazing! Let me know if I have missed anything, and we can fix it at an early stage. |
I was writing my message and saw your review now 🙂 Thanks for the review, Brent! |
aca5d83
to
46e7fb4
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.
Nice
Can you also plug the new common filters |
46e7fb4
to
fdf2fa9
Compare
I already included this in the previous commit, updating that endpoint params according to changes on those command |
69a0e73
to
8cd110d
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.
Code and test cases look good, beside the couple of nits, ready to merge.
…se SortParam rather than order_expressions, remove unnecessary version check, include additional checks for MappedTaskGroups, Move include upstream and downstream to parameters.py, remove unrelated comment and include task and dagrun notes
…t_param, remove unreachable statement from parameters.py::_transform_ti_states, make include upstream/downstream Annotated optional and include new test for upstream/downstream
…ix loop order for calculating overall_state, fix sorting and include user to pass it as parameter and include new test for order_by
…, change types of Pydantic models
…hild_states to prevent confusion
…ty, decide the order_by with first element of timetable.run_ordering, add __or__ method to SortParam, calculate overall_ti_state after proper additions in child_states, add more test cases around order_by, limit, filtering such as logical_date_gte/lte, make test 3 depth nested task group
…maining filter in unit test, make tests use params and parametrize test methods
…e in parameters and test
e4f55fa
to
f957ac4
Compare
Amazing news, just pushed the changes and resolved the threads. Thanks a lot for your detailed review! |
cc: @bbovenzi just merged. Hoping this can enable further development for the front end side. |
closes: #42595
^ 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.