After upgrade changed name to Superset, existing role's permission names were not changed
Superset version
Previously 0.11.x After upgrade, 0.12.1.0
Expected results
Existing standard roles (Admin, Alpha, Gamma) and custom roles (in our case, Client) would have their names changed from, e.g. "can welcome on Caravel" to "can welcome on Superset" as a part of the migration.
Actual results
No roles' names have changed. We have to manually change the names either one at a time through the UI, or through database queries. Only users with Admin role continued to work. For clients on all other roles, this resulted in ERR_TOO_MANY_REDIRECTS in Chrome, and investigation into the logs to identify this as the source of the issue.
Steps to reproduce
Perform the upgrade.
We ended up having to blow out our database and recreating it. We could not reliably upgrade.
Yeah, would be very nice to have a migration for that
@jasonshah - have u tried superset init ?
@bkyryliuk yes, we followed instructions on the documentation for an upgrade.
superset init should work.
@malleshm I followed the documentation provided for applying an upgrade, so yes, I did run superset init. It still did not migrate the custom roles we have set up. Is it possible superset init failed in the middle of the process and just didn't log anything?
ah, yes - we have 0 control over the custom roles.
I meet the same problem that move the whole virtualenv files with superset-0.15.4 into product cluster's machine for upgrading superset-0.14.1. And i changed the sqlite3 datasource from /home/superset/.superset/superset.db into /root/.superset/superset.db. However, those information of superset changed nothing about USER, ROLE etc, even the UI.
- Expected Result:

- But changed nothing:
@xrmx
@asdf2014 completely unrelated issue, before opening a new issue double check that your config correctly points to the right db and that you are using the correct virtualenv (last time i checked virtualenv were not movable). On top of that running stuff as root is bad.
I see.
-
Config I use the default sqlite path, and i print the value of
SQLALCHEMY_DATABASE_URIis/home/superset/.superset/superset.db.
-
Virtualenv I am afraid I can not agree with your point of view that
virtualenvis not movable. We can move it withvirtualenv --relocatablecommand. -
User I just put it in
/root/superset, but it still belong tosupersetuser.
@xrmx