xavier-GitHub76 opened a new issue, #29504:
URL: https://github.com/apache/superset/issues/29504

   ### Bug description
   
   Hello
   
   after upgrade, deprecated permissions are not deleted.
   It's maybe normal (a downgrade is possible) but how clean deprecated 
permissions ?
   
   ### How to reproduce the bug
   
   'can select star on Superset' is a deprecated permission.
   
   I install an old version (1.5.2)
   
![image](https://github.com/apache/superset/assets/82046143/4674e0cc-a6d6-427f-999b-b3d127018cd5)
   
   I create a role with 'can select star on Superset' permission
   
![image](https://github.com/apache/superset/assets/82046143/86ba6f32-6aa3-451e-b569-771466935a00)
   
   I create an user with the role
   
![image](https://github.com/apache/superset/assets/82046143/16bac779-0cfb-4e3a-8f85-3ee2e81cf5a4)
   
   I stop my superset (I work with docker compose)
   I upgrade to 4.0.2
   I run superset db upgrade
   I run superset db init
   I restart superset
   
   The upgrade is done
   
![image](https://github.com/apache/superset/assets/82046143/04064c83-5eb5-4d5e-81f6-39eb32e20ff5)
   
   The role have the deprecated permission
   
![image](https://github.com/apache/superset/assets/82046143/cfc5f7c7-ee90-41ba-8947-eed24b5a2dae)
   
   It's possible to create a new role with the deprecated permission
   
![image](https://github.com/apache/superset/assets/82046143/063aa32e-d377-4216-8544-85a33424c56e)
   
   I count the permission in the 'ab_permission' table : 
   - 72 for a version 4.0.2 from scratch
   - 112 for the version 1.5.2 upgraded to  4.0.2
   
   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
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [ ] 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]

Reply via email to