-
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
fix(plugins): Fix dashboard filter for Table and Big Number with Time Comparison #29517
fix(plugins): Fix dashboard filter for Table and Big Number with Time Comparison #29517
Conversation
- Fix dashboard time filter not being applied to charts - Prevent list index out of range when there's time_grain and not a join_keys list
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #29517 +/- ##
==========================================
+ Coverage 60.48% 70.33% +9.84%
==========================================
Files 1931 1967 +36
Lines 76236 78426 +2190
Branches 8568 8972 +404
==========================================
+ Hits 46114 55163 +9049
+ Misses 28017 21065 -6952
- Partials 2105 2198 +93
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/testenv up FLAG_CHART_PLUGINS_EXPERIMENTAL=True |
@yousoph Ephemeral environment spinning up at http://52.42.137.198:8080. Credentials are |
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.
Nice!
if join_keys: | ||
col = df.pop(join_keys[0]) | ||
df.insert(0, col.name, col) |
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.
Is there always going to be a single join key? Should we future-proof this by doing:
if join_keys: | |
col = df.pop(join_keys[0]) | |
df.insert(0, col.name, col) | |
for join_key in join_keys: | |
col = df.pop(join_key) | |
df.insert(0, col.name, col) |
Ephemeral environment shutdown and build artifacts deleted. |
SUMMARY
When a dashboard is using the Table viz or the BigNumber viz with Time comparison, any time filter used in the dashboard is ignored by the charts. This PR address that fix and prevent an index out of range too.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Test.mov
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION