Open segundoayllon opened 6 months ago
To address the issue with the "embed dashboard" button not appearing in your Superset instance, let's focus on the most relevant areas for troubleshooting:
Feature Flags and Configuration: Ensure there are no typos or errors in your superset_config.py
and config.py
files regarding the EMBEDDED_SUPERSET
and EMBEDDABLE_CHARTS
flags. These flags should correctly enable the embedding features.
User Permissions: Verify again that the user account has the correct permissions for dashboard embedding. This is crucial for the embed button to be visible.
Frontend Build: If you've modified configuration files after the initial frontend build, you might need to rebuild the frontend assets. Changes in configuration files do not automatically update the frontend, so a rebuild could be necessary.
Version Compatibility and Dependencies: Ensure there are no compatibility issues with Python version 3.10 or Node version 18. Also, check if additional dependencies required for the "embed dashboard" feature are installed and up to date.
Error Logs: Review any error messages in your browser's console or server logs for clues that could indicate what's preventing the embed button from appearing.
By focusing on these areas, you should be able to narrow down the cause of the issue. If after checking these points the problem persists, providing specific error messages or logs could help further diagnose the problem.
To continue the conversation, mention @dosu.
Bug description
My superset instance is installed in a virtual environment (venv) inside WSL in Windows 11. I had the same setup but in a windows 10 machine as a host and didn't have this problem.
I have set the necessary permissions for my user.
I have set the required flags in both my custom superset_config.py file and my default config.py file as:
I have also tried
and it doesn't work. The embed dashboard button isn't visible.
However, the 'share' options for Charts include an 'embed code' button.
All the other configurations specified in the custom superset_config.py files are applied.
How to reproduce the bug
superset run --debugger
.Screenshots/recordings
Superset version
4.0.1
Python version
3.10
Node version
18 or greater
Browser
Chrome
Additional context
My superset_config.py file includes the following flags: EMBEDDED_SUPERSET: True EMBEDDABLE_CHARTS: True PUBLIC_ROLE_LIKE_GAMMA = True PREVIOUS_SECRET_KEY = "xxxxxxxxxxxxxxx" SECRET_KEY = "xxxxxxxxxxxxxxxxxxxxt"
Checklist