UbuntuOne sync status emblems should apply to folders as well as files

Bug #440848 reported by Matthew McGowan
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Triaged
Wishlist
Unassigned

Bug Description

UbuntuOne should apply sync status emblems to folders as well as files.

dobey (dobey)
Changed in ubuntuone-client:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Roman Yepishev (rye) wrote :

I would also note that the directories should display the summary status for all the files and folders that are contained within the folder in question. I.e. if at least one file is not synchronized, all the parent folders should show non-synchronized emblem.

This will require syncdaemon changes so that it may be queried somehow differently about the directory metadata which will trigger internal scan of the metadata to determine if there are non-synchronized files.

Taking this to ubuntuone-nautilus is way too expensive, since we might need to issue thousands of requests to get_metadata() effectively spamming the DBus and some of they will time-out.

Roman Yepishev (rye)
tags: added: nautilus-emblems
Revision history for this message
Roman Yepishev (rye) wrote :

We might handle this in the following way:

When a request is made for u1-managed directory, syncdaemon is called with 'get_folder_info'-like request. This should trigger internal syncdaemon lookup to determine whether all files have been synced ("synchronized" emblem), whether at least one is downloaded in any folder below the current one or, if neither case fits, then folder is considered unsynchronized. All parent folders will then adjust their icons accordingly (since we have a cache of all observed files/folders anyway now.

This will allow Ubuntu One root folder to signal nicely about current syncdaemon state.

Revision history for this message
Roman Yepishev (rye) wrote :

Is it possible to add some kind of metadata key for the folders that is updated whenever something is changed in the subdirectory? This would save us hundreds of dbus calls.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.