-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
Unified Bulk Patch Endpoint for Connections in Rest API (FastAPI) #45715
Unified Bulk Patch Endpoint for Connections in Rest API (FastAPI) #45715
Conversation
130e0de
to
7bc8d43
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
A few suggestions, and hint for follow up PRs. Almost ready to merge.
…e default for mutable fields and fix a comment, Remove unit test for old method
…ding to tests, include unit tests, Fix Session Add for Create Action
…ove them to common.py under datamodels
7bc8d43
to
1bcfc03
Compare
Thanks for the quick review! I updated the code according to the comments. I agree with all the other comments and created an issue for it too #45816. |
Nice |
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 🎉
NIIIIICE! |
Hey @bugraoz93 ,
Was this intentional? Or just a miss, in case I can rectify this in upcoming PR for bulk pool. For now, based upon above comments, I have included that in #45939 |
Hey @shubhamraj-git , On the documentation perspective I am planning to do more unification for the datamodels in #45816. I can cover this one over there, it seems relevant. Please bring up anything in that issue to discuss more. Thanks for pointing out! I would be happy to bounce ideas and am going to tag you in the next PR. |
Thanks @bugraoz93 , Sounds great. For now, I have solved the bug by removing the action_on_existence from BaseModel, and included that differently for create and (delete & update). This solves all the three issues. This can be later unified when you are working on #45816 . Let me know if you need to do this in other way. Also, I did this since the Pool Bulk PR #45939 is ready, and this seems to be earliest solution, didn't brainstorm more, since you are already working on #45816 which will anyways refactor these all. |
I just saw this update after sending my message :) Feel free to change that part in your MR, I don't want to block you on that. Thanks!
Amazing, thanks! Looks good! I agree, fixing is enough and no need for brainstorming. I was trying to not put the work on you (mostly updating tests since they are unified now) :) I can move from there. |
Nice guys, thanks for highlighting that @shubhamraj-git. Indeed that's a big part and the implementation is a little bit rough but i'm sure we will improve it iteratively. (sounds like we have a plan for that, I'll gladly review any PR on the front 😄) |
…ache#45715) * Initial implementation of Bulk Patch approach for Connections, replace default for mutable fields and fix a comment, Remove unit test for old method * Comment update,Remove key from model_dump, Update Service logic according to tests, include unit tests, Fix Session Add for Create Action * Remove unused print statement, unify bulk action types as enums and move them to common.py under datamodels
…ache#45715) * Initial implementation of Bulk Patch approach for Connections, replace default for mutable fields and fix a comment, Remove unit test for old method * Comment update,Remove key from model_dump, Update Service logic according to tests, include unit tests, Fix Session Add for Create Action * Remove unused print statement, unify bulk action types as enums and move them to common.py under datamodels
…ache#45715) * Initial implementation of Bulk Patch approach for Connections, replace default for mutable fields and fix a comment, Remove unit test for old method * Comment update,Remove key from model_dump, Update Service logic according to tests, include unit tests, Fix Session Add for Create Action * Remove unused print statement, unify bulk action types as enums and move them to common.py under datamodels
relates: #45601
^ 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.