Skip to content
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 in Period Over Period KPI plugin #27013

Conversation

Antonio-RiveroMartnez
Copy link
Member

SUMMARY

When the PoP KPI chart is rendered in a dashboard and the dashboard has a time range filter, this filter is making the chart useless because it's overriding both queries thus no comparison is happening.

Also, previously if the bigNumber or the prev Number were zero, the % change would be zero when it should have been 100%.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Error:

Screen.Recording.2024-02-05.at.13.18.09.mov

Fix:

Screen.Recording.2024-02-05.at.13.20.38.mov

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

- Stop overriding time range comparison with dashboard filter on second query so it takes teh range from the chart
- Fix percentage calculation when any of the value is 0
@Antonio-RiveroMartnez Antonio-RiveroMartnez merged commit 607301a into apache:master Feb 5, 2024
29 of 30 checks passed
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Feb 5, 2024
@sadpandajoe
Copy link
Contributor

🏷️ preset:2024.5

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 4.0.0 labels Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants