Skip to content

keeping webinterface in sync #983

Closed
Closed

Description

@jancborchardt

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.

Thoughts: Websockets, API, post-upload hooks. cc @DeepDiver1975 @karlitschek

Activity

  1. DeepDiver1975 commented on Dec 21, 2012

    @DeepDiver1975
    Contributor

    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! ;-) )

  2. jancborchardt commented on Dec 21, 2012

    @jancborchardt
    ContributorAuthor

    Calling in @Raydiation and @butonic for Angular.

  3. BernhardPosselt commented on Dec 21, 2012

    @BernhardPosselt
    Contributor

    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.

  4. DeepDiver1975 commented on Dec 21, 2012

    @DeepDiver1975
    Contributor

    @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

  5. bartv2 commented on Dec 21, 2012

    @bartv2
    Contributor

    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

  6. karlitschek commented on Dec 22, 2012

    @karlitschek
    Contributor

    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

  7. BernhardPosselt commented on Dec 22, 2012

    @BernhardPosselt
    Contributor

    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)

  8. karlitschek commented on Dec 22, 2012

    @karlitschek
    Contributor

    Polling is actually something that can be handled well with most server setups. open connections are the problem

  9. jancborchardt commented on Aug 7, 2013

    @jancborchardt
    ContributorAuthor

    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.

  10. MorrisJobke commented on Jun 11, 2014

    @MorrisJobke
    Contributor

    Postponing to milestone ownCloud 8

  11. modified the milestones: , on Jun 11, 2014
  12. removed this from the milestone on Jan 8, 2015
  13. 30 remaining items

  14. oparoz commented on Feb 12, 2016

    @oparoz
    Contributor

    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".

  15. PVince81 commented on Feb 12, 2016

    @PVince81
    Contributor

    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 😉

  16. oparoz commented on Feb 12, 2016

    @oparoz
    Contributor

    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.

    1. User logs in
    2. Upload starts
    3. Message is shown
    4. User refreshes
    5. Files are still being uploaded, so new files are now hidden until the user hits refresh again
    6. Show message
    7. User refreshes
    8. More files are uploaded, message required
      etc.
  17. modified the milestones: backlog, on Jun 9, 2016
  18. PVince81 commented on Mar 13, 2017

    @PVince81
    Contributor

    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:

    list-autoscroll

  19. PVince81 commented on Mar 13, 2017

    @PVince81
    Contributor

    hint: I'm not scrolling, but a copy is being done from another computer into this folder

  20. michaelstingl commented on May 18, 2018

    @michaelstingl

    superseded by owncloud/phoenix ?

  21. brunnomoreira commented on Jan 30, 2019

    @brunnomoreira

    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

  22. micbar commented on Sep 16, 2021

    @micbar
    Contributor

    Closing, not planned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions