-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(cross-filters): only apply filters if ff is set #13704
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13704 +/- ##
==========================================
- Coverage 77.38% 73.10% -4.28%
==========================================
Files 928 615 -313
Lines 47002 21860 -25142
Branches 5806 5717 -89
==========================================
- Hits 36371 15981 -20390
+ Misses 10488 5736 -4752
Partials 143 143
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
if (cur?.type === CHART_TYPE && currentChartId !== cur?.meta?.chartId) { | ||
return [...new Set([...acc, ...cur?.parents, cur.id])]; | ||
const { id, parents = [], type, meta } = cur; | ||
if (type === CHART_TYPE && currentChartId !== meta?.chartId) { | ||
return [...new Set([...acc, ...parents, id])]; |
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.
This raised an error when the metadata was malformed (cur.parents
was missing)
* fix(cross-filters): only apply filters if ff is set * fix missing parent
SUMMARY
Currently charts that emit cross filtering events will apply to the dashboard even if the feature flag isn't set. This PR makes sure that the
dataMask
object doesn't contain any properties that haven't been explicitly enabled. Note thatownFilters
is passed through irrespective of either theDASHBOARD_NATIVE_FILTERS
orDASHBOARD_CROSS_FILTERS
being set.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION