apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.63k stars 13.82k forks source link

[dashboard] [explore] Improve UI and User permissions #15391

Open duynguyenhoang opened 3 years ago

duynguyenhoang commented 3 years ago

There is in consistence Permissions UI between Dashboard and Explore. This issue is the next attempt after https://github.com/apache/superset/issues/13711

Expected results

Actual results

These icons/menus are shown but when we click, error returns because of permission

Screenshots

If applicable, add screenshots to help explain your problem.

How to reproduce the bug

  1. Create a new user
  2. Create new roles, each permission is a new role
    • can_favstar
    • can shortner
    • can_share_chart
    • can_sqllab
    • can_write Chart
    • can_explore (To go to explore page)
    • Allow to read dashboard/slice
  3. Assign: explore and read dashboard only to user
  4. You still can see
    • fave star icon on Dashboard page, but when you click it there is an error appear
    • fave star icon on Explore page, but when you click it there is an error appear
    • Share/Embed/Email icons show, but there is error when it is clicked.
    • Edit Properties menu show, but user cannot change it
    • SQL Lab menu appears, but user cannot go to that page.

Environment

Checklist

Make sure to follow these steps before submitting your issue - thank you!

duynguyenhoang commented 3 years ago

I am working with this issue right now, it takes me a while to update some unit tests.

stale[bot] commented 2 years ago

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.

rusackas commented 9 months ago

Hi @duynguyenhoang - I'm trying to tidy up some old Issues and PRs. It sounds like there's a PR for this, but I'm not sure which one it is. Please advise if this is fixed and can be closed, or if there's a PR that needs to be followed up on. I was looking at your older PRs and saw you've had a lot of impact on the repo. Thanks for these contributions!

miguel-ch commented 8 months ago

@rusackas Hi there, it seems that this still not fixed, as in embedded dashboard we have the same result, not sure if there was a PR for this

rusackas commented 4 months ago

Not sure if anyone here has any intent to work on this. If not, it will be closed as stale before long.

rusackas commented 4 months ago

Hah, I didn't mean to close it right then 😅 . Reopening for now.