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

Inject the repair job only once #26834

Merged
merged 1 commit into from May 19, 2021
Merged

Inject the repair job only once #26834

merged 1 commit into from May 19, 2021

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Apr 29, 2021

Since we backproted we should do a better check. Else we run the code
again for everybody upgrading to 22.

Signed-off-by: Roeland Jago Douma roeland@famdouma.nl

Since we backproted we should do a better check. Else we run the code
again for everybody upgrading to 22.

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer rullzer added enhancement 3. to review Waiting for reviews labels Apr 29, 2021
@rullzer rullzer added this to the Nextcloud 22 milestone Apr 29, 2021
@@ -53,7 +53,8 @@ private function shouldRun(): bool {
$versionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0.0');

// was added to 22.0.0.3
return version_compare($versionFromBeforeUpdate, '22.0.0.3', '<');
return version_compare($versionFromBeforeUpdate, '22.0.0.3', '<') &&
version_compare($versionFromBeforeUpdate, '22.0.0.0', '>=');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but then it wont run on any instance tha updates from 21?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. It should contain as well the versions before the last patch version of 21 to cover those cases as well. 👍

@MorrisJobke MorrisJobke added 2. developing Work in progress and removed 3. to review Waiting for reviews labels May 19, 2021
@nickvergessen nickvergessen merged commit b89f4b3 into master May 19, 2021
@nickvergessen nickvergessen deleted the enh/only_run_once branch May 19, 2021 07:51
@MorrisJobke
Copy link
Member

Ummm the commend wasn't addressed :/

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

Successfully merging this pull request may close these issues.

None yet

4 participants