-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Check for compatible apps from the appstore fails #12358
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
90a35aa
Fix overlapping update button in notifications
MorrisJobke b04a44b
Use the version number when checking the appstore for compatible updates
nickvergessen 03b140c
Improve style of incompatible apps list
MorrisJobke eff7a9c
Adjust unit tests
nickvergessen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,3 +61,7 @@ | |
margin-top: 5px; | ||
width: 300px; | ||
} | ||
|
||
#updatenotification .applist { | ||
margin-bottom: 25px; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,8 +37,10 @@ | |
</ul> | ||
</template> | ||
|
||
<a v-if="updaterEnabled" href="#" class="button" @click="clickUpdaterButton">{{ t('updatenotification', 'Open updater') }}</a> | ||
<a v-if="downloadLink" :href="downloadLink" class="button" :class="{ hidden: !updaterEnabled }">{{ t('updatenotification', 'Download now') }}</a> | ||
<p> | ||
<a v-if="updaterEnabled" href="#" class="button" @click="clickUpdaterButton">{{ t('updatenotification', 'Open updater') }}</a> | ||
<a v-if="downloadLink" :href="downloadLink" class="button" :class="{ hidden: !updaterEnabled }">{{ t('updatenotification', 'Download now') }}</a> | ||
</p> | ||
<div class="whatsNew" v-if="whatsNew"> | ||
<div class="toggleWhatsNew"> | ||
<span v-click-outside="hideMenu" @click="toggleMenu">{{ t('updatenotification', 'What\'s new?') }}</span> | ||
|
@@ -55,8 +57,9 @@ | |
</template> | ||
|
||
<template v-if="!isDefaultUpdateServerURL"> | ||
<br /> | ||
<em>{{ t('updatenotification', 'A non-default update server is in use to be checked for updates:') }} <code>{{updateServerURL}}</code></em> | ||
<p> | ||
<em>{{ t('updatenotification', 'A non-default update server is in use to be checked for updates:') }} <code>{{updateServerURL}}</code></em> | ||
</p> | ||
</template> | ||
</div> | ||
|
||
|
@@ -153,7 +156,7 @@ | |
} | ||
|
||
$.ajax({ | ||
url: OC.linkToOCS('apps/updatenotification/api/v1/applist', 2) + this.newVersionString, | ||
url: OC.linkToOCS('apps/updatenotification/api/v1/applist', 2) + this.newVersion, | ||
type: 'GET', | ||
beforeSend: function (request) { | ||
request.setRequestHeader('Accept', 'application/json'); | ||
|
@@ -193,20 +196,18 @@ | |
return t('updatenotification', 'Checking apps for compatible updates'); | ||
} | ||
|
||
if (this.appstoreDisabled) { | ||
if (this.appStoreDisabled) { | ||
return t('updatenotification', 'Please make sure your config.php does not set <samp>appstoreenabled</samp> to false.'); | ||
} | ||
|
||
if (this.appstoreFailed) { | ||
if (this.appStoreFailed) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Error 2: We checked an undefined argument because of the casing mismatch |
||
return t('updatenotification', 'Could not connect to the appstore or the appstore returned no updates at all. Search manually for updates or make sure your server has access to the internet and can connect to the appstore.'); | ||
} | ||
|
||
return this.missingAppUpdates.length === 0 ? t('updatenotification', '<strong>All</strong> apps have an update for this version available', this) : n('updatenotification', | ||
'<strong>%n</strong> app has no update for this version available', | ||
'<strong>%n</strong> apps have no update for this version available', | ||
this.missingAppUpdates.length, { | ||
version: this.newVersionString | ||
}); | ||
this.missingAppUpdates.length); | ||
}, | ||
|
||
productionInfoString: function() { | ||
|
@@ -310,6 +311,7 @@ | |
// Parse server data | ||
var data = JSON.parse($('#updatenotification').attr('data-json')); | ||
|
||
this.newVersion = data.newVersion; | ||
this.newVersionString = data.newVersionString; | ||
this.lastCheckedDate = data.lastChecked; | ||
this.isUpdateChecked = data.isUpdateChecked; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Error 1: We asked for updates on
applist/Nextcloud 15.0.0 beta1
=> 404There 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.
Error 3: Even if it gives back a 404 it should not say "Yes all fine", but rather "It can't be detected"
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.
Well that is exactly what it does now, after error2 was solved:
Could not connect to the appstore or the appstore returned no updates at all. Search manually for updates or make sure your server has access to the internet and can connect to the appstore.