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

fix: improve wording of occ:upgrade command when no upgrade is required #49914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

icewind1991
Copy link
Member

The current wording can be confusing as it implies that the instance is on the most up to date version. While it only means that the upgrade isn't required.

@icewind1991 icewind1991 added the 3. to review Waiting for reviews label Dec 18, 2024
@icewind1991 icewind1991 added this to the Nextcloud 31 milestone Dec 18, 2024
@icewind1991 icewind1991 requested review from a team, provokateurin, sorbaugh and come-nc and removed request for a team December 18, 2024 14:53
$output->writeln('<info>Nextcloud is already latest version</info>');
$output->writeln('<info>No upgrade required.</info>');
$output->writeln("");
$output->writeln('Note that this command only performs the upgrade to the new version after the new sources have been installed');
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$output->writeln('Note that this command only performs the upgrade to the new version after the new sources have been installed');
$output->writeln('Note: This command only upgrades to a new version if the installation files for a new release have already been deployed.');

@joshtrichards
Copy link
Member

Thanks for doing this.

Coincidentally I was just looking at the counterpart of this in the built-in updater the other day: if occ upgrade (or equivalent) hasn't been triggered after a code deployment, it'll state the currently deployed version is 30.0.4 then offer to download and deploy 30.0.4:

https://github.com/nextcloud/updater/blob/e73aa39fff1d3a9ebaf40746a9de093392a5f743/lib/Updater.php#L119-L131

I'll see about making a similar improvement over there.

Addressing these seemingly little usability paper cuts improves the overall Nextcloud experience. Always a good thing. :-)

@joshtrichards joshtrichards added the papercut Annoying recurring issue with possibly simple fix. label Dec 21, 2024
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 feature: install and update papercut Annoying recurring issue with possibly simple fix.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants