Skip to content
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

[Dashboard][Share] Share related links are gone #14251

Closed
3 tasks done
graceguo-supercat opened this issue Apr 20, 2021 · 5 comments
Closed
3 tasks done

[Dashboard][Share] Share related links are gone #14251

graceguo-supercat opened this issue Apr 20, 2021 · 5 comments
Labels
#bug:regression Bugs that are identified as regessions test:case

Comments

@graceguo-supercat
Copy link

graceguo-supercat commented Apr 20, 2021

SHARE links (share url, share in email etc) are hidden in slice header dropdown list in dashboard:

Screenshots

Screen Shot 2021-04-20 at 9 53 47 AM

How to reproduce the bug

  1. Go to any dashboard
  2. Click on dropdown list for any chart
  3. Should be able to share chart by link, by email

Environment

latest master

Checklist

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

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Related to #14076. According to PR’s test description:
check that sharing is menu option is shown by default for Admin/Gamma/Alpha

But admin/alpha/gamma role didn't see share links.

CC @junlincc @zuzana-vej @amitmiran137

@graceguo-supercat graceguo-supercat added #bug Bug report #bug:regression Bugs that are identified as regessions labels Apr 20, 2021
@zuzana-vej zuzana-vej added viz:dashboard:ui and removed #bug Bug report labels Apr 20, 2021
@amitmiran137
Copy link
Member

I'm unable to reproduce the issue
my steps:

  1. make sure/remove from Admin/Alpha/Gamma 2 permissions named:
    a. can share dashboard on superset
    b. can share chart on superset
  2. run superset init
  3. check Admin/Alpha/Gamma and see that the above permission does exist

anyone else able to reproduce?

@graceguo-supercat
Copy link
Author

graceguo-supercat commented Apr 20, 2021

I can reproduce this way:

  • checkout open source master branch,
  • build and compile in your local environment,
  • run superset init, start local server,
  • open any sample dashboard as Admin role.
  • can not share dashboard, can not share chart.

Please make sure when you introduce new permissions, old features are still working. I assume sharing should be allowed by default for Admin/Gamma/Alpha roles.

Does all existed users have to manually add or remove some permission? Could you add new permission to Admin/Gamma/Alpha roles by db migration (if necessary)?

@graceguo-supercat
Copy link
Author

graceguo-supercat commented Apr 21, 2021

Hi @amitmiran137 and @junlincc I found what is wrong here: in airbnb we reverted #13306 and #14148 because of performance downgrade. But actually #14148 fixed a few permission related issues in the original PR #14076...So right now we are running with 14076 without extra permission related fixes. :(

@junlincc
Copy link
Member

@graceguo-supercat gotcha, glad that you found the cause. not sure what's the best way to fix this issue, but this issue will be added to our test case incase it actually happens. closing issue for now since it's not universal.

@jinghua-qa
Copy link
Member

Testcase added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug:regression Bugs that are identified as regessions test:case
Projects
None yet
Development

No branches or pull requests

5 participants