-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Stop disabling the theme on app updates! #19271
Comments
Makes sense |
Well - we disable the theme because it can break the installation. Which can also happen with an app upgrade because the theming capabilities allow to overwrite templates of an app. This is a tricky beast. |
in addition this is related to upgrade which will be a major topic for 9.0 -> moving ... |
OK. I think the least the updater could do is to offer to turn the theme back on at the end. If it breaks then, the admin can remove it from the config to fix things. |
The problem might be, that your theme breaks or simply only changes something, you don't see at first view. It's the more important to do it like this, the more and complex the theming is, you use. If upgrade won't reset theme, it would be harder to live this good practise some users even will do without knowing a reason for this - only because they check oc after upgrade and later after that activate their theme. Best way to solve this would be, to only reset theming, if the update/upgrade changed something in the files you themed. So in my point of view, an upgrade should reset the theme, if only because it is to remind you, that you use one and have to check everything VERY well after update/upgrade. -> It's not a bug, it's a feature 😉 |
I think this would be too hard to implement, but I don't know if we can theme specific apps directly from
Yes, but you can do this on the dev instance and then you should be able to update the production one without having to edit the config afterwards. |
So what’s the call on this @PVince81 @DeepDiver1975? |
@phisch likely obsolete. What happens on update when a theme app is enabled ? I guess it stays enabled and is also able to style the update page ? |
@PVince81 The theme app is not loaded during the update screen. Also it is disabled after an update, and must be enabled manually again. Should we improve this? |
Is it disabled as part of the "disable third party apps" logic I guess ? In this case I'd leave this as part of #14754 (comment) or other topics related to apps and updates. |
@PVince81 AFAIK the theme should get disabled after an update, since themes can overwrite templates, and an update could provide new functionality which would be missing if the theme was still enabled. I personally think that the theme should stay active. The owncloud admin should know what he has overwritten in a theme. Also overwriting templates should be rare for a theme. |
I'd expect new functionaly only on major versions, not minor. That's why in that linked ticket I suggested to only disable apps on major updates. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Every time you update an app, you lose the theme. That key needs to be protected when updating apps.
Steps to reproduce
Actual result
Theme is gone ;(
Expected result
Login page looks just like you've designed it.
The text was updated successfully, but these errors were encountered: