villebro opened a new pull request #16290: URL: https://github.com/apache/superset/pull/16290
### SUMMARY Currently Explore doesn't let Admins overwrite a slice if they don't belong to the owners group. This changes this so that admins have the `can_overwrite` property on bootstrap data set to `True` if the user is an owner OR they are an Admin. In addition, the Edit Chart metadata modal is changed so that it is possible to save even if the owner list is empty. This is to align the behavior of the Chart metadata modal with the Dashboard metadata modal. See #15149 for more context on this change. ### AFTER As an admin, the user can now overwrite the chart if they are an Admin:  In addition, the Chart metadata modal is now saveable even if the owners list is empty:  ### BEFORE Currently the overwrite option is disabled for admins that aren't set as owners of a chart:  In addition, the Save button in the Chart metadata modal is disabled when empty:  ### ADDITIONAL INFORMATION <!--- Check any relevant boxes with "x" --> <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue --> - [ ] Has associated issue: - [ ] Required feature flags: - [ ] Changes UI - [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351)) - [ ] Migration is atomic, supports rollback & is backwards-compatible - [ ] Confirm DB migration upgrade and downgrade tested - [ ] Runtime estimates and downtime expectations provided - [ ] Introduces new feature or API - [ ] Removes existing feature or API -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
