You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the webinterface doesn’t poll for changes, except when reloading, changing apps or folders. This can lead to the displayed data being heavily outdated: for example when you have the web app open, sync some files using the desktop client (or the web app open on another computer) these changes do not appear in the originally open web app.
As this is a problem with not only Files but all apps, it should be a core component.
We need to move all display related code to the client/javascript - doing this without a javascript framework is just crazy. Some of us already have good experience in this area.
Would be great to see a rapid prototype on this - maybe the files app would be a great show case.
(rapid prototype means we will throw it away! ;-) )
I have experience with AngularJS and websockets and I can highly recommend it. If people want to, I could provide an example in the advanced example. Im planning on implementing an model parentclass anyway, which does all the caching for you
PS: The linked example broadcasts the received messages, I ran into problems with this approach. I created a publish/subscriber object where the models registerered themselves for certain messages. The websocket then just publishes the messages over that object.
Yes, using websockets looks good.
Maybe use the cache for communicating between different request (webdav->files app). This is already used for the import progress in calendar and contacts
Please keep in mind that websockets are not fully supported by all browsers that we have to support. Another challenge with websockets is that connection to the webserver are keept open which is a problem for the scalability of big installations. so please imlement a config switch in config.php to turn it of optionally
I'm not sure how big that impact will be, in general it will reduce a lot of bandwidth I think, since we dont have to poll every 30-60 seconds. We could also transition gracefully to a fallback if websockets are not supported by having the fallback implement the same interface.
PS: theres a problem with firefox, when you hit ESC it will close the websocket (known, but low priority bug)
If websockets are not supported in a browser – then well, automatic updating simply doesn’t work. That’s ok because currently ownCloud does that in no browser. Plus, this ability should be automatically detected via feature detection and not set by a hard config switch.
Regarding the UI, I'd still vote for simply displaying an orange notification "The contents of the folder has changed, click here to refresh" instead of changing UI elements while the user has their pointer over them.
The problem is that if someone is uploading lots of files, the user in front of the GUI will keep getting that message after every refresh, unless we can get realtime info about the upload and print a "upload in progress" message until we can print "upload completed, you can refresh now".
You mean uploading outside of the web UI ? If uploading in the web UI, we can disable the refresh message and simply update the directory's known etag.
If they're uploading outside of the web UI, for example with the sync client, then they should get the message only once. Then it's their fault if they click it repeatedly 😉
If they're uploading outside of the web UI, for example with the sync client, then they should get the message only once. Then it's their fault if they click it repeatedly 😉
But you'd have to let the user know that new files have been uploaded.
User logs in
Upload starts
Message is shown
User refreshes
Files are still being uploaded, so new files are now hidden until the user hits refresh again
Side note: this is what KDE Dolphin does when new files appear.
This is why I prefer having a simple message "Folder has updated, refresh ?" instead of refreshing instantaneously or periodically and confusing the user:
Hi guys, I implemented this file's polling as a simple plugin, which I've tested and seems to work smooth.
Is that strategy according to the idea that you guys were proposing to that?
Activity
DeepDiver1975 commentedon Dec 21, 2012
FYI:
php web sockets:
http://socketo.me/docs/hello-world
web sockets with angular:
http://www.html5rocks.com/en/tutorials/frameworks/angular-websockets/
DeepDiver1975 commentedon Dec 21, 2012
Why the angular link above?
We need to move all display related code to the client/javascript - doing this without a javascript framework is just crazy. Some of us already have good experience in this area.
Would be great to see a rapid prototype on this - maybe the files app would be a great show case.
(rapid prototype means we will throw it away! ;-) )
jancborchardt commentedon Dec 21, 2012
Calling in @Raydiation and @butonic for Angular.
BernhardPosselt commentedon Dec 21, 2012
I have experience with AngularJS and websockets and I can highly recommend it. If people want to, I could provide an example in the advanced example. Im planning on implementing an model parentclass anyway, which does all the caching for you
PS: The linked example broadcasts the received messages, I ran into problems with this approach. I created a publish/subscriber object where the models registerered themselves for certain messages. The websocket then just publishes the messages over that object.
DeepDiver1975 commentedon Dec 21, 2012
@Raydiation looking forward to see the demo. As stated above files app would be a good candidate.
@bartv2 please share your thoughts on this. THX
bartv2 commentedon Dec 21, 2012
Yes, using websockets looks good.
Maybe use the cache for communicating between different request (webdav->files app). This is already used for the import progress in calendar and contacts
karlitschek commentedon Dec 22, 2012
Please keep in mind that websockets are not fully supported by all browsers that we have to support. Another challenge with websockets is that connection to the webserver are keept open which is a problem for the scalability of big installations. so please imlement a config switch in config.php to turn it of optionally
BernhardPosselt commentedon Dec 22, 2012
I'm not sure how big that impact will be, in general it will reduce a lot of bandwidth I think, since we dont have to poll every 30-60 seconds. We could also transition gracefully to a fallback if websockets are not supported by having the fallback implement the same interface.
PS: theres a problem with firefox, when you hit ESC it will close the websocket (known, but low priority bug)
karlitschek commentedon Dec 22, 2012
Polling is actually something that can be handled well with most server setups. open connections are the problem
jancborchardt commentedon Aug 7, 2013
If websockets are not supported in a browser – then well, automatic updating simply doesn’t work. That’s ok because currently ownCloud does that in no browser. Plus, this ability should be automatically detected via feature detection and not set by a hard config switch.
Postponing to milestone ownCloud 7.
MorrisJobke commentedon Jun 11, 2014
Postponing to milestone ownCloud 8
30 remaining items
oparoz commentedon Feb 12, 2016
The problem is that if someone is uploading lots of files, the user in front of the GUI will keep getting that message after every refresh, unless we can get realtime info about the upload and print a "upload in progress" message until we can print "upload completed, you can refresh now".
PVince81 commentedon Feb 12, 2016
You mean uploading outside of the web UI ? If uploading in the web UI, we can disable the refresh message and simply update the directory's known etag.
If they're uploading outside of the web UI, for example with the sync client, then they should get the message only once. Then it's their fault if they click it repeatedly 😉
oparoz commentedon Feb 12, 2016
But you'd have to let the user know that new files have been uploaded.
etc.
PVince81 commentedon Mar 13, 2017
Side note: this is what KDE Dolphin does when new files appear.
This is why I prefer having a simple message "Folder has updated, refresh ?" instead of refreshing instantaneously or periodically and confusing the user:
PVince81 commentedon Mar 13, 2017
hint: I'm not scrolling, but a copy is being done from another computer into this folder
michaelstingl commentedon May 18, 2018
superseded by owncloud/phoenix ?
brunnomoreira commentedon Jan 30, 2019
Hi guys, I implemented this file's polling as a simple plugin, which I've tested and seems to work smooth.
Is that strategy according to the idea that you guys were proposing to that?
https://gitlab.com/anolisti/files_polling
micbar commentedon Sep 16, 2021
Closing, not planned.