-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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(superset): Fixed API for bulk delete of embedded dashboards #21911
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21911 +/- ##
=======================================
Coverage 66.91% 66.91%
=======================================
Files 1807 1807
Lines 69139 69140 +1
Branches 7392 7392
=======================================
+ Hits 46266 46267 +1
Misses 20963 20963
Partials 1910 1910
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@villebro can you please check this? |
@lilykuang @michael-s-molina can you please check this? |
@villebro @lilykuang @michael-s-molina can you please check this? |
FYI @sinhashubham95 I restarted the cypress test on CI, will review now |
Thanks @villebro |
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.
The functional change LGTM with a minor nit on the test. However, I wasn't able to make the test fail by removing the functional change. Can you double check that the test is accurately testing the fix?
@villebro I have refactored the test case as per your suggestion. Also, I verified the test case failing for me without the change when I was running from my local. |
@sinhashubham95 can you post the failing test output without the functional changes? I'm still not able to reproduce the test failure without the functional change. What I did to run the tests locally: tox -e sqlite tests/integration_tests/dashboards/api_tests.py Btw, I'm getting an unrelated test failure when running the tests locally and I don't fully understand how that test ( |
@villebro please check now. |
@sinhashubham95 oh, now I get it, the test didn't fail on sqlite because it doesn't enforce foreign keys 🤦 thanks for helping me get to the bottom of this! |
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.
LGTM
SUMMARY
This change fixes bulk delete of dashboards which have embedding enabled.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
NA
TESTING INSTRUCTIONS
curl $'http://localhost:8088/api/v1/dashboard/?q=\u0021(id1,id2)' \ -X 'DELETE' \ -H 'Accept: application/json' \ -H 'Cookie: session=some-session' \ -H 'Origin: http://localhost:8088' \ -H 'X-CSRFToken: some-token' \ --compressed
ADDITIONAL INFORMATION