Bug description
Hi, We have users with only the sqllab role, and it appears that when they log in, they are redirected to the main page superset/welcome/. On the main page, we're encountering a JavaScript issue with undefined properties.
Screenshots/recordings
Superset version
master / latest-dev
Python version
I don't know
Node version
I don't know
Browser
Chrome
Additional context
No response
Checklist
- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
Comment From: dosubot[bot]
Hi @othmane-elquarati! I'm Dosu and Iām helping the superset team.
Based on the latest code, the welcome page fetches and displays dashboards, charts, and saved queries according to user permissions. For users with only the sqllab role, some expected data (like dashboards or filters) may be missing, which can lead to JavaScript errors if the frontend tries to read properties from undefined objects. The code does not have explicit handling for the sqllab role, so missing guard clauses or error handling in components like DashboardTable or filter-related UI could cause these issues. Improving frontend checks for undefined data or adding error boundaries around dashboard/filter rendering may help prevent these errors. See the relevant frontend logic for how user data and filters are loaded and rendered: superset-frontend/src/pages/Home/index.tsx.
To reply, just mention @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report š | Other