-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: Explore popovers issues #11428
fix: Explore popovers issues #11428
Conversation
@mistercrunch Can you take a look? |
superset-frontend/cypress-base/cypress/integration/explore/control.test.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, but not losing any sleep over it!
Codecov Report
@@ Coverage Diff @@
## master #11428 +/- ##
==========================================
- Coverage 66.59% 56.96% -9.64%
==========================================
Files 863 408 -455
Lines 40986 13656 -27330
Branches 3694 3478 -216
==========================================
- Hits 27295 7779 -19516
+ Misses 13594 5715 -7879
- Partials 97 162 +65
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
2bd75da
to
7ab7a53
Compare
Not sure if it was the original behavior, but while testing this, I noticed that selecting saved metrics (such as |
7ab7a53
to
f7c5c65
Compare
Some unrelated tests are failing. I've reran the tests two times.
|
Seeing that same test causing issues on another PR. We're going to skip it for now in another PR, and then circle back to fix it separately. |
I noticed that the popover for adhoc metrics are not fixed. So I pushed another fix. |
|
||
const SupersetPopover = styled(AntdPopover)``; | ||
const SupersetPopover = AntdPopover; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add it back when we do need overrides.
7d104da
to
24c65b2
Compare
A rebase should fix that failing unit test now. |
24c65b2
to
9dec0bf
Compare
9dec0bf
to
4ecf5ee
Compare
@ktmud Thank you for your fixes! |
* Fix spaces and comas not working in filter popover * Fix popup not opening automatically * Add e2e test * Remove only from test * Remove redundant test, add checking label content * Add comments to e2e test * Fix unit test * Use destructuring * Always open popup for functions and saved metrics, too * Fix popover for adhoc metrics too * Small refactor to consistency * Refactor for consistency * Remove redundant functions * Test fix Co-authored-by: Jesse Yang <jesse.yang@airbnb.com> (cherry picked from commit b2636f0)
* Fix spaces and comas not working in filter popover * Fix popup not opening automatically * Add e2e test * Remove only from test * Remove redundant test, add checking label content * Add comments to e2e test * Fix unit test * Use destructuring * Always open popup for functions and saved metrics, too * Fix popover for adhoc metrics too * Small refactor to consistency * Refactor for consistency * Remove redundant functions * Test fix Co-authored-by: Jesse Yang <jesse.yang@airbnb.com>
SUMMARY
Fixes issues #11388 and #11404.
Changes in
AdhocFilterOption
might be in conflict with #11412 by @mistercrunch - unfortunately it seems that mutating aadhocFilter.isNew
prop is necessary until we do a deeper refactor. Simply making that prop a part of the state leads to various issues regarding auto-opening the popup when new filter is added - particularly when there are multiple unsaved filters.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
As shown on the gif, the popup opens automatically and typing spaces and comas works properly.
TEST PLAN
ADDITIONAL INFORMATION