-
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(Embedded): Avoid creating a filter key for guest users #26312
Conversation
@michael-s-molina this is implementing your feedback from #25687. Let me know if you have any concerns or feedback! 🙏 🙇♂️ |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #26312 +/- ##
=======================================
Coverage 69.18% 69.18%
=======================================
Files 1945 1945
Lines 75967 75984 +17
Branches 8467 8476 +9
=======================================
+ Hits 52556 52570 +14
Misses 21224 21224
- Partials 2187 2190 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
superset-frontend/src/dashboard/components/nativeFilters/FilterBar/index.tsx
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
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
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> (cherry picked from commit fe9fbad)
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com> (cherry picked from commit fe9fbad)
…26312) Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
…26312) Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
SUMMARY
Dashboard filter combinations are persisted in Superset through a URL parameter. This functionality is currently not compatible with Embedded (the dashboard doesn't emit a generated filter key up to the application that could be re-used in a refresh) so this PR removes the logic to write a filter key for embedded users.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
No UI changes.
TESTING INSTRUCTIONS
/api/v1/dashboard/{{DashboardID}}/filter_state?tab_id={{TabID}}
isn't being fired.ADDITIONAL INFORMATION