-
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
feat: add endpoint to export saved queries using new format #11447
Conversation
A rebase should fix the broken E2E test (see #11453) |
Codecov Report
@@ Coverage Diff @@
## master #11447 +/- ##
==========================================
- Coverage 66.65% 62.37% -4.28%
==========================================
Files 863 864 +1
Lines 41048 41114 +66
Branches 3693 3693
==========================================
- Hits 27359 25644 -1715
- Misses 13592 15291 +1699
- Partials 97 179 +82
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
from superset.queries.saved_queries.filters import ( | ||
SavedQueryAllTextFilter, | ||
SavedQueryFavoriteFilter, | ||
SavedQueryFilter, | ||
) | ||
from superset.queries.saved_queries.schemas import ( | ||
get_delete_ids_schema, | ||
get_export_ids_schema, |
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.
not related with this PR, sort of a note to self, this is asking to be DRY'ed
…1447) * Add UUID to saved_query * Reuse function from previous migration * Point to new head * feat: add backend to export saved queries using new format
SUMMARY
In line with #11167, this PR adds a new endpoint to export saved queries in the zipped YAML format. This will allow users to easily migrate saved queries between Superset instances.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
N/A
TEST PLAN
Added unit tests for the API and for the new
ExportSavedQueriesCommand
.ADDITIONAL INFORMATION