occ upgrade should be more verbose about versions
@joshtrichards is already working on this.
Since Dec 21, 2024.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
Is your feature request related to a problem? Please describe.
When running an upgrade I was stuck with Nextcloud or one of the apps require upgrade... even though I did
perform occ upgrade and even occ maintenance:repair repeatedly. I was unable to figure out what's wrong
because occ didn't give me any information on what apparently needs an upgrade and why.
There was nothing in any of the logs, occ didn't give out any more useful info with -vvv.
Turned out there was a leftover "old.config.php" file in the config dir with an older version set but I only realized
that after I disabled all possible apps and actually took a dive into the code to see how the "update needed"
is triggered.
Describe the solution you'd like
occ upgrade should be more specific about what needs upgrade and why (at least with -v*) , i.e. something like "[app] needs upgrade because installed version is X but the actual version on the filesystem is Y" or "Nextcloud needs upgrade because config says X but we have Y actually installed". If I had seen that the X version is different from what is on the filesystem my debugging path would have been different and probably much shorter.
Describe alternatives you've considered
No alternatives.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.