xavier-GitHub76 opened a new issue, #33272: URL: https://github.com/apache/superset/issues/33272
### Bug description I reopen an issue about deprecated permissions not deleted after upgrade (previous issue : https://github.com/apache/superset/issues/29504) Hello after upgrade, deprecated permissions are not deleted. I use a docker container. At every step, I do : - Run a container, with persistant volume for the database (/app/superset_home) and config (/app/pythonpath) - Execute 'superset db upgrade' - Execute 'superset init' I tried a migration from 1.5.2 to 5.0.0-RC2 directly or by steps (1.5.2 --> 2.0.0 --> 3.0.0 --> 4.0.2 --> 5.0.0-rc2) For the example, we focus on 'can select star on Superset' | Version | Permissions count | 'can select star on Superset' | | --- | --- | --- | | 1.5.2 | 249 | Present | | 2.0.0 | 194 | Not present | | 3.0.0 | 169 | Not present | | 4.0.2 | 167 | Not present | | 5.0.0-RC2 | 160 | Not present | With direct or steps migration, permission count is always increase | Version | Permissions count | 'can select star on Superset' | | --- | --- | --- | | 1.5.2 | 249 | Present | | ↳ 2.0.0 | 251 | Present | | ↳ 3.0.0 | 276 | Present | | ↳ 4.0.2 | 282 | Present | | ↳ 5.0.0-RC2 | 291 | Present | | Version | Permissions count | 'can select star on Superset' | | --- | --- | --- | | 1.5.2 | 249 | Present | | ↳ 5.0.0-RC2 | 286 | Present | In #29504, permissions_cleanup.py is mentionned by dosu but this script is not present in docker container How can I clean deprecated permissions for my container ? Best regards ### Screenshots/recordings _No response_ ### Superset version master / latest-dev ### Python version 3.9 ### Node version 16 ### Browser Chrome ### Additional context _No response_ ### Checklist - [x] I have searched Superset docs and Slack and didn't find a solution to my problem. - [x] I have searched the GitHub issue tracker and didn't find a similar bug report. - [x] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section. -- 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]
