New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove old repair steps, add version checks #28902
Comments
AvatarPermissions is actually obsolete since OC 10 because we don't even store avatars in the user's home any more, but in a separate "data/avatars" folder. So fixing the permissions there is pointless... Maybe instead of a version check it could just check if the folder "data/avatars" exist, and if yes, skip the repair. |
I've updated the original post with the full list of repair steps as it exists on master. A lot could be removed as most have already run in OC 8.1/8.2. |
Hey, this issue has been closed because the label |
Review all repair steps and add a version check or a DB flag for those that do not need to run again.
This could help speed up upgrade time by disabling unneeded repair steps.
One example: "Repair\AvatarPermisisons". I believe that there was an older version where the permissions on disk could be messed up. Once fixed it shouldn't try and re-fix it for every update.
Unfortunately this one does some queries on filecache so it might slow down the update a bit.
Note that we do not want to completely delete repair steps because some will be needed when doing cross-major-versions upgrades. So keep them but add a version check or DB flag to make sure it only runs once. (the alternative would be to port them to migrations but that is likely too much work)
Repair steps
Before upgrade repair steps
@DeepDiver1975 @tomneedham @butonic @phisch
The text was updated successfully, but these errors were encountered: