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(generic-x-axis): skip initial time filter for legacy charts #23506

Merged
merged 2 commits into from
Mar 28, 2023

Conversation

villebro
Copy link
Member

@villebro villebro commented Mar 28, 2023

SUMMARY

Currently legacy charts with the time range control will get time filters doubly applied when GENERIC_CHART_AXES is enabled. This adds a check to skip conversion of the time range to an adhoc temporal filter if the control is present in the control panel, and also lets the user remove the last temporal filter if the time range control is present.

AFTER

Now legacy charts only get time ranges applied once if there are no additional time filters:
image

BEFORE

Previously legacy charts would automatically add the time range to the adhoc filters control, causing the time range to apply twice:
image

It was also impossible to remove the last temporal filter in charts that have the time range control:
image

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

Copy link
Member

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Copy link
Member

@zhaoyongjie zhaoyongjie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@villebro villebro merged commit 8db5cb1 into apache:master Mar 28, 2023
@villebro villebro deleted the villebro/legacy-time-filter branch March 28, 2023 11:24
@villebro villebro added the 2.1.1 label Apr 14, 2023
@eschutho eschutho added the v2.1 label May 12, 2023
eschutho pushed a commit to preset-io/superset that referenced this pull request May 23, 2023
eschutho pushed a commit that referenced this pull request May 23, 2023
eschutho pushed a commit that referenced this pull request May 25, 2023
eschutho pushed a commit that referenced this pull request May 31, 2023
@mistercrunch mistercrunch added 🍒 2.1.1 🍒 2.1.2 🍒 2.1.3 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.0.0 labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.1.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS v2.1 🍒 2.1.1 🍒 2.1.2 🍒 2.1.3 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants