fix(big-number): respect extra_form_data.time_compare in Big Number with Time Comparison#41342
Conversation
…ith Time Comparison
Code Review Agent Run #320903Actionable Suggestions - 0Additional Suggestions - 1
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #41342 +/- ##
=======================================
Coverage 64.36% 64.37%
=======================================
Files 2653 2653
Lines 144965 144973 +8
Branches 33437 33444 +7
=======================================
+ Hits 93305 93322 +17
+ Misses 49974 49965 -9
Partials 1686 1686
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ith Time Comparison (apache#41342)
…ith Time Comparison (apache#41342)
SUMMARY
Big Number with Time Comparison (
pop_kpi) ignoresextra_form_data.time_compare.When that override is set, the chart still computes its comparison from its own
time_comparecontrol, so the displayed comparison value, delta, and "Data for …" tooltip don't reflect the override.Fix
Read
extra_form_data.time_compareand let it drive the comparison, mirroring how the Table chart already handles it (#33947):extra_form_data.time_compareis present, use it astime_offsets(and request offsets in that case) so the backend computes thecomparison against the overridden range.
extra_form_data.time_comparewhen selecting thecomparison column and computing the tooltip shift.
buildQuerytest covering the override.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
With
extra_form_data.time_compareset, the Big Number's comparison value, delta, and percent now match the Table chart for the same data.ADDITIONAL INFORMATION