-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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: adhoc column in legacy chart #19234
fix: adhoc column in legacy chart #19234
Conversation
Codecov Report
@@ Coverage Diff @@
## master #19234 +/- ##
==========================================
+ Coverage 66.73% 66.76% +0.02%
==========================================
Files 1668 1670 +2
Lines 64271 64392 +121
Branches 6496 6496
==========================================
+ Hits 42894 42992 +98
- Misses 19695 19718 +23
Partials 1682 1682
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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 with a couple of nits
3f69679
to
ee1dd3a
Compare
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 updates LGTM.
Not super necessary, but if you can link to the code path that raises the error in the PR description, that'd be great.
This issue is in the Preset' Shortcut. So I can't link. |
🏷️ preset:2022.11 |
(cherry picked from commit b5e9fad)
(cherry picked from commit b5e9fad)
SUMMARY
Currently, If a chart applied Adhoc Column and it was a legacy chart without QueryContext in slice metadata, user will see an error on Dashboard:
TypeError: unhashable type: 'dict'
.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before
adhoc.column.before.mov
After
after.mov
TESTING INSTRUCTIONS
a) use following step to reproduce this issue
USA Births Names
in examples dashboard.Boy
chartQueryContext
forBoy
chart from Superset metadatai) connect to Superset metadata by any database client or SQLLab
ii) run SQL
UPDATE slices set query_context=NULL WHERE slices.slice_name='Boys'
in DBUSA Births Names
, reproducedADDITIONAL INFORMATION