-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
feat(can_share): can share chart and dashboard #14076
Conversation
share dashboard can_share_dashboard
Codecov Report
@@ Coverage Diff @@
## master #14076 +/- ##
==========================================
+ Coverage 78.25% 79.57% +1.31%
==========================================
Files 942 943 +1
Lines 47675 47768 +93
Branches 5977 6029 +52
==========================================
+ Hits 37306 38009 +703
+ Misses 10215 9638 -577
+ Partials 154 121 -33
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one question, otherwise i think this makes sense. I'll defer to @dpgaspar or someone more familiar with FAB permissions to stamp though
superset-frontend/src/dashboard/components/SliceHeaderControls/index.jsx
Outdated
Show resolved
Hide resolved
* master: fix: unable to apply logging format (#14074) refactor: Bootstrap to AntD - Slider (#13989) chore(spa refactor): refactoring dashboard to use api's instead of bootstrapdata (#13306) fix(listview): update listview feature flag (#13906) Add docs for configuring Docker Compose setup (#13961) feat: invalid password error message (Postgres) (#14038) fix: flacky test in test_update_dataset_item_w_override_columns (#14082) feat: Implement Celery SoftTimeLimit handling (#13740) feat: only send alert error emails to owners of the alert (#13862) feat: add descriptions to report emails (#13827) Make chart exclude itself from cross filtering (#14046) fix: fix bug when remove chart not removing it's related cross filter data (#14081) feat(native-filters): Add default first value to select filter (#13726) feat: Make async query JWT cookie domain configurable (#14007) fix: add exception to catch session not having JWT (#14036) # Conflicts: # superset-frontend/src/dashboard/actions/hydrate.js # superset/views/core.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM,
Assuming that this is a frontend only permission stored on the server. We are not actually preventing user's from accessing the functionality just hiding it.
This PR caused SHARE links (share url, share in email etc) are hidden in dashboard. @amitmiran137 @dpgaspar |
If you run superset init I believe it will create by default the missing permission to Admin/Alpha/Gamma For the rest of your roles you should add the permission manually |
For backward compatibility you could create a migration that associate the permission to all existing roles |
@amitmiran137 was there a db migration made in this PR? |
No migration were need bc the PR made sure that those 2 new permission are added by default once you run Superset init |
* feat: share chart - can_share_chart share dashboard can_share_dashboard * fix: pre-commit * fix: userCanShare tests * fix: after hugh CR * fix: adjust after spa refactor
* feat: share chart - can_share_chart share dashboard can_share_dashboard * fix: pre-commit * fix: userCanShare tests * fix: after hugh CR * fix: adjust after spa refactor
SUMMARY
As all things are so should sharing be a managed under a permission the user entitles to.
can_share_dashboard and can_share_chart are the new permissions .
both hide/show
ShareMenuItems
component on the dashboard/chart menusBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
can_share.mov
TEST PLAN
ADDITIONAL INFORMATION