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): apply scoping of native filters to dashboard #12716

Merged
merged 9 commits into from
Jan 26, 2021

Conversation

simcha90
Copy link
Contributor

@simcha90 simcha90 commented Jan 24, 2021

SUMMARY

This PR apply scoping of native filters on dashboard charts according next rules:

  1. It gets active native filters scopes per chart and add them to existing logic of filter_box logic to reload appropriate charts
  2. It updates logic of adding extra form data according applied filter scopes
  3. It updates some redux stuff for native filters to correct apply new native filters state

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Screen.Recording.2021-01-24.at.16.30.59.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

@codecov-io
Copy link

codecov-io commented Jan 24, 2021

Codecov Report

Merging #12716 (ca63374) into master (9e58eb8) will decrease coverage by 3.19%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12716      +/-   ##
==========================================
- Coverage   66.73%   63.54%   -3.20%     
==========================================
  Files        1021      488     -533     
  Lines       49967    30104   -19863     
  Branches     4890        0    -4890     
==========================================
- Hits        33347    19130   -14217     
+ Misses      16491    10974    -5517     
+ Partials      129        0     -129     
Flag Coverage Δ
cypress ?
javascript ?
python 63.54% <ø> (-0.45%) ⬇️

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

Impacted Files Coverage Δ
superset/db_engines/hive.py 0.00% <0.00%> (-85.72%) ⬇️
superset/db_engine_specs/hive.py 54.61% <0.00%> (-29.24%) ⬇️
superset/db_engine_specs/presto.py 81.38% <0.00%> (-6.71%) ⬇️
superset/views/database/mixins.py 80.70% <0.00%> (-1.76%) ⬇️
superset/models/core.py 88.04% <0.00%> (-0.82%) ⬇️
...hboard/util/getChartAndLabelComponentIdFromPath.js
...terControl/AdhocFilterEditPopoverSqlTabContent.jsx
...perset-frontend/src/utils/DebouncedMessageQueue.js
...nd/src/views/CRUD/data/query/QueryPreviewModal.tsx
...ashboard/components/gridComponents/ChartHolder.jsx
... and 523 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 9e58eb8...ca63374. Read the comment docs.

@simcha90 simcha90 changed the title feat(native-filters): scoping native filters in dashboard feat(native-filters): apply scoping of native filters to dashboard Jan 24, 2021
@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label Jan 24, 2021
@junlincc
Copy link
Member

junlincc commented Jan 24, 2021

Thanks for the PRs of native dashboard filter, Simcha! 🙏

@agatapst please help review Simcha's PRs(this one and cross-filtering). Thanks!

@simcha90 simcha90 closed this Jan 24, 2021
@simcha90 simcha90 reopened this Jan 24, 2021
@simcha90 simcha90 closed this Jan 24, 2021
@simcha90 simcha90 reopened this Jan 24, 2021
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.

Superb stuff! First pass comments, but looks really nice and removes some ugly duct tape from Dashboard.jsx bringing this one step close to production grade 🎉

@simcha90
Copy link
Contributor Author

@villebro fixed notes

@agatapst
Copy link
Contributor

agatapst commented Jan 25, 2021

LGTM, nice work!
Just a small suggestion below.

@villebro villebro merged commit 4d04565 into apache:master Jan 26, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request Jan 26, 2021
* master: (52 commits)
  docs: Updates to Superset Site for 1.0 (apache#12626)
  test(native-filters): scoping tree in native filters modal (apache#12655)
  Fix tests errors and warnings - iteration 3 (apache#12212) (apache#12219)
  Fix tests errors and warnings - iteration 5 (apache#12212) (apache#12224)
  Fix tests errors and warnings - iteration 6 (apache#12212) (apache#12227)
  feat(native-filters): apply scoping of native filters to dashboard (apache#12716)
  Fix tests errors and warnings - iteration 4 (apache#12212) (apache#12223)
  Fix tests errors and warnings - iteration 7 (apache#12212) (apache#12245)
  fix: missing select menu background (apache#12759)
  fix(explore): incorrect missing datasource condition (apache#12758)
  feat: default timepicker to last week when dataset is changed (apache#12609)
  feat(explore): allow opening charts with missing dataset (apache#12705)
  chore: upgrade Cypress to 6.2.1 (apache#12605)
  refactor(explore): Enhance Dataset and Control panel Collapse components (apache#12218)
  feat: Adding option to set_database_uri CLI command (apache#12740)
  docs: Fixed typo on line 348 (apache#12739)
  Fix tests errors and warnings - iteration 2 (apache#12212) (apache#12214)
  docs: Remove gatsby-plugin-offline (apache#12693)
  test: oracle engine spec (apache#12615)
  test: hive db engine spec (apache#12520)
  ...
@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.

6 participants