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

fix(dashboard): multiple query trigger when native filter enabled #14734

Merged
merged 3 commits into from
May 21, 2021

Conversation

zhaoyongjie
Copy link
Member

SUMMARY

fix multiple query trigger when native filter has default value

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

#14706

After

dashboard.multiple.query.mp4

TEST PLAN

tested in my local

ADDITIONAL INFORMATION

@codecov
Copy link

codecov bot commented May 20, 2021

Codecov Report

Merging #14734 (18cc795) into master (a9d888a) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14734      +/-   ##
==========================================
- Coverage   77.54%   77.54%   -0.01%     
==========================================
  Files         959      960       +1     
  Lines       48696    49128     +432     
  Branches     5743     5902     +159     
==========================================
+ Hits        37762    38094     +332     
- Misses      10733    10832      +99     
- Partials      201      202       +1     
Flag Coverage Δ
javascript 72.60% <100.00%> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
...hboard/components/nativeFilters/FilterBar/state.ts 92.85% <100.00%> (+4.22%) ⬆️
...mponents/controls/AnnotationLayerControl/index.jsx 7.96% <0.00%> (-0.37%) ⬇️
...uperset-frontend/src/components/Form/FormLabel.tsx 68.42% <0.00%> (-0.33%) ⬇️
...eFilters/FiltersConfigModal/FiltersConfigModal.tsx 94.64% <0.00%> (-0.17%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (ø)
superset-frontend/src/components/Form/index.tsx 100.00% <0.00%> (ø)
...end/src/components/Form/LabeledErrorBoundInput.tsx 100.00% <0.00%> (ø)
...-frontend/src/views/CRUD/welcome/ActivityTable.tsx 85.24% <0.00%> (+0.18%) ⬆️
superset-frontend/src/views/CRUD/utils.tsx 59.82% <0.00%> (+1.10%) ⬆️
.../FilterBar/CascadeFilters/CascadePopover/index.tsx 64.78% <0.00%> (+1.40%) ⬆️
... and 4 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 a9d888a...18cc795. Read the comment docs.

@junlincc junlincc added the dashboard:native-filters Related to the native filters of the Dashboard label May 20, 2021
@graceguo-supercat
Copy link

@zhaoyongjie this extra queries issue only happens when filter has Apply changes instantly. Did you test it?

@zhaoyongjie
Copy link
Member Author

@zhaoyongjie this extra queries issue only happens when filter has Apply changes instantly. Did you test it?

the extra queries trigger when the filter has apply changed instantly and do page refresh.

the extra queries do not trigger when append new filter values.

May-21-2021.16-13-38.mp4

Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

LGTM

@graceguo-supercat graceguo-supercat merged commit 88de410 into apache:master May 21, 2021
zhaoyongjie added a commit that referenced this pull request May 22, 2021
zhaoyongjie added a commit that referenced this pull request May 22, 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
…ache#14734)

* fix(dashboard): multiple query trigger when native filter enabled

* fix lint

* wip
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
…ache#14734)

* fix(dashboard): multiple query trigger when native filter enabled

* fix lint

* wip
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
…ache#14734)

* fix(dashboard): multiple query trigger when native filter enabled

* fix lint

* wip
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 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/XS 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants