-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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(CrossFilters): Do not reload unrelated filters in global scope #30252
Conversation
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.
👍🏼
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
@geido Do you have a link for the follow-up that will fix the cross filter issue? |
Still working on it |
@geido I am testing the 4.1 branch and realized that our cross filters are not working anymore. Do I read this PR right in that it would entirely disable cross filtering if the data source is not the same, even if shared columns exist? And that this is fixed, also for columns not actually used in the chart, with: #30438 |
That is a good point @fmannhardt . I updated #30438 to make sure we are targeting all possible common columns in all datasources. Let me know if that makes sense to you now. |
When testing including #30438 I still do not see the chart being refreshed. The query is correct and also when looking at the result table it is correct but the chart visualization itself does not show up refreshed. |
@fmannhardt would you mind providing a test case to reproduce this issue on my side, please? That would help. |
Ok. I will try to provide it. Maybe it had to do with using JINJA templating in a filtering statement. |
I have tried to reproduce with the latest changes on the other PR and the issue is gone. Thanks. |
SUMMARY
This PR partially accounts for the issue reported on #30061. However, more work is required so that when a scope is applied the frontend can check columns / calculated columns across different datasets to see whether the query should be sent over the backend at all. Working on a follow-up PRs that should solve the issue for both native and cross filters.
BEFORE
before.mp4
AFTER
after.mp4
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION