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): Apply dashboard filters to comparison query in BigNumber with Time Comparison chart #27138

Conversation

Antonio-RiveroMartnez
Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez commented Feb 16, 2024

SUMMARY

The dashboard filters are being ignored from the comparison query in our BigNumber with Time Comparison chart. This PR is fixing that so such query can properly manage the filters while ignoring the time range filter becase it's set by the range set on the chart

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Error:
Screenshot 2024-02-16 at 09 04 59

Fix:
Screenshot 2024-02-16 at 08 55 56

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

- Apply any other filter when in dashboard except for a time range since that's computes with the ranges
Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1ff4f79) 67.15% compared to head (cf349b1) 67.15%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #27138   +/-   ##
=======================================
  Coverage   67.15%   67.15%           
=======================================
  Files        1902     1902           
  Lines       74453    74453           
  Branches     8306     8306           
=======================================
  Hits        49998    49998           
  Misses      22401    22401           
  Partials     2054     2054           
Flag Coverage Δ
javascript 56.84% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://54.201.26.152:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez Antonio-RiveroMartnez merged commit dab44c0 into apache:master Feb 16, 2024
35 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

grvoicu added a commit to grvoicu/superset that referenced this pull request Feb 20, 2024
…-to-the-embedded-dashboard

* master: (1182 commits)
  fix(ci): mypy pre-commit issues (apache#27161)
  feat(Alerts and Reports): Modal redesign (apache#26202)
  refactor: Migrate ErrorBoundary to typescript (apache#27143)
  chore(tests): Remove unnecessary explicit Flask-SQLAlchemy session expunges (apache#27136)
  fix(plugins): Apply dashboard filters to comparison query in BigNumber with Time Comparison chart (apache#27138)
  fix: Duplicated toast messages (apache#27135)
  docs: add Geotab to users list (apache#27134)
  fix: Plain error message when visiting a dashboard via permalink without permissions (apache#27132)
  fix: ID param for DELETE ssh_tunnel endpoint (apache#27130)
  chore(hail mary): Update package-lock.json via npm-audit-fix (apache#26693)
  chore: lower cryptography min version to 41.0.2 (apache#27129)
  docs(miscellaneous): Export Datasoruces: export datasources exports to ZIP (apache#27120)
  fix(pivot-table-v2): Added forgotten translation pivot table v2 (apache#22840)
  fix: RLS modal overflow (apache#27128)
  refactor: Updates some database columns to MediumText (apache#27119)
  fix: gevent upgrade to 23.9.1 (apache#27112)
  fix: removes old deprecated sqllab endpoints (apache#27117)
  feat(storybook): Co-habitating/Upgrading Storybooks to v7 (dependency madness ensues) (apache#26907)
  fix: bump grpcio, urllib3 and paramiko (apache#27124)
  chore(internet_port): added new ports and removed unnecessary string class (apache#27078)
  ...
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Feb 20, 2024
…r with Time Comparison chart (apache#27138)

(cherry picked from commit dab44c0)
@sadpandajoe
Copy link
Member

🏷️ preset:2024.8

sfirke pushed a commit to sfirke/superset that referenced this pull request Mar 22, 2024
@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
vinothkumar66 pushed a commit to vinothkumar66/superset that referenced this pull request Nov 11, 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 plugins size/S 🚢 4.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants