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

feat: [filter_box] disable instant_filtering by defult #9952

Merged

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented May 29, 2020

SUMMARY

Currently filter_box's setting instant_filtering is set to true by default. We found airbnb users usually make large filter_box with multiple filter_fields. When user change filter fields one by one, instant filtering will generate many temporary queries but no use.

This PR is to set default value be false. This change will not affect any existed filter_box settings.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen_Shot_2020-05-29_at_10_08_48_AM

TEST PLAN

CI

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

@codecov-commenter
Copy link

codecov-commenter commented May 29, 2020

Codecov Report

Merging #9952 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9952   +/-   ##
=======================================
  Coverage   71.33%   71.34%           
=======================================
  Files         585      585           
  Lines       30889    30889           
  Branches     3237     3237           
=======================================
+ Hits        22036    22039    +3     
+ Misses       8744     8741    -3     
  Partials      109      109           
Flag Coverage Δ
#cypress 53.98% <ø> (+0.01%) ⬆️
#javascript 59.40% <ø> (ø)
#python 71.53% <ø> (ø)
Impacted Files Coverage Δ
...t-frontend/src/explore/controlPanels/FilterBox.jsx 0.00% <ø> (ø)
...rontend/src/visualizations/FilterBox/FilterBox.jsx 76.22% <ø> (+3.27%) ⬆️
.../src/dashboard/components/gridComponents/Chart.jsx 88.76% <0.00%> (-1.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fe6f4f...c710897. Read the comment docs.

'users to hit an [Apply] button',
default: false,
description: t(
'Whether to apply filters as they change, or wait for users to hit an [Apply] button',
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should add a better description while we're in here too. @sylvia-tomiyama any ideas?

Copy link
Contributor

Choose a reason for hiding this comment

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

I checked what other descriptions look like (for consistency...). How about Check to apply filters instantly as they change instead of displaying [Apply] button.

@graceguo-supercat
Copy link
Author

I will use Zuzana's comment.

@graceguo-supercat graceguo-supercat merged commit 5324e25 into apache:master Jun 1, 2020
@ktmud
Copy link
Member

ktmud commented Jun 5, 2020

image

Should we consider moving the apply button to the right?

@graceguo-supercat graceguo-supercat deleted the gg-InstantFiltering branch June 11, 2020 23:17
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 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 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants