mtrentz commented on issue #24399: URL: https://github.com/apache/superset/issues/24399#issuecomment-2129004936
To contribute into the SQL solutions here this query adds all admins as owner into all existing charts: ``` INSERT INTO slice_user (user_id, slice_id) SELECT DISTINCT u.user_id, s.id FROM slices s JOIN ab_user_role u ON u.user_id NOT IN (SELECT user_id FROM slice_user WHERE slice_id = s.id) WHERE u.role_id = (SELECT id FROM ab_role WHERE name = 'Admin'); ``` -- 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-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org