Skip to content

Conversation

@LukasReschke
Copy link
Member

The Nextcloud and ownCloud updaters allow someone to configure a custom release channel, this can then be used to publish different versions. (e.g. one channel stays on 9.x while another one already gets 10.x)

There is however one big problem with it: The value is effectively stored in the app config, which is stored in the database. So to be able to read the update channel a connection to the database is necessary. This is quite error prone and also causes some of the issues in the original ownCloud updater.

This moves the channel registration to the config.php and also includes a repair step.

@MorrisJobke Mind taking a look?

@LukasReschke LukasReschke added the 3. to review Waiting for reviews label Jun 26, 2016
@LukasReschke LukasReschke added this to the Nextcloud 9.0.52 milestone Jun 26, 2016
@LukasReschke
Copy link
Member Author

Usage can be seen at nextcloud/updater#20, with that also daily builds etc. are not a problem anymore

@MorrisJobke
Copy link
Member

Code looks good, haven't tested yet

@MorrisJobke
Copy link
Member

Tested and works 👍

The version number needs to be increased to invoke the repair step, but this will be done during the release anyway ;)

The Nextcloud and ownCloud updaters allow someone to configure a custom release channel, this can then be used to publish different versions. (e.g. one channel stays on 9.x while another one already gets 10.x)

There is however one big problem with it: The value is effectively stored in the app config, which is stored in the database. So to be able to read the update channel a connection to the database is necessary. This is quite error prone and also causes some of the issues in the original ownCloud updater.

This moves the channel registration to the config.php and also includes a repair step.
@MorrisJobke MorrisJobke force-pushed the stable9-channel-should-be-inside-config branch from e7b41be to 9f7141d Compare June 27, 2016 15:13
@MorrisJobke
Copy link
Member

Rebased to resolve a conflict in the config.sample.php

@LukasReschke
Copy link
Member Author

LGTM

@LukasReschke LukasReschke merged commit 95f6dd9 into stable9 Jun 27, 2016
@LukasReschke LukasReschke deleted the stable9-channel-should-be-inside-config branch June 27, 2016 19:20
@MariusBluem
Copy link
Member

MariusBluem commented Jun 27, 2016

Why is self approval working 😱 we have disabled it in LGTM 😕
However: Great work 😅

@LukasReschke

@MorrisJobke
Copy link
Member

Why is self approval working 😱 we have disabled it in LGTM 😕

We have no idea 😕

@MariusBluem
Copy link
Member

I have 😅 #238 @MorrisJobke

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

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants