Still fetching fav-star data when no user is logged in
By giving the permissions:
- can dashboard on Superset
- can csrf token on Superset
- can explore json on Superset
- can list on CssTemplateAsyncModelView
- all datasource access on all_datasource_access
to the public role, any non logged in user can explore any dashboard. However, even with no user logged in, frontend app still tries to fetch the favorite status of the current dashboard.
Expected results
Verify if a user is logged in and only if it is then fetch the favorite status of the current dashboard.
Actual results
The favorite status of the current dashboard is always fetched
Screenshots

How to reproduce the bug
- Give the permissions mentioned on the beggining of the issue to the public role
- Log out
- Go to the url of any dashboard
- See toast and fav-start still showing
Environment
- using docker on commit [SIP-15] Updating ISO 8601 regex match to make time optional (#8494)
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- [X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [X] I have reproduced the issue with at least the latest released version of superset.
- [X] I have checked the issue tracker for the same issue and I haven't found one similar.
Additional context
Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.82. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.
Fixed with #8527
Hello. the bug started playing again after changes in April 2021
Hey, same issue here.. it's happening again !
Found the source of the new bug
The code shows this line. The variable dashboardInfo.userId is a valid string so react renders the FaveStar component.

Don't know who to tag, so I will tag the ones that reviewed the PR that fixed the previous version of this bug @etr2460 @nytai
Any idea
Found the source of the new bug The code shows this line. The variable
dashboardInfo.userIdis a valid string so react renders the FaveStar component.
Don't know who to tag, so I will tag the ones that reviewed the PR that fixed the previous version of this bug @etr2460 @nytai
Any idea when this can be fixed? Kind of annoying when showing a dashboard to public.
This was fixed by https://github.com/apache/superset/pull/15590
This was fixed by #15590
Thanks a lot! I just pulled the newest docker image and deployed again. I can confirm this bug is gone!