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: Revert "fix(native-filters): Fix update ownState" #17311

Merged
merged 1 commit into from
Nov 2, 2021

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Nov 1, 2021

Reverts #17181

When deploying this to our environment with filter boxes enabled, it broke applying filters (if you added a filter and clicked apply, it wouldn't fire off new api requests for all the charts dependent on them).

I'm PRing a revert to get attention on this, but also since it's a pretty bad regression for filter box users. We're reverting it internally already to fix the critical bug.

to: @simcha90 @graceguo-supercat @villebro @rusackas

@etr2460 etr2460 changed the title Revert "fix(native-filters): Fix update ownState" fix: Revert "fix(native-filters): Fix update ownState" Nov 1, 2021
@codecov
Copy link

codecov bot commented Nov 1, 2021

Codecov Report

Merging #17311 (1b86b35) into master (a898883) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #17311      +/-   ##
==========================================
- Coverage   77.09%   77.08%   -0.01%     
==========================================
  Files        1037     1037              
  Lines       55647    55625      -22     
  Branches     7608     7605       -3     
==========================================
- Hits        42899    42877      -22     
  Misses      12498    12498              
  Partials      250      250              
Flag Coverage Δ
hive 81.55% <ø> (ø)
javascript 71.23% <100.00%> (-0.03%) ⬇️
mysql 81.97% <ø> (ø)
postgres 81.98% <ø> (ø)
presto 81.84% <ø> (ø)
python 82.48% <ø> (ø)
sqlite 81.66% <ø> (ø)

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

Impacted Files Coverage Δ
...et-frontend/src/dashboard/components/Dashboard.jsx 78.09% <100.00%> (-3.80%) ⬇️

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 a898883...1b86b35. Read the comment docs.

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.

Agree to revert first. @simcha90 When change critical logic like this, please add tests first not revisit:add-tests.

@villebro
Copy link
Member

villebro commented Nov 1, 2021

Apologies for having been part of this regression. It seems we must be missing some fairly critical e2e tests for filter box, I thought there were cypress tests that would have caught a regression like this?

@graceguo-supercat
Copy link

graceguo-supercat commented Nov 1, 2021

It happens for complicated dashboard with tabs and scoped filters: when user apply a filer in the dashboard, it didn't trigger new query any more. i think unit test with complicated dashboard mock data should cover this.

@villebro
Copy link
Member

villebro commented Nov 2, 2021

It happens for complicated dashboard with tabs and scoped filters: when user apply a filer in the dashboard, it didn't trigger new query any more. i think unit test with complicated dashboard mock data should cover this.

@graceguo-supercat I know there's an initiative right now for creating a comprehensive RTL test suite for dashboard filtering (ping @kgabryje ). It would be great if you could share some context on the setup in which this change broke filter boxes so we can add a test case for it.

@kgabryje
Copy link
Member

kgabryje commented Nov 2, 2021

@villebro After some deliberations with Diego, later consulted with Adam, we decided that Cypress is better suited for such tests. That being said, some more context would help us a lot in developing comprehensive test suites

@villebro
Copy link
Member

villebro commented Nov 2, 2021

After some deliberations with Diego, later consulted with Adam, we decided that Cypress is better suited for such tests. That being said, some more context would help us a lot in developing comprehensive test suites

Ok thanks for the info!

@etr2460
Copy link
Member Author

etr2460 commented Nov 2, 2021

I'm going to merge this to unbreak master. We can re PR out the perf improvement without the bugs (and ideally with some tests!)

@etr2460 etr2460 merged commit 7c6d6f4 into master Nov 2, 2021
@sadpandajoe
Copy link
Contributor

🏷️ 2021.44

sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Nov 2, 2021
@eschutho eschutho added the v1.4 label Dec 6, 2021
eschutho pushed a commit that referenced this pull request Dec 6, 2021
AAfghahi pushed a commit that referenced this pull request Jan 10, 2022
@mistercrunch mistercrunch deleted the revert-17181-fix_ownstate branch March 26, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants