Skip to content
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

[Discussion] Apps do not update during core upgrade process if they are not enable. #422

Open
davitol opened this issue Nov 28, 2018 · 7 comments
Milestone

Comments

@davitol
Copy link

davitol commented Nov 28, 2018

Steps to reproduce

1 . Having an app installed in our server but not enabled. (Disabled in occ app:listsection)
2. run occ upgrade in order to upgrade the server

Expected result

Should disabled apps get updated too or not?

Current result

Apps that are disabled are not updated. If we want to get the apps updated then they should be enabled.

Suggestion

We can change the behavior to upgrade the code but leave the app disabled

@VicDeo @PVince81 @pmaier1 @IljaN

@IljaN
Copy link
Member

IljaN commented Nov 28, 2018

Does the app need to be enabled if there are migrations which are part of the update?

@VicDeo
Copy link
Member

VicDeo commented Nov 28, 2018

imho: disabled = unused so no action is needed.

@IljaN
Copy link
Member

IljaN commented Nov 28, 2018

imho: disabled = unused so no action is needed

What happens if the core gets updated past the min/max constraint of the disabled app? If admin suddenly decides he wants to use this app he can not re-enable it for a update?

@VicDeo
Copy link
Member

VicDeo commented Nov 28, 2018

@IljaN then he needs to run
occ market:upgrade appid
occ app:enable appid

or to take the same actions via the market web UI

@pmaier1
Copy link
Contributor

pmaier1 commented Nov 28, 2018

Intuitively I would want disabled apps to be upgraded as well (e.g. security fixes) as they are still installed, just not in use. When the admin activates them again (which is the purpose of disabling an app) it would be good to have the current version (currently admins probably won't even notice when this is not the case). When admins don't want to have apps anymore, they should uninstall them.

Opinion @PVince81 ?

@PVince81
Copy link
Contributor

yeah, I'd also prefer that as it's more intuitive than expecting admins to remember to update the app with "occ market:upgrade" first. if we were to show a warning, not sure where and how.
I don't think we'd want to have "occ app:enable X" to a marketplace check and say "oh by the way, the app you enabled is outdated, you should consider updating" as it's already too late.

@davitol davitol added this to the QA milestone Nov 29, 2018
@PVince81 PVince81 modified the milestones: QA, backlog Nov 29, 2018
@cdamken
Copy link

cdamken commented Feb 8, 2019

We should add a flag in the case that you don't want to upgrade the app while enabling it:

example

occ app:enable bookmarks --do-not-upgrade

in case that is the version you already tested in your staging system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants