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(native-filters): Filter set tabs #13507

Merged
merged 31 commits into from
Mar 7, 2021
Merged

Conversation

simcha90
Copy link
Contributor

@simcha90 simcha90 commented Mar 7, 2021

SUMMARY

Add filter set tabs according: https://www.figma.com/proto/Z75uj6W6n0A6nfK3Mvawqi/Dashboard-Filters---P1?node-id=960%3A446&scaling=min-zoom

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2021-03-07.at.10.45.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
@simcha90 simcha90 changed the title WIP: feat(native-filters): Filter set tabs feat(native-filters): Filter set tabs Mar 7, 2021
@codecov
Copy link

codecov bot commented Mar 7, 2021

Codecov Report

Merging #13507 (93e5d97) into master (7b370e6) will decrease coverage by 4.06%.
The diff coverage is 41.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13507      +/-   ##
==========================================
- Coverage   77.00%   72.93%   -4.07%     
==========================================
  Files         912      612     -300     
  Lines       46034    21506   -24528     
  Branches     5587     5588       +1     
==========================================
- Hits        35448    15686   -19762     
+ Misses      10455     5688    -4767     
- Partials      131      132       +1     
Flag Coverage Δ
cypress 57.50% <25.53%> (-0.08%) ⬇️
javascript 62.91% <40.00%> (-0.05%) ⬇️
mysql ?
postgres ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
...hboard/components/nativeFilters/FilterBar/state.ts 94.11% <ø> (-0.89%) ⬇️
.../components/nativeFilters/FilterBar/FilterSets.tsx 28.26% <28.26%> (ø)
...d/components/nativeFilters/FilterBar/FilterBar.tsx 93.85% <85.71%> (+11.46%) ⬆️
superset/datasets/commands/create.py
superset/datasets/commands/update.py
superset/charts/commands/update.py
superset/models/user_attributes.py
superset/utils/urls.py
superset/reports/commands/bulk_delete.py
superset/constants.py
... and 295 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 7b370e6...93e5d97. Read the comment docs.

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.

Some comments about naming, other than that looks great!

string | null
>(null);

const takeFiltersSet = (value: string) => {
Copy link
Member

Choose a reason for hiding this comment

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

While we're moving these, it would be nice to rename these to comply with the "Filter set" name instead of "Filters set". In this case, this could be takeFilterSet. Also, "id" might be a more descriptive variable name than "value" here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this function will be moved and renamed in the next PR

<Sets>
<FilterSet>
<StyledTitle>
<div>{t('Choose filters set')}</div>
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be "Choose filter set"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

and same here, because this functionality going to be changed

@villebro villebro merged commit f504b7f into apache:master Mar 7, 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
@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/L 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants