-
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): add missing GUEST_TOKEN_HEADER_NAME to bootstrap data #28932
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #28932 +/- ##
===========================================
+ Coverage 60.48% 83.66% +23.17%
===========================================
Files 1931 518 -1413
Lines 76236 37463 -38773
Branches 8568 0 -8568
===========================================
- Hits 46114 31344 -14770
+ Misses 28017 6119 -21898
+ Partials 2105 0 -2105
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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. @hexcafe you'll have to run tox -e pre-commit
locally in order to fix the formatting.
Sorry for this oversight, thanks for the fix :) |
@john-bodley @suddjian Thank you for merging this PR. Could we backport this patch to version 4.0? It could be beneficial for future users of version 4.0 who need to embed the dashboard. |
…pache#28932) (cherry picked from commit 4b77191)
SUMMARY
There's a discrepancy between our backend configuration and frontend implementation for GUEST_TOKEN_HEADER_NAME.
We allow customization of GUEST_TOKEN_HEADER_NAME in the backend configuration.
However, this configuration is not being passed to the frontend.
As a result, the ability to customize the header name in the frontend is currently not functional.
superset/superset-frontend/src/embedded/index.tsx
Lines 153 to 159 in bc9eab9
superset/superset/embedded/view.py
Lines 79 to 85 in bc9eab9
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION