Add maximum.supported.desktop.version#41183
Add maximum.supported.desktop.version#41183flooxo wants to merge 11 commits intonextcloud:masterfrom
maximum.supported.desktop.version#41183Conversation
Signed-off-by: Florian Grabmeier <[email protected]>
Signed-off-by: Florian Grabmeier <[email protected]>
Co-authored-by: Simon L. <[email protected]> Signed-off-by: flox_x <[email protected]> Signed-off-by: Florian Grabmeier <[email protected]>
ba23f6b to
ed0bcc9
Compare
Signed-off-by: flox_x <[email protected]>
|
I hope now it's as intended :) |
| version_compare($versionMatches[1], $minimumSupportedDesktopVersion) === -1 || | ||
| !empty($maximumSupportedDesktopVersion) && | ||
| version_compare($versionMatches[1], $maximumSupportedDesktopVersion) === 1) { |
There was a problem hiding this comment.
Mixing && and || is confusing, can you add parenthesis to isolate the checks?
Or regroup the checks into dedicated variables :)
You can also probably use a crazy versio number as maximum fallback, like
- $maximumSupportedDesktopVersion = $this->config->getSystemValueString('maximum.supported.desktop.version', '');
+ $maximumSupportedDesktopVersion = $this->config->getSystemValueString('maximum.supported.desktop.version', '99.99.99');There was a problem hiding this comment.
I think it will be better with two different error messages if the client is too old or too new.
It will help for debugging and solve the missing parenthesis
|
Moving to a local branch to take over and et this in :) |
|
The backport to # Switch to the target branch and update it
git checkout master
git pull origin master
# Create the new backport branch
git checkout -b backport/41183/master
# Cherry pick the change from the commit sha1 of the change against the default branch
# This might cause conflicts, resolve them
git cherry-pick a0a7ce64 b998f98d ed0bcc96
# Push the cherry pick commit to the remote repository and open a pull request
git push origin backport/41183/masterError: Failed to cherry pick commits: error: no cherry-pick or revert in progress Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports. |
|
alright 😁 |
'maximum.supported.desktop.version'parameter #30143Summary
Add new config parameter
maximum.supported.desktop.version(similar tominimum.supported.desktop.version) in order to prevent sync issues after updates (like nextcloud/desktop#4016 or nextcloud/desktop#5564)Checklist