-
Notifications
You must be signed in to change notification settings - Fork 2.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
Display app names in update page for app updates #17434
Conversation
|
|
Setting to "To review" because I'd like to get comments 😄 |
Fixes #17437 too, @jancborchardt |
@jancborchardt I'll revert and fix separately, it's a different piece of code. |
0c3c984
to
e2d100e
Compare
Ok looks like nobody objected the last 1.5 months so I'll keep these methods static. Time for unit tests then. |
Regarding the static methods. I don't think app devs would have a use for it, unless they write an app manager? Regarding the design, I think it would be nice if apps could be shown using bullet points. It makes it clearer what is info-text and what is an app. |
I checked the code and remembered why I can't move them easily to the app manager: the app manager is missing methods like "isAppCompatible" and "shouldUpgrade". I don't think we want these on the app manager either. For the bullet points I'll let @jancborchardt decide. |
Ah, yes, that needs fixing as well because it only shows the folder name iirc. |
@oparoz please raise another ticket for that. Thanks. |
Whenever the update page is displayed for apps, show app names instead of the core update text.
e2d100e
to
b919ae9
Compare
Done. I moved Please review @icewind1991 @nickvergessen @MorrisJobke @Xenopathic @oparoz |
@@ -1,7 +1,20 @@ | |||
<div class="update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>"> | |||
<div class="updateOverview"> | |||
<?php if ($_['isAppsOnlyUpgrade']) { ?> |
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.
Do app upgrades not occur at the same time as core upgrades? If they do, then we should surely display 'The following apps will be updated' alongside 'ownCloud will be updated'?
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.
As far as I can tell (without doing an actual upgrade), we will see:
ownCloud will be updated to version x
External file storage (files_external)
My awesome app (xenopathic_is_awesome)
IMHO we still need to display 'The following apps will be updated' under 'ownCloud will be updated'
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.
Yeah, I also thought about this.
I'll try and add them to both pages.
|
|
I agree with @oparoz that it would be nicer to use a list to show the apps. That way they are easily readable and also not center-aligned. |
It is already a ul/li list, so I'll switch its CSS style to use bullets instead.
|
Apps to update and to disable will always be shown. Main title changes only when apps need updated, not core. Added bullet style. Exclude incompatible apps from updated apps list.
A new inspection was created. |
I'm not 100% sure on the 'Apps update required' wording, but I can't think of any alternatives, and the code looks good 👍 |
|
@MorrisJobke they are listed after the update. Something to be done separately because it might require changing things in the update order. |
Note: the original purpose of this PR is to solve the confusion that people have between core update and app update ("why does my ownCloud suddenly wants to update again ?") |
Then it is working just fine 👍 |
Display app names in update page for app updates
@@ -1,12 +1,26 @@ | |||
<div class="update" data-productname="<?php p($_['productName']) ?>" data-version="<?php p($_['version']) ?>"> | |||
<div class="updateOverview"> | |||
<?php if ($_['isAppsOnlyUpgrade']) { ?> | |||
<h2 class="title bold"><?php p($l->t('Apps update required.')); ?></h2> |
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.
This should say »App update required« (App without s, no dot at the end.)
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.
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.
Pull request at #18453
Whenever the update page is displayed for apps, show app names instead
of the core update text.
Fixes #16272
getIncompatibleApps
andgetAppsNeedingUpgrade
to theIAppManager
interface ? I'd rather keep them private but "apps.php" is horribly static... @icewind1991 @MorrisJobke @nickvergessen @oparoz what do you think ?