-
Notifications
You must be signed in to change notification settings - Fork 14k
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
FilterBox,BigNumber,WorldMap: Handle empty results #9671
Conversation
This change avoids Pandas errors to pop up in chart when no data is returned (confusing users). In this way a nicer "No Results etc.." is returned.
Codecov Report
@@ Coverage Diff @@
## master #9671 +/- ##
==========================================
- Coverage 70.53% 70.53% -0.01%
==========================================
Files 581 581
Lines 30224 30230 +6
Branches 3078 3078
==========================================
+ Hits 21319 21322 +3
- Misses 8793 8796 +3
Partials 112 112
Continue to review full report at Codecov.
|
@mistercrunch if you have time for a quick review I'd be super grateful :) |
Could you show the old + new screenshots side by side in the test plan? thanks! |
Added, hope it is what you asked, otherwise let me know! |
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.
Thanks for the fix @elukey !
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.
Perfect, thanks for the fix!
…)" (apache#9755) This reverts commit 865a909. (cherry picked from commit 4b6681b)
This change was originally attempted in apache#9671 but reverted since it broke FilterBox charts with only a time selector. After some tests I reworked the patch to avoid returning None, but instead returning an empty list for each col/selector with an empty dataframe associated. This allows to see all the selectors without any breakage.
…)" (apache#9755) This reverts commit 865a909.
…9789) * FilteBox: handle empty results (second attempt) This change was originally attempted in #9671 but reverted since it broke FilterBox charts with only a time selector. After some tests I reworked the patch to avoid returning None, but instead returning an empty list for each col/selector with an empty dataframe associated. This allows to see all the selectors without any breakage. * BigNumberViz: avoid user facing errors when the dataframe is empty * WorldMapViz: avoid user facing errors when the dataframe is empty
The version built is not the one that comes straight from Pypi, but I have backported apache/superset#9468 and apache/superset#9671. The bugs are minor ones, in fact it didn't stop the release process when reported, so even using the version from pypi leads to a workable result (just less nice to see in certain corner cases). Bug: T249495 Change-Id: I671ac04fb52c3dc1241f686f37caa21ce097090a
The version built is not the one that comes straight from Pypi, but I have backported apache/superset#9468 and apache/superset#9671. The bugs are minor ones, in fact it didn't stop the release process when reported, so even using the version from pypi leads to a workable result (just less nice to see in certain corner cases). Bug: T249495 Change-Id: I8084a0f38c6c458bbaac8c03d158a062e830a678
This change avoids Pandas errors to pop up in chart when no data
is returned (confusing users). In this way a nicer "No Results etc.." is returned.
CATEGORY
Choose one
SUMMARY
Add some checks to avoid Pandas errors to bubble up to the users.
TEST PLAN
Using "legacy" Druid datasources and setting charts to return no data.
Before the fix:
After:
ADDITIONAL INFORMATION
None
REVIEWERS