-
Notifications
You must be signed in to change notification settings - Fork 14.9k
fix(sqllab): save datasets with template parameters #33195
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
base: master
Are you sure you want to change the base?
Conversation
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
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.
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.
I've completed my review and didn't find any issues.
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/utils/datasourceUtils.js | ✅ |
superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx | ✅ |
superset/datasets/schemas.py | ✅ |
superset-frontend/src/SqlLab/actions/sqlLab.js | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #33195 +/- ##
===========================================
+ Coverage 0 83.25% +83.25%
===========================================
Files 0 553 +553
Lines 0 39924 +39924
===========================================
+ Hits 0 33238 +33238
- Misses 0 6686 +6686
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Should this be behind a checkbox in the save dataset modal/dialog? I'm thinking if users setting a |
SUMMARY
Looking to solve this: #25786.
Trying to allow for datasets with stuff in the parameters to save without having a fatal error.
All it does is add the template parameters at the creation (post) of the dataset
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
TAKEN FROM THE ISSUE:
{
"my_table": "persons"
}
SELECT * FROM {{ my_table }}
Observe that you can execute the query, the context you specified in the Parameters is correctly injected because the results appear as expected.
ADDITIONAL INFORMATION