-
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
fix: can't trigger delete event on SqlaTable #19752
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19752 +/- ##
===========================================
- Coverage 66.51% 53.67% -12.84%
===========================================
Files 1687 1689 +2
Lines 64620 64632 +12
Branches 6646 6649 +3
===========================================
- Hits 42980 34691 -8289
- Misses 19940 28238 +8298
- Partials 1700 1703 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -250,6 +250,7 @@ def test_import_v0_dataset_cli_export(self): | |||
} | |||
command = v0.ImportDatasetsCommand(contents) | |||
command.run() | |||
db.session.commit() |
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.
It's a flaky test here. The after_insert in the SqlaTable
doesn't run commit
finally, so the Postgresql probably does not immediately preserve shadow tables.
@@ -290,6 +291,7 @@ def test_import_v0_dataset_ui_export(self): | |||
} | |||
command = v0.ImportDatasetsCommand(contents) | |||
command.run() | |||
db.session.commit() |
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.
same before
this issue has been fixed by #19421, so closed it. |
SUMMARY
The SqlaTable model can't remove associative sl_tables when triggering delete event.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TESTING INSTRUCTIONS
CI
ADDITIONAL INFORMATION