-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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): drag & drop column select component triggering onChange unnecessarily #16073
Conversation
Codecov Report
@@ Coverage Diff @@
## master #16073 +/- ##
==========================================
- Coverage 76.90% 76.77% -0.13%
==========================================
Files 995 995
Lines 52842 52878 +36
Branches 6709 6720 +11
==========================================
- Hits 40640 40599 -41
- Misses 11976 12053 +77
Partials 226 226
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
/testenv up FEATURE_ENABLE_EXPLORE_DRAG_AND_DROP=true |
@kgabryje Ephemeral environment spinning up at http://34.210.68.147:8080. Credentials are |
superset-frontend/src/explore/components/controls/DndColumnSelectControl/DndColumnSelect.tsx
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.
1 small nit, other than that LGTM
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.
LGTM!
missing image is unrelated, that's cdn.brandfolder.com's problem |
Ephemeral environment shutdown and build artifacts deleted. |
🏷 2021.31 |
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example (cherry picked from commit e6292a8)
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example (cherry picked from commit e6292a8)
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example (cherry picked from commit e6292a8)
… unnecessarily (apache#16073) * fix(explore): avoid sync until after first render * fix example (cherry picked from commit 0a21b6a)
SUMMARY
Fixes #16016
The example had a value for the
granularity_sqla
field that was not found in the dataset. When that happens, the mechanism that is meant to detect changes in dataset thinks that there has been a change. The fix for this is to only begin checking for dataset changes after the first render.AFTER
Chart appears as normal rather than requiring user to click Run.
TESTING INSTRUCTIONS
Open the Calendar Heatmap example chart.
ADDITIONAL INFORMATION