-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Show EOL warning in the update section #8821
Conversation
37573c0
to
7c37fe8
Compare
@@ -49,6 +49,7 @@ public function getUpdateState(): array { | |||
$result['updateAvailable'] = true; | |||
$result['updateVersion'] = $data['versionstring']; | |||
$result['updaterEnabled'] = $data['autoupdater'] === '1'; | |||
$result['versionIsEol'] = $data['eol'] === '1'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this also work if eol
is not set? (just asking for old updater servers ;))
Just one question: we only show this warning if the updater server actually returns something. So we need to return a response with EOL for every old release right? That also means we should ship the EoL flag for an instance on 11.0.8, that gets a response with 12.0.5, right? So we response with EoL based on the source version and not the destination version. Just want to check back on this here. |
7c37fe8
to
954d5c8
Compare
Codecov Report
@@ Coverage Diff @@
## master #8821 +/- ##
============================================
- Coverage 51.9% 51.89% -0.02%
+ Complexity 25272 25270 -2
============================================
Files 1604 1605 +1
Lines 94769 94777 +8
Branches 1377 1377
============================================
- Hits 49194 49182 -12
- Misses 45575 45595 +20
|
@@ -98,6 +98,7 @@ public function check() { | |||
$tmp['url'] = (string)$data->url; | |||
$tmp['web'] = (string)$data->web; | |||
$tmp['autoupdater'] = (string)$data->autoupdater; | |||
$tmp['eol'] = isset($data->eol) ? (string)$data->eol : '0'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MorrisJobke isset check for old servers is here
Yes, that's what I did on the updater server 👍 |
@nickvergessen Failing unit tests |
954d5c8
to
aebe631
Compare
Conflict |
Signed-off-by: Joas Schilling <coding@schilljs.com>
aebe631
to
ec1e039
Compare
rebased |
Should we backport this to 11? @MorrisJobke your call. |
11 would not make sense, because there will be no future 11 release ;) But 12 and 13 would be nice |
Ref: nextcloud-releases/updater_server#109