Repository navigation
Description
As an ownCloud user, I want to be able to sync a folder from my Android mobile device to the server so that I can access and edit files easily across devices without thinking about it
Acceptance Criteria:
- Two-way syncing, from the folder set, to all its descendants
- For folders existing in an OC account (syncing local folders only existing in the device is out of the scope of this issue).
- The current Favorites star is to be renamed
Sync"Available offline" - The Sync star icon is to be replaced with
a circular static sync iconan arrow pointing downwards, place over an horizontal line; see more about icons in As an OC user I want clear badges in my list of files so that they are easy to understand #1218 Sync icon is to be the same color as the star and found in the same location on the iOS device (yellow)(iOS)Sync icon will automatically replace existing favorite directories on files currently set as favoritesSync for iOS can only occur when the app is open, as there is no service mechanism for initiating sync in the background. As a result, every time the app is opened, the local cache is refreshed, and any new files are synced with the server.(iOS)- Once the app is opened, sync of individual directories happens when the user navigates into the directory
- When a user is browsing files and pulls down to refresh the directory, any files and folders in that directory are synced automatically (including folder children).
- When a directory is syncing, if
the appany folder is blocked, a circular icon shows thatthe appthe folder is working on the sync
@davivel updated after May 16 Design Days
edited by @jabarros
- Create 'available_offline_folders' branch from master in android repository @jabarros
- [DEV] Allow set a folder as favorite (menu) @jabarros
- [DEV] Save the favorite folder state on db and unset as favorite all children files that were favorites @jabarros
- [DEV] Modify places where favorite folders are being syncing to sync also folders when file is folder: Case of folders syncing (pull down or enter in) @jabarros
- [DEV] Modify places where favorite folders are being synced to sync also folders when file is folder: Case of full account sync and refresh account (in menu) @jabarros
- [DEV] Check service that observes changes (FileObserveService) to take into account changes inside sync folders @malkomich
- [DEV] Get folder data correctly, to assure a favorite keeps being favorite while a refresh operation is done @malkomich
- [DEV] Create method to check if file is favorite or belongs to a favorite folder @jabarros
- [DEV] Check on unfavorite request if the file is favorite by inheritance or not to allow execute the operation @malkomich
- [DEV] Avoid change the 'favorite' value when syncying and only be able to set value since file item menu interaction @jabarros
SET / UNSET AVAILABLE OFFLINE PROPERTY
- Review propagation of 'Unset as available offline' while browsing the file tree, not all the children files unset.
SYNC CONTENT ON OBSERVED CHANGE -> FileObserverService & friends
-
Back to a single class for observe available offline files
-
Extend
FolderObserverto observe any file it contains, or selected files added one by one -
Remove individual observers when ancestor folder is added to be observed.
-
Observe updates of files in subfolders created after a folder was set as available offline.
-
Check update of observer service when av-off file/folder is renamed
-
Check update of observer service when file in av-off folder is renamed
-
Check update of observer service when folder in av-off folder is renamed
-
Check update of observer service when av-off file/folder is moved to non-av folder
-
Check update of observer service when av-off file/folder is moved into av-off folder
-
Check update of observer service when file/folder is moved out of av-off folder
-
Check update of observer service when file/folder is moved into av-off folder
-
Check update of observer service when file/folder is moved from av-off folder to other av-off folder
-
Grant that av-off property of files sync'ed is NOT modified.
SYNC CONTENT ON POLLED CHANGE -> RefreshFolderOperation & friends
- Review calls to
getAvailableOfflineStatus(...). - Review performance to check server updates, while granting local updates.
- Grant that av-off property of files sync'ed is NOT modified.
-
Refactoring:. [WONT]RefreshFolderOperationandSyncFolderOperationduplicate too much code -
Refactoring: merge sync services (tentative). [WONT]
OTHER STUFF
- Changes after CR @jabarros @davivel (WIP)
- [QA] Create 'available_offline' branch in QA Repo @jesmrec
- [QA] Merge 'available_offline' branch in QA Repo @jesmrec
- [QA] Create test plan @jesmrec
- [QA] Validate test plan @jesmrec
- Merge 'available_offline_folders' branch into master
BUGS & IMPROVEMENTS
- Av offline is lost by pulling down Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
- Browsing back in a structure makes the parent folder losing av. offline Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
- Cancelling does not remove av. offline Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
-
Synchronizeoption is useless when folder is av. offline Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [WONT] - Shared folders lose the icon when become av. offline Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
- Lack of edit permission in an av. offline folder floods the uploads view Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [OUT OF SCOPE]
- "Unset av offline" option does not switch to "Set av offline" in toolbar Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
- Redirect server shows an error after syncing Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [CANNOT_REPRODUCE] -> [FIXED]
- New file in server in av-off folder discovered but not downloaded Automated synchronization of folders (scope: inside 'owncloud' folder) #1136 (comment) [FIXED]
Activity
Kernald commentedon Sep 8, 2015
Related standard material design icon here.
rperezb commentedon Oct 21, 2015
@jancborchardt we'd appreciate your input as well as @tobiasKaminsky @AndyScherzinger @LukeOwncloud and others.
The key thing is about the icon, does this icon represent that the files or folders are kept-up-to-date?
(The same one will be used on iOS too)
cc/
@davivel @masensio @javiergonzper @ggdiez @nasli @jesmrec
AndyScherzinger commentedon Oct 21, 2015
Tricky one.
So I would keep the star for keep-in-sync since
Just a personal opinion thought!
rperezb commentedon Oct 21, 2015
Thanks for the answer.
The reason for changing the star is because on the ownCloud web interface it means bookmark, so it´s confusing that on the mobile apps it has a different meaning.
We agree that the sync icon may be understood as an action icos, because of that we are looking for ideas
jancborchardt commentedon Oct 21, 2015
Right, good point by @AndyScherzinger:
Sure in the web interface the star means favoriting, but in the desktop app the circular sync arrows mean that a sync is running and the file isn’t synced yet. Exactly the opposite of what this would do.
tobiasKaminsky commentedon Oct 21, 2015
According to "accounts" in android setting a static circular symbol means, that a sync is possible (and started by clicking on it) and a spinning symbol means that a sync is in progress.
Maybe this will also work for us?
jancborchardt commentedon Oct 21, 2015
Our design language (and that of Dropbox and other players of course) uses the circular arrow as »file about to be synced« though. @owncloud/designers any ideas? We could use a new »pinned« metaphor like Google Drive does …
davivel commentedon Oct 22, 2015
Totally agree.
I don't think we need a third overlay icon. I'd use two, as right now: one to show the current sync state of the file (sync'ing, downloading, uploading, synced/down, ...) , and the other to show how the user wants that it's sync'ed (kept-in-sync or 'regular'). Let me open a separate issue to discuss about the icon(s), I think it's important they are well balanced.
@LukeOwncloud , about your doubts:
(5) Yes, two-way-sync.
(6,7). The rule is "sync the contents of all the kept-in-sync files in the current (visible) folder" ; to allow folders to be kept-in-sync, we need to define the content of a folder; let it be all the contents of its descendents .
When the app is started, the current folder is root. If a folder in the second level of depth is set to be kept-in-sync, it will not be sync'ed just opening the app.
The difference between (6) and (7) is the event triggering the synchronization. But the synchronization is the same.
davivel commentedon Oct 27, 2015
Sorry for the delay. I opened #1218 to discuss the details about the icon.
helmo commentedon May 2, 2016
I noticed that the bounty on #3 - https://www.bountysource.com/issues/541847-two-way-file-sync-for-specific-folders-or-files/backers is still open.
Should we try to get it moved here?
I tried testing this using the current beta and found that when I edit a file on android that was downloaded via owncloud it uploads the changed file. But a new file created under an existing directory downloaded by owncloud is not uploaded.
41 remaining items
jesmrec commentedon Nov 16, 2016
Bug
Steps
Current behaviour
In toolbar/menu, is displayed the "Unset as av. offline" option
Expected behaviour
In toolbar/menu, is displayed the "Set as av. offline" option
Tested with Nexus9 v6
Server 9.1.2.
jesmrec commentedon Nov 16, 2016
Bug
Steps
Current behaviour
Message
Synchronization of folder could not be completedActual behaviour
Folder is tried to be synced with no errors
Tested with Galaxy Note 4 v6, Galaxy Nexus 9 v6
Server 8.2.2
davivel commentedon Nov 16, 2016
How does this work in iOS? cc @nasli
EDITED: besides, if the user really does not want the folder to be synced, can't we expect that she unsets the folder as available offline right after cancelling the synchronization? What would be a real use case of this? "I set up the wrong folder as available offline and I want to fix it before all the folder tree is sync'ed?"
jesmrec commentedon Nov 16, 2016
@davivel in iOS you can cancel the process and the folder becomes not av. offline.
unsetting the folder as av. offline after cancelling is another valid possibility, that cover the real case you mentioned as well.
The real case i was thinking about is this one:
From that moment:
I mean, if you set a folder as av. offline but you don't sync it (by cancelling and staying it as av. offline), it's very probably that this folder will sync in a short time itself. If you cancelled, perhaps you don't want that.
If the solution is unsetting as av. offline using the menu option, we can take advantage and do it automatically, if it is possible.
More thoughts are welcome, @nasli @rperezb
davivel commentedon Nov 25, 2016
As agreed offline: let's replace in the action bar the action 'cancel' with 'unset as available offline', making it also cancels the synchronization if it's in progress.
davivel commentedon Dec 2, 2016
Extra BUG discovered while fixing "the last one" :
EXPECTED BEHAVIOUR
CURRENT BEHAVIOUR
davivel commentedon Dec 5, 2016
@jesmrec , as said offline, all known bugs are ready to be tested.
jesmrec commentedon Dec 7, 2016
@davivel
Related to #1136 (comment)
The problem is fixed (the upload is not retried forever), but right now, it appears twice in the uploads view. Could it be prevented? (only one appearance on the failed upload)
davivel commentedon Dec 7, 2016
I'll review it, though I might need your help to reproduce it.
jesmrec commentedon Dec 7, 2016
Sure!
Edit: this bug happens whether you force the upload by tapping on the file without permissions. This behaviour is not wrong (although can be improved) but is out of scope here.
jesmrec commentedon Dec 7, 2016
Approved
Nice feature already available!!! great job @davivel :)
davivel commentedon Dec 12, 2016
Really to go with next release.
Congrats, team.
twixi commentedon Feb 19, 2017
Very need full sync from Server to phone and vice versa