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(native-filters): merge_extra_form_data extras processing #14244
fix(native-filters): merge_extra_form_data extras processing #14244
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14244 +/- ##
==========================================
- Coverage 76.11% 75.89% -0.23%
==========================================
Files 945 945
Lines 47947 47947
Branches 5950 5950
==========================================
- Hits 36495 36388 -107
- Misses 11246 11353 +107
Partials 206 206
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
"druid_time_origin": "druid_time_origin", | ||
"time_grain_sqla": "time_grain_sqla", | ||
"time_range_endpoints": "time_range_endpoints", |
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.
For legacy plugins (viz.py
), these have to be mapped into the main form_data
, as they are later mapped to extras
where they should ultimately go:
Lines 363 to 370 in 6119d8e
extras = { | |
"druid_time_origin": form_data.get("druid_time_origin", ""), | |
"having": form_data.get("having", ""), | |
"having_druid": form_data.get("having_filters", []), | |
"time_grain_sqla": form_data.get("time_grain_sqla"), | |
"time_range_endpoints": form_data.get("time_range_endpoints"), | |
"where": form_data.get("where", ""), | |
} |
…14244) * fix: merge_extra_form_data extras processing * move props that are later moved back in viz.py
SUMMARY
The utility function that merges
extra_form_data
into the mainform_data
processedextras
incorrectly. This fixes the error and adds a test that would have caught it.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
CI + new tests
ADDITIONAL INFORMATION