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-set): adding new filters #13515

Merged
merged 42 commits into from Mar 9, 2021
Merged

Conversation

simcha90
Copy link
Contributor

@simcha90 simcha90 commented Mar 8, 2021

SUMMARY

This PR is first phase in adding filters sets according this design: https://www.figma.com/proto/Z75uj6W6n0A6nfK3Mvawqi/Dashboard-Filters---P1?node-id=960%3A2246&scaling=min-zoom

It includes:

  1. Adding button to create filter set
  2. Create/Cancel actions for filter set creation
  3. List of selected native filters for preview
  4. Editable are for filter set name

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2021-03-08.at.12.59.00.mov

TEST PLAN

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

…incubator-superset into filter_bar_actions

� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
…_to_data_mask

� Conflicts:
�	superset-frontend/package-lock.json
�	superset-frontend/package.json
…ctions

� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
…esign

� Conflicts:
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
�	superset-frontend/src/dashboard/components/nativeFilters/FilterBar/state.ts
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

First pass comments

@simcha90 simcha90 closed this Mar 9, 2021
@simcha90 simcha90 reopened this Mar 9, 2021
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #13515 (4a55e33) into master (40fc144) will decrease coverage by 3.61%.
The diff coverage is 49.25%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13515      +/-   ##
==========================================
- Coverage   76.47%   72.86%   -3.62%     
==========================================
  Files         914      616     -298     
  Lines       46073    21574   -24499     
  Branches     5589     5600      +11     
==========================================
- Hits        35235    15719   -19516     
+ Misses      10686     5723    -4963     
+ Partials      152      132      -20     
Flag Coverage Δ
cypress 57.47% <36.19%> (+4.72%) ⬆️
hive ?
javascript 62.80% <44.69%> (-0.08%) ⬇️
mysql ?
postgres ?
presto ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
...hboard/components/nativeFilters/FilterBar/utils.ts 100.00% <ø> (ø)
...dashboard/components/FiltersBadge/DetailsPanel.tsx 60.41% <16.66%> (-1.81%) ⬇️
.../nativeFilters/FilterBar/FilterSets/FilterSets.tsx 28.00% <28.00%> (ø)
...onents/nativeFilters/FilterBar/FilterSets/utils.ts 33.33% <33.33%> (ø)
...tiveFilters/FilterBar/FilterSets/FiltersHeader.tsx 44.44% <44.44%> (ø)
...ents/nativeFilters/FilterBar/FilterSets/Footer.tsx 60.00% <60.00%> (ø)
...d/components/nativeFilters/FilterBar/FilterBar.tsx 93.75% <95.23%> (-0.11%) ⬇️
superset-frontend/src/common/components/index.tsx 100.00% <100.00%> (ø)
...hboard/components/nativeFilters/FilterBar/state.ts 100.00% <100.00%> (+5.88%) ⬆️
...components/nativeFilters/FilterBar/FilterValue.tsx 85.45% <0.00%> (-1.82%) ⬇️
... and 355 more

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 40fc144...760e375. Read the comment docs.

@villebro villebro merged commit 9b8e255 into apache:master Mar 9, 2021
@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label Mar 12, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* refactor(native-filters): move data mask to root reducer

* refactor: update rest stuff for dataMask

* refactor: add ownCrrentState to explore

* fix: fix immer reducer

* fix: merge with master

* refactor: support explore dataMask

* refactor: support explore dataMask

* docs: add comment

* refactor: remove json stringify

* fix: fix failed cases

* feat: filter bat buttons start

* fix: fix CR notes

* fix: fix cascade filters

* fix: fix CR notes

* refactor: add clear all

* fix: fix CR notes

* fix: fix CR notes

* fix: fix CR notes

* feat: buttons in filter bar

* lint: update imports

* feat: add tabs for filter sets

* feat: add buttons to filter set

* feat: first phase add filter sets

* fix: undo FF

* fix: fix CR notes

* fix: fix CR notes

* lint: fix lint

* fix: fix filter bar opening

* refactor: continue filter sets
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.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 dashboard:native-filters Related to the native filters of the Dashboard size/XL 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants