Repository navigation
Refresh if maintenance mode is over - #3937
Conversation
|
Also strokes one point of the list of #1140 |
There was a problem hiding this comment.
Will that work on all browsers?
Why not use jquery.ajax?
There was a problem hiding this comment.
What if something's wrong with jquery …
While we're in maintenance everything could go wrong …
Besides: I tested this in Firefox and Chromium. Internet says IE likes it after/with IE7.
There was a problem hiding this comment.
afaik the whole maintenance page is jquery based - right?
There was a problem hiding this comment.
The maintenance page loads all the files that are loaded elsewhere (including jquery), because of initTemplateEngine().
When commenting all the scripts out the maintenance page still works fine. (The non-admin maintenance page, the update page needs jquery afaik).
Having all these "requirements" (if a script is missing addScript() refuses to work) for a "last-stand" isn't really great though.
Edit: If the maintenance page is designed to have jquery I will use it of course, but I'd imagine a maintenance page to have nothing but the are necessities, because things like jquery may miss, or something alike.
|
What is this? It should already refresh automatically: https://github.com/owncloud/core/blob/master/core/js/update.js#L17 |
|
@MTGap I'm talking about the page that only says "ownCloud is in maintenance mode", not the updating-page. |
|
Is that really necessary? You added unnecessary complications. I'm going to say no 👎 |
I have to agree to some extend - what about adding a simple page reload? |
|
Like simply reload after 20 seconds without checking? |
|
👍 |
|
Test passed. |
|
What's the status of this now? |
|
👍 not tested |
|
I'd still vote for a simpler solution as commented above #3937 (comment) Why? Less code to maintain - code which is almost never used 😉 |
|
I agree with @DeepDiver1975 |
|
This way we still tell the user to refresh manually though... |
|
So what’s the call on this? @PVince81 what do you think? |
|
Is this still relevant ? |
|
The page an user sees when owncloud is updating/in maintenance mode, not the "updating" page an admin/the update initiator sees. |
|
So what’s the call on this? I haven’t looked at it but it sounds like it’s a nice addition to not let people waiting. |
There was a problem hiding this comment.
Can we use jquery's $.ajax() instead ? Or is jquery not loaded at this stage ?
|
I'd still vote for a simple page refresh - this is tooo much code throw an issue which is low prio and almost never occurs - please keep in mind: we have to maintain all that code in the upcoming years. Especially code on pages with are not triggered on a day-to-day basis have a high risk of failure. |
|
#3937 (comment) Make up your mind, what do we want exactly? |
|
Simple page refreshes are also more visible to the user that the page is actually doing something. The user may still refresh the page manually if AJAX is doing the checking, unless notices are put on the maintenance page. |
|
@Xenopathic good point, I'll add a notice, if we want the behaviour introduced here Everyone, settle on one please:
|
|
@Kondou-ger your approach is definitely best UX-wise. Maintenance mode is annoying when it occurs, so we should handle that gracefully. |
|
Ping |
|
no longer valid |
|
I don’t get why this is not wanted. After maintenance mode is over, you should automatically be directed to ownCloud again. Manually needing to hit refresh is just tedious. @karlitschek you gave 👍 before but then just closed it. What do you mean by »no longer valid«? |
|
Maybe there was again a confusion between updating with the code and updating with the "updater" app. This happens all the time. As for the updater app itself, which seem to be the question in this issue, I don't really know. I guess it does make sense to also do the redirection at the end. |
|
Ah no, oops. Seems to not even be about the updater app. |
|
So why has this been closed? |
|
It was a misunderstanding. |
|
Feel free to reopen. |
|
@Kondou-ger ok, this needs rebase. Or maybe a fresh start. ;) |
302e21e to
b7e1d62
Compare
|
Why do the unittests fail btw? I've just added 5 lines of php of which: |
|
🚀 Test Passed. 🚀 |
There was a problem hiding this comment.
Too technical. Please use something like "This page will refresh itself when the $cloud instance is available again."
|
@Kondou-ger Please see @LukasReschke Comments |
|
🚀 Test Passed. 🚀 |
|
👍 |
|
squash please |
Using status.php for this. I modified status.php to also show, whether we're in maintenance. Checks every 20 seconds if maintenance is over, if yes: reload.
6f1336d to
69f2c05
Compare
|
A new inspection was created. |
|
🚀 Test Passed. 🚀 |
|
Let's merge this after this long discussion => 👍 |
Refresh if maintenance mode is over
Using status.php for this.
I modified status.php to also show, whether we're in maintenance.
Checks every 20 seconds if maintenance is over, if yes: reload.
@karlitschek @tanghus @Raydiation