Skip to content

Automatic download for already downloaded file when file updated? #333

Closed

Description

I just ran into this issue:

A few days ago I downloaded a file with Android ownCloud -> Green triangle with down arrow appeared.

Today I wanted to view the file again (it was updated on the server in the mean time). The file date was updated, so Android ownCloud detected a file change. The green triangle stayed however. When selecting the file, it opened the old version of the file (which I of course noticed too late).

Solution: Long click on file "Update file". This is not intuitive.

Possible fixes:

Suggestion A:
Delete offline file when update is detected (green triangle dissappears as soon file date changes).

Suggestion B:
When clicking an updated file warn user that file has changed on server and suggest to download uptodate copy.

Suggestion C:
When clicking file, download new version. In case of no connection, suggest to open old version of file.


EDITED @rperezb and @owncloud/android-developers :

  • Taking into account the feedback in this issue as well as the current behavior of the ownCloud iOS app the option selected is *C - When clicking file, download new version. In case of no connection, open old version of file *
  • In case of conflict (different versions local and server) the way to go is the regular one:
    • Open the local version
    • Set the file as conflict one (labelled with the icon)
    • Fix the conflict taking advantage of the sync option where the user will be offered to rename, duplicate or cancel

EDITED @malkomich:
TASKS

  • [GIT] Create 333_update_server_changes_on_download_files branch from master in android repo @malkomich
  • [DEV] Perform a sync operation when the file is opened @malkomich
  • [DEV] Launch an advise and capture it when the sync/download operation finish @jabarros
  • [DEV] Update dinamically the content of the file on the file preview @jabarros
  • [QA] Create 333_update_server_changes_on_download_files branch from master in QA repo @jesmrec
  • [QA] Merge 333_update_server_changes_on_download_files branch into master in QA repo (PR Update server changes on download files #1736)
  • [QA] Create test plan @jesmrec
  • [QA] Validate test plan @mcastroSG
  • [GIT] Merge 333_update_server_changes_on_download_files branch into master in android repo

BUGS

Activity

  1. davivel commented on Jan 8, 2014

    @davivel
    Contributor

    Pinging @jancborchardt and @javiergonzper to have a look here. Something in this sense is being done in the iOS app in this sense, but I don't have the details in my head.

  2. jancborchardt commented on Jan 8, 2014

    @jancborchardt
    Contributor

    Yes, a notice like »filename was updated on the server.« would be good. Then with options to »View old file« or »Download new version«.

  3. tobiasKaminsky commented on Oct 25, 2014

    @tobiasKaminsky
    Contributor

    I think the file should be updated when clicking on it without any saying (or "file was updated on server. Downloading new version").
    But no option as the user has downloaded the file time ago and at least for me there is no use in presenting him an old version/different version than the one on the server.

  4. jancborchardt commented on Oct 26, 2014

    @jancborchardt
    Contributor

    I totally agree with @tobiasKaminsky. Anything else is just too complicated. Even when the file is a bit bigger and you’re on mobile, you would still see the download bar and be able to cancel it.

  5. jeremy447 commented on Mar 17, 2016

    @jeremy447

    I agree with @tobiasKaminsky and @jancborchardt the file should be updated when clicking on it. it's probably the simplest and most logical behavior.

  6. jeremy447 commented on May 12, 2016

    @jeremy447

    This is really annoying :( That lead to loss of content.
    Can the file be updated when clicking on it please ?
    Thanks !

  7. added this to the 2.1.0 milestone on Jul 4, 2016
  8. davivel commented on Jul 13, 2016

    @davivel
    Contributor

    Validated, but not merged yet.

    I'll go for that.

  9. 11 remaining items

  10. mcastroSG commented on Jul 21, 2016

    @mcastroSG

    Bug

    Steps

    1. Long push on a photo to select it and enable available offline
    2. Tap on the same file in order to unselect it
    3. Tap on another photo

    Actual behaviour

    App crashes

    Expected behaviour

    App should not crash

    Device: Nexus 5
    Android Version: 6.0

  11. mcastroSG commented on Jul 21, 2016

    @mcastroSG

    Bug

    Steps

    1. Create a new txt file on server
    2. Pull down on app to refresh
    3. Tap on the file
    4. Select from three dots button available offline

    Actual behaviour

    There is no overlay icon associated to available offline, even after pull down again to refresh. In order to get the proper overlay we have to navigate to other folder and come back.

    Expected behaviour

    A new overlay icon should appear and in case we push three dots button Unset available offline option should appear too.

    Device: Nexus 5
    Android Version: 6.0

  12. davivel commented on Jul 21, 2016

    @davivel
    Contributor

    Thanks, @mcastroSG . I'll fix the new bugs now.

  13. davivel commented on Jul 21, 2016

    @davivel
    Contributor

    He, the third one is a classic. But maybe I had an idea :)

  14. davivel commented on Jul 22, 2016

    @davivel
    Contributor

    Wrong UI after solving conflict -> fixed.

  15. davivel commented on Jul 22, 2016

    @davivel
    Contributor

    Crash -> fixed

  16. davivel commented on Jul 22, 2016

    @davivel
    Contributor

    And once again, all the known bugs are ready to be tested.

  17. jesmrec commented on Jul 25, 2016

    @jesmrec
    Member

    @davivel. The steps mentioned in #333 (comment) make the app crash after selecting "Keep Both"

  18. davivel commented on Jul 25, 2016

    @davivel
    Contributor

    Nooooooooooooooooooooo

    I'll have a look

  19. davivel commented on Jul 26, 2016

    @davivel
    Contributor

    @jesmrec , it's fixed now! :)

  20. jesmrec commented on Jul 27, 2016

    @jesmrec
    Member

    @davivel fixed! and approved!!

  21. jeremy447 commented on Aug 1, 2016

    @jeremy447

    Thank you very much @davivel !

  22. added a commit that references this issue on Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions