Skip to content

[Feature] Dashboard scoped filter - #8590

Merged
graceguo-supercat merged 5 commits into
masterfrom
feature--dashboard-scoped-filter
Nov 18, 2019
Merged

graceguo-supercat merged 5 commits into
masterfrom
feature--dashboard-scoped-filter

Conversation

@graceguo-supercat

@graceguo-supercat graceguo-supercat commented Nov 18, 2019 •

Copy link
Copy Markdown

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
With the growing size of the dashboard, user may want to apply one dashboard filter to some of charts in dashboard, and one filter apply to another set of charts. A very common use case is user groups similar charts in different tabs, and make a filter only applicable for this group. Currently the way to set filter's scope is not very easy to use:
Screen_Shot_2019-10-16_at_9_49_54_AM

After:

  1. Start filter scope selector:
    jwMsJ1jNea

  2. User can edit a single filter, or edit multiple filter fields all together. We also allow user toggle back to a single filter field in the multi-edit mode:
    PtIvVuSV6s

  3. Search chart name:
    d2ZfBriTy2

  4. When new chart is added to dashboard, based on its layout position, it will get filters that are applicable to its tab(s):
    NvggG46SWb

  5. When user move charts between tabs, this may cause chart to be applicable to different filter(s). We will show a warning message when chart is moved to a different filter scope.
    MVYXjUXxDr

TEST PLAN

CI and manual test.

REVIEWERS

@etr2460 @kristw @mistercrunch @willbarrett @betodealmeida

Grace Guo added 5 commits November 13, 2019 13:49
* filter scope selector modal

* add single-field-edit in multi-edit mode switch

* fix code review comments (round 1)

* refactory after design review

* fix a few props initial value
…ed ids to scope object (#8564)

* convert ids to scope object

* use lodash helpers to make code readable
…to dashboard redux state (#8522)

* merge filter scope settings into dashboard redux state

* fix/add unit tests

* minor bug fixes

* fix save filter Scopes behavior

* resolve review comments

* fix save filter scope settings

* minor comments
* improve scroll inside modal

* make left pane and right pane scroll separately

* fix review comments

@etr2460 etr2460 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this has been reviewed when merging into the feature branch, so this should be good to go!

@graceguo-supercat
graceguo-supercat merged commit ff6ab10 into master Nov 18, 2019
@mistercrunch

Copy link
Copy Markdown
Member

stoked

@vumaasha

Copy link
Copy Markdown

Is this feature available on latest version on pypi? Seems to be missing there

@lilila

lilila commented Mar 20, 2020 •

Copy link
Copy Markdown

This feature looks amazing, congrats!
However, I try to use it on 0.36.0.rc1 release and I cannot click on "close" nor "save" buttons :(

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 First shipped in 0.36.0 labels Feb 28, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* [WIP][dashboard scoped filter] part 1: scope selector modal (apache#8557)

* filter scope selector modal

* add single-field-edit in multi-edit mode switch

* fix code review comments (round 1)

* refactory after design review

* fix a few props initial value

* [WIP][dashboard scoped filter] part 2: add algorithm to convert checked ids to scope object (apache#8564)

* convert ids to scope object

* use lodash helpers to make code readable

* [WIP][dashboard scoped filter] part 3: merge filter scope settings into dashboard redux state (apache#8522)

* merge filter scope settings into dashboard redux state

* fix/add unit tests

* minor bug fixes

* fix save filter Scopes behavior

* resolve review comments

* fix save filter scope settings

* minor comments

* [dashboard scoped filter] Improve scrollbar inside modal (apache#8553)

* improve scroll inside modal

* make left pane and right pane scroll separately

* fix review comments

* force show filter_box as unchecked (apache#8587)
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/XXL 🚢 0.36.0 First shipped in 0.36.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants