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: Filter and Metric popovers not closing after clicking Save #11607

Merged
merged 3 commits into from
Nov 6, 2020

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Nov 6, 2020

SUMMARY

Fixes #11598 and #11608. The issue was that when you opened a popover, didn't make any changes and then clicked save, 'isNew' prop wasn't set to false before sending it to onChange function. Then the component rerendered and isNew was still set to true and popover reopened.
CC: @junlincc

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

ezgif com-gif-maker

TEST PLAN

ADDITIONAL INFORMATION

@kgabryje
Copy link
Member Author

kgabryje commented Nov 6, 2020

@rusackas Can you take a look?

@codecov-io
Copy link

codecov-io commented Nov 6, 2020

Codecov Report

Merging #11607 (615405c) into master (6d5d92a) will decrease coverage by 4.84%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #11607      +/-   ##
==========================================
- Coverage   66.56%   61.72%   -4.85%     
==========================================
  Files         876      878       +2     
  Lines       42172    42264      +92     
  Branches     3949     3948       -1     
==========================================
- Hits        28073    26086    -1987     
- Misses      13996    15996    +2000     
- Partials      103      182      +79     
Flag Coverage Δ
cypress ?
javascript 62.45% <0.00%> (-0.01%) ⬇️
python 61.27% <ø> (-0.88%) ⬇️

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

Impacted Files Coverage Δ
.../src/explore/components/AdhocFilterEditPopover.jsx 58.00% <0.00%> (-18.00%) ⬇️
...ponents/AdhocFilterEditPopoverSimpleTabContent.jsx 68.18% <ø> (-16.51%) ⬇️
.../src/explore/components/AdhocMetricEditPopover.jsx 59.74% <ø> (-7.80%) ⬇️
superset-frontend/src/SqlLab/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/App.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/explore/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/dashboard/index.jsx 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/setup/setupColors.js 0.00% <0.00%> (-100.00%) ⬇️
superset-frontend/src/chart/ChartContainer.jsx 0.00% <0.00%> (-100.00%) ⬇️
... and 190 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 6d5d92a...615405c. Read the comment docs.

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

LGTM! I appreciate the tests!

@rusackas rusackas merged commit a6bf95e into apache:master Nov 6, 2020
@rusackas rusackas linked an issue Nov 6, 2020 that may be closed by this pull request
@ktmud
Copy link
Member

ktmud commented Nov 7, 2020

Thanks for the fix and adding test cases!

@junlincc junlincc added the rush! Requires immediate attention label Nov 10, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
…he#11607)

* Fix filter popover not closing

* Fix metric popover not closing

* Add e2e tests
@junlincc junlincc removed the rush! Requires immediate attention label Mar 18, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.0.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 size/M 🚢 1.0.0
Projects
None yet
6 participants