You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "raghulprashath (via GitHub)" <gi...@apache.org> on 2023/09/14 17:51:54 UTC
[GitHub] [superset] raghulprashath opened a new issue, #25305: Unable to delete a dashboard ( 3.0.0rc3)
raghulprashath opened a new issue, #25305:
URL: https://github.com/apache/superset/issues/25305
Unable to delete a role-assigned dashboard in 3.0.0rc3
#### How to reproduce the bug
1. Create a custom role with CRUD dashboard permissions.
2. Make sure the DASHBOARD_RBAC feature is on.
3. Create a dashboard and assign a role to the dashboard.
4. Delete the dashboard - Throws error
### Expected results
The dashboard is to be deleted
### Actual results
This error is thrown:
`sqlalchemy.exc.IntegrityError: (psycopg2.errors.ForeignKeyViolation) update or delete on table "dashboards" violates foreign key constraint "dashboard_roles_dashboard_id_fkey" on table "dashboard_roles"
superset_app
| DETAIL: Key (id)=(1) is still referenced from table "dashboard_roles".`
#### Screenshots
If applicable, add screenshots to help explain your problem.
### Environment
(please complete the following information):
- browser type and version: Chrome (latest version)
- superset version: 3.0.0rc3
- python version: 3.9
- node.js version: 16
- any feature flags active: DASHBOARD_RBAC
### Checklist
Make sure to follow these steps 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.
- [ ] 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
Add any other context about the problem here.
--
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.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
[GitHub] [superset] raghulprashath commented on issue #25305: Unable to delete a dashboard ( 3.0.0rc3)
Posted by "raghulprashath (via GitHub)" <gi...@apache.org>.
raghulprashath commented on issue #25305:
URL: https://github.com/apache/superset/issues/25305#issuecomment-1726980422
Thanks @john-bodley , It worked as expected !
--
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
[GitHub] [superset] michael-s-molina closed issue #25305: Unable to delete a dashboard ( 3.0.0rc3)
Posted by "michael-s-molina (via GitHub)" <gi...@apache.org>.
michael-s-molina closed issue #25305: Unable to delete a dashboard ( 3.0.0rc3)
URL: https://github.com/apache/superset/issues/25305
--
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
[GitHub] [superset] john-bodley commented on issue #25305: Unable to delete a dashboard ( 3.0.0rc3)
Posted by "john-bodley (via GitHub)" <gi...@apache.org>.
john-bodley commented on issue #25305:
URL: https://github.com/apache/superset/issues/25305#issuecomment-1721819595
@raghulprashath per my PR description I'm unsure as to why the referenced existing test didn't capture this. Would you mind manually testing my change to see if it remedies your issue?
--
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