You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/02/23 11:06:57 UTC

[GitHub] [superset] EBoisseauSierra opened a new issue #18870: Gamma user can attempt to Delete dashboards

EBoisseauSierra opened a new issue #18870:
URL: https://github.com/apache/superset/issues/18870


   A Gamma user isn't allowed to delete a dashboard.
   However, they can still go through the entire Delete process — only for the actual deletion to fail when trying to delete the dashboard for real.
   
   #### How to reproduce the bug
   
   1. Log as a Gamma user,
   2. Go to `/dashboard/list/` or click on the Dashboards menu
   3. Try do delete a single dashboard:
      1. Click on a given dashboard's tile burger menu (the `⋮` button),
      2. Click on “Delete” in the dropdown menu,
      3. Confirm deletion,
      4. … fortunately, an error arise and the deletion doesn't actually happen.
   4. Try to delete multiple dashboards at once:
      1. Click on the “Bulk Select” button,
      2. Select one or multiple dashboard,
      3. Click on the “Delete” button,
      4. Confirm deletion,
      5. … fortunately, an error arise and the deletion doesn't actually happen.
   
   ### Expected results
   
   
   1. Log as a Gamma user,
   2. Go to `/dashboard/list/` or click on the Dashboards menu
   3. Try do delete a single dashboard:
      1. Click on a given dashboard's tile burger menu (the `⋮` button),
      2. **there should be no “Delete” option in the dropdown menu**.
   4. Try to delete multiple dashboards at once:
      1. Click on the “Bulk Select” button,
      2. Select one or multiple dashboard,
      3. **there should not be a “Delete” button.**
   
   ### Actual results
   
   Cf. § How to reproduce the bug
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: not relevant
   - superset version: `1.4.1`
   - python version: `3.7`
   - any feature flags active: not relevant?
   
   ```
   FEATURE_FLAGS ={
       "ALERT_REPORTS": True,
       "DASHBOARD_NATIVE_FILTERS": True,
       "DASHBOARD_RBAC": True,
       "DYNAMIC_PLUGINS": False,
       "LISTVIEWS_DEFAULT_CARD_VIEW": True,
       "ROW_LEVEL_SECURITY": True,
       "THUMBNAILS_SQLA_LISTENERS": True,
       "THUMBNAILS": True,
       "VERSIONED_EXPORT": True,
       "ENABLE_TEMPLATE_PROCESSING": True,
   }
   ```
   
   ### 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.
   - [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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org