Repository navigation
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_filesbranch 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_filesbranch from master in QA repo @jesmrec - [QA] Merge
333_update_server_changes_on_download_filesbranch 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_filesbranch into master in android repo
BUGS
- Media files (audio and video) are not refreshed when a new version is downloaded from the server Automatic download for already downloaded file when file updated? #333 (comment) [FIXED]
- Image files are not refreshed with the new version when clicked [FIXED]
- Too many messages "file is already synced" [READY_TO_TEST]
- Not previewable files are not refreshed with the new version when clicked [FIXED]
- Track download progress in previews when a fresh version of the file is downloading in background [FIXED]
- Conflict resolved with both files does not end properly. Automatic download for already downloaded file when file updated? #333 (comment)
- App crashes after set a photo as available offline and tap on another photo Automatic download for already downloaded file when file updated? #333 (comment) [FIXED]
- Available offline state is not shown properly Automatic download for already downloaded file when file updated? #333 (comment) [FIXED]
Activity
davivel commentedon Jan 8, 2014
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.
jancborchardt commentedon Jan 8, 2014
Yes, a notice like »
filenamewas updated on the server.« would be good. Then with options to »View old file« or »Download new version«.tobiasKaminsky commentedon Oct 25, 2014
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.
jancborchardt commentedon Oct 26, 2014
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.
jeremy447 commentedon Mar 17, 2016
I agree with @tobiasKaminsky and @jancborchardt the file should be updated when clicking on it. it's probably the simplest and most logical behavior.
jeremy447 commentedon May 12, 2016
This is really annoying :( That lead to loss of content.
Can the file be updated when clicking on it please ?
Thanks !
davivel commentedon Jul 13, 2016
Validated, but not merged yet.
I'll go for that.
11 remaining items
mcastroSG commentedon Jul 21, 2016
Bug
Steps
Actual behaviour
App crashes
Expected behaviour
App should not crash
Device: Nexus 5
Android Version: 6.0
mcastroSG commentedon Jul 21, 2016
Bug
Steps
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
davivel commentedon Jul 21, 2016
Thanks, @mcastroSG . I'll fix the new bugs now.
davivel commentedon Jul 21, 2016
He, the third one is a classic. But maybe I had an idea :)
davivel commentedon Jul 22, 2016
Wrong UI after solving conflict -> fixed.
davivel commentedon Jul 22, 2016
Crash -> fixed
davivel commentedon Jul 22, 2016
And once again, all the known bugs are ready to be tested.
jesmrec commentedon Jul 25, 2016
@davivel. The steps mentioned in #333 (comment) make the app crash after selecting "Keep Both"
davivel commentedon Jul 25, 2016
Nooooooooooooooooooooo
I'll have a look
davivel commentedon Jul 26, 2016
@jesmrec , it's fixed now! :)
jesmrec commentedon Jul 27, 2016
@davivel fixed! and approved!!
jeremy447 commentedon Aug 1, 2016
Thank you very much @davivel !
Merge pull request #333 from owncloud/release/1.0.6