-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Fix "actions" on ModelViews with composite primary keys #1493
Fix "actions" on ModelViews with composite primary keys #1493
Conversation
@dpgaspar Any chance of getting this in 3.1.1? It's breaking a number of the CRUD views in Airflow. 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.
@dpgaspar Would really appreciate if we can get this out sooner
The refactor in dpgaspar#1398 changes the `get()` function, and mistakenly always applied the PK filter, even in the case of composite keys. (The else block of `if self.is_pk_composite` applied it again, so it was actually applying the same filter twice, which didn't break anything, but was not needed)
414adeb
to
82f77ae
Compare
This fixes apache#11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override.
Hope to get 3.1.1 out on monday/tuesday, Thank you for the fix and sorry for this regression |
No worries - regressions happen, that's why I added tests :) |
This fixes apache#11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override.
This fixes apache#11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override.
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
This fixes #11513 -- and has been submitted upstream to FAB as dpgaspar/Flask-AppBuilder#1493, once that is merged we can remove this override. GitOrigin-RevId: 28229e990894531d0aaa3f29fe68682c8b01430a
The refactor in #1398 changes the
get()
function, and mistakenlyalways applied the PK filter, even in the case of composite keys.
(The else block of
if self.is_pk_composite
applied it again, so it wasactually applying the same filter twice, which didn't break anything,
but was not needed)
I had a bit of trouble running the tests locally, but by ignoring some bits that weren't working for me I was able to validate that the block I added behaves as expected.
Description
Discovered in Airflow, apache/airflow#11513
The stack trace we got was:
ADDITIONAL INFORMATION
This was noticed in Apache Airflow 2.0.0a1 where we use the "multi-select + action" on a table with composite PKs