Skip to content

fix: extra query in Dashboard when native filter enabled#14770

Merged
zhaoyongjie merged 1 commit into
apache:masterfrom
zhaoyongjie:fix_extra_query
May 24, 2021
Merged

fix: extra query in Dashboard when native filter enabled#14770
zhaoyongjie merged 1 commit into
apache:masterfrom
zhaoyongjie:fix_extra_query

Conversation

@zhaoyongjie
Copy link
Copy Markdown
Member

@zhaoyongjie zhaoyongjie commented May 23, 2021

SUMMARY

fix extra query in Dashboard when native filter enabled and Apply changes instantly setting up.

closes: #14706

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

May-24-2021.02-30-09.mp4

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

if (filter.isInstant || children.length > 0) {
// force instant updating on initialization or for parent filters when dataMaskSelected has filter
if (
dataMaskSelected[filter.id] &&
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ensure that DataMaskSelected contains the filter, rather than the initial object(empty object).

@codecov
Copy link
Copy Markdown

codecov Bot commented May 23, 2021

Codecov Report

Merging #14770 (8e19af0) into master (9e13476) will increase coverage by 0.00%.
The diff coverage is 83.05%.

❗ Current head 8e19af0 differs from pull request most recent head 40d0d71. Consider uploading reports for the commit 40d0d71 to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##           master   #14770   +/-   ##
=======================================
  Coverage   77.62%   77.63%           
=======================================
  Files         962      962           
  Lines       49026    49080   +54     
  Branches     6155     6157    +2     
=======================================
+ Hits        38057    38101   +44     
- Misses      10765    10775   +10     
  Partials      204      204           
Flag Coverage Δ
javascript 72.42% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset/models/core.py 89.97% <ø> (ø)
superset/databases/commands/validate.py 75.00% <66.66%> (-1.00%) ⬇️
superset/db_engine_specs/bigquery.py 90.83% <76.47%> (-5.04%) ⬇️
...board/components/nativeFilters/FilterBar/index.tsx 100.00% <100.00%> (ø)
superset/databases/api.py 92.39% <100.00%> (-0.03%) ⬇️
superset/databases/schemas.py 99.57% <100.00%> (+0.02%) ⬆️
superset/db_engine_specs/base.py 88.30% <100.00%> (ø)

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 9e13476...40d0d71. Read the comment docs.

Copy link
Copy Markdown
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.

LGTM and tested to work well!

@zhaoyongjie zhaoyongjie merged commit 8484ee6 into apache:master May 24, 2021
@junlincc junlincc added bash! dashboard:native-filters Related to the native filters of the Dashboard and removed bash! labels May 24, 2021
amitmiran137 pushed a commit to nielsen-oss/superset that referenced this pull request May 25, 2021
* master: (163 commits)
  fix(native-filters): Manage default value of filters by superset (apache#14785)
  fix: Additional ResultSet tests (apache#14741)
  chore: added BasicParametersMixin to Redshift (apache#14752)
  fix: make dataset list sort case insensitive (apache#14528)
  fix: use encodeURIComponent when getting table metadata (apache#14790)
  fix: ensure engine is outside parameters (apache#14787)
  database modal should close on connect with tab layout (apache#14771)
  feat(native-filters): add search all filter options (apache#14710)
  fix: extra query in Dashboard when native filter enabled (apache#14770)
  chore: Improves the native filters UI/UX - iteration 2 (apache#14753)
  fix(native filters): Fix explore state (apache#14779)
  fix(explore): DndColumnSelect not handling controls with "multi: false" (apache#14737)
  feat: Create BigQuery Parameters for DatabaseModal (apache#14721)
  feat: enable user impersonation in GSheets (apache#14767)
  fix: add DB should not say it's Postgres (apache#14766)
  Revert "fix(dashboard): multiple query trigger when native filter enabled (apache#14734)" (apache#14762)
  feat: save database with new dynamic form (apache#14583)
  fix: save non-parameter DBs (apache#14759)
  chore: Removes ColorSchemeControl.less (apache#14199)
  fix(explore): Icons width (apache#14717)
  ...
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 First shipped in 1.3.0 labels Mar 12, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
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/XS 🚢 1.3.0 First shipped in 1.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[native filter] Instant filter component will generate 2x more fetch

4 participants