-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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): Filter set history #13529
Conversation
…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
…incubator-superset into filter_bar_actions
…incubator-superset into filter_bar_actions
…incubator-superset into filter_bar_actions
…ctions � Conflicts: � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
� Conflicts: � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
…r-superset into filter_set_design_2
…esign_2 � Conflicts: � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/FilterSets.tsx � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/FiltersHeader.tsx � superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/Footer.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few first pass comments. This PR really makes filter sets come to life, super stoked by this! 🎉
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterBar.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/FilterSets.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
JUst a few nits regarding naming - The code looks great, but if you agree with the fine tuning of the variables I think we can make it slightly easier to approach by other developers.
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterSets/FilterSets.tsx
Outdated
Show resolved
Hide resolved
@@ -66,27 +77,59 @@ type FilterSetsProps = { | |||
const DEFAULT_FILTER_SET_NAME = t('New filter set'); | |||
|
|||
const FilterSets: React.FC<FilterSetsProps> = ({ | |||
currentDataMask, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to have these in the same style; below we have dataMaskApplied
, maybe this could be dataMaskSelected
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not selected it's applied, because it's different
it can be selected but not applied
@simcha90 Thanks so much for the contribution! @amitmiran137 i believe we have cut 1.1 release already. it should make it to the next minor. |
it's still not finished |
1.1 is currently 97 commits/PRs behind master, so it could be quite challenging to cherry this in: https://github.com/apache/superset/tree/1.1 |
* 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 * refactor: continue filter sets * fix: fix CR notes * refactor: header * fix: fix CR notes * fix: fix CR notes * refactor: continue filter sets * lint: fix lint * refactor: continue filter sets * fix: fix filter bar opening * refactor: continue filter sets * refactor: continue filter sets * refactor: continue filter sets * feat: filters sets history * feat: filters sets history * fix: filter set name * refactor: fix expand filters case * fix: fix CR notes * refactor: filter sets * fix: fix CR notes * refactor: filter sets
SUMMARY
This PR add history of saved filter sets according https://www.figma.com/proto/Z75uj6W6n0A6nfK3Mvawqi/Dashboard-Filters---P1?node-id=960%3A2246&scaling=min-zoom
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Screen.Recording.2021-03-09.at.14.58.32.mov
TEST PLAN
ADDITIONAL INFORMATION