-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Force enable apps #14578
Force enable apps #14578
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The 'download and force enable' is a bit weird. Because it doesn't download. It only force enables., But I'm not a big fan of force enable.. @jancborchardt @karlitschek any suggestions? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Ok this is shaping up. Failing tests need to be fixed. But not today. |
@@ -39,7 +39,7 @@ | |||
use OCP\Util; | |||
|
|||
abstract class Fetcher { | |||
const INVALIDATE_AFTER_SECONDS = 300; | |||
const INVALIDATE_AFTER_SECONDS = 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.
🧐
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 that needs to die
Looks very nice! Only 3 things:
|
True. But out of scope for now. I want this in asap. But will create a ticket.
Again. Will create a ticket
Fair enough. |
359bdd7
to
2cffd5f
Compare
To test my change, set your channel to production in version.php and change
to $data = [
'version' => '16.0.2.1',
'versionstring' => '16.0.0',
'autoupdater' => '1',
'eol' => '0',
'web' => 'https://nextcloud.com',
'url' => 'https://nextcloud.com',
'changes' => '',
];//$this->updater->check(); if you have talk enabled, it will now still tell you that there is no version for 16 in the update-available check. |
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
262aef5
to
942281a
Compare
CI Green: https://drone.nextcloud.com/nextcloud/server/17171. I just rebased to remove the fixups. Lets do this! |
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.
🐘 because I still dont think we should do this
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.
Tested and works 👍
Would not work in a load balanced scenario due to the change to the config.php, but app management doesn't work as expected there anyways.
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 17177: failureTESTS=acceptance, TESTS-ACCEPTANCE=apps
Show full log
|
@MorrisJobke fair point. But yes they have issues with that already indeed. |
But the acceptance tests failed 🙈 |
@MorrisJobke it did at random... but as you can see https://drone.nextcloud.com/nextcloud/server/17171 passed (which is the same code) |
The bundle acceptance tests fails after #14578 sometimes. This is because of a race condition. not all apps have compatible 16 versions yet. So trying to enable them results in those apps doing 💥. Because of #14578 we do show them now. So we try to enable them. However depending on which requests finishes first the disable button for the audit app either shows up or now. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@MorrisJobke yes race condition. Temp disable in #14774 we can revert it once all apps have a 16 version. |
Allow force enabling apps. So if an app is not yet compatible with 15 the admin can force enable it
Frontend behavior:
The list that is fetched from
/settings/apps/list
now for each entry contains aisCompatible
entry. If isCompatible is false. I suggest we clearly highlight this. Grey out? Red. Whatever. But it needs to be visible. Maybe also a badge oir something?If
isCompatible
is false andcanInstall
is false. There should be a button. This should say something likeForce
. This will then show a popup I guess where there is some text. Like 'This app is not marked as compatible with your Nextcloud version. If you continue you will still be able to install the app. Note that the app might not work as expected.' Then if the admin continues a post (with the appId) should be made to/setttings/apps/force
.Then reload the page (This is not the most elegant but will ahve to do for now as you need to reobtain the list of apps).
Now you should be able to just enable your app.
Todo:
Screenshots (button in the right sidebar is the hover state):