Merge lp:~brian.curtin/ubuntuone-client/851810-notify-on-volumes into lp:ubuntuone-client
| Status: | Merged |
|---|---|
| Merged at revision: | 1218 |
| Proposed branch: | lp:~brian.curtin/ubuntuone-client/851810-notify-on-volumes |
| Merge into: | lp:ubuntuone-client |
| Diff against target: |
179 lines (+44/-0) 10 files modified
tests/platform/test_external_interface.py (+2/-0) tests/syncdaemon/test_interaction_interfaces.py (+14/-0) tests/syncdaemon/test_vm.py (+4/-0) ubuntuone/platform/linux/dbus_interface.py (+5/-0) ubuntuone/platform/tools/windows.py (+1/-0) ubuntuone/platform/windows/ipc.py (+5/-0) ubuntuone/platform/windows/ipc_client.py (+5/-0) ubuntuone/syncdaemon/event_queue.py (+1/-0) ubuntuone/syncdaemon/interaction_interfaces.py (+5/-0) ubuntuone/syncdaemon/volume_manager.py (+2/-0) |
| To merge this branch: | bzr merge lp:~brian.curtin/ubuntuone-client/851810-notify-on-volumes |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Natalia Bidart | 2012-02-22 | Resubmit on 2012-03-28 | |
|
Review via email:
|
|||
Commit Message
- Emit a notification when volumes are ready after a server rescan, allowing clients to follow and update their information accordingly (LP: #851810).
Description of the Change
After processing volumes during the server rescan, push an event to notify that volumes are ready for clients to consume.
| Brian Curtin (brian.curtin) wrote : | # |
| Brian Curtin (brian.curtin) wrote : | # |
After going over it, I don't believe implementations of the TODO comments were necessary.
- 1197. By Natalia Bidart on 2012-02-25
-
- Use the Qt SSO UI when doing credentials management (LP: #930716).
- Use consistently the U1_DEBUG env var to have DEUBG output. - 1198. By dobey on 2012-03-01
-
Update the messaging indicator integration to launch ubuntuone-installer
Avoid passing time() to the Indicator API which expects GTimeVal now
Update the tests for the changes - 1199. By Natalia Bidart on 2012-03-01
-
- Call CredentialsMana
gementTool. login when prompt to connect (LP: #944230). - 1200. By Natalia Bidart on 2012-03-06
-
- Made default for MARK logging to be every 15 minutes (LP: #906462).
- 1201. By Roberto Alsina on 2012-03-06
-
- Made indicate import optional (LP: #939509).
| Natalia Bidart (nataliabidart) wrote : | # |
Test are not running on linux because:
File "/home/
signature=
File "/usr/lib/
raise ValueError('signal signature is longer than the number of arguments provided')
ValueError: signal signature is longer than the number of arguments provided
make: *** [test] Error 1
This is caused by the following:
73 + @dbus.service.
74 + signature='a{ss}')
75 + def VolumesReady(self):
76 + """Volumes are ready."""
77 +
VolumesReady should accept a param named 'volumes', like the signature specifies.
Also, in DBus you can't pass an array of objects, so you need to serialize the resulting volumes list. In IRL this means that with this branch we're getting this failure in the logs:
2012-03-07 12:49:39,359 - ubuntuone.
Traceback (most recent call last):
File "/home/
method(
File "/home/
res = f(*args, **kwargs)
File "/home/
self.
File "/usr/lib/
message.
TypeError: list indices must be integers, not RootVolume
So, in ubuntuone/
There is another thing to fix: the current volumes list has objects which classes are RooVolume, ShareVolume, and UDFVolume. These classes come from the protocol directly and are "low level", and should not be leaked to other modules. The volume_manager python module has a higher level abstraction for those, see the class Root, Shares and UDF (all 3 inheriting from Volume).
So, the volumes list send in the VM_VOLUMES_READY event should be a list of specializations of volume_
549 def server_
method, after self._volumes_
639 events.
and adding a callback to the...
| Natalia Bidart (nataliabidart) wrote : | # |
Just tested this change IRL and I'm getting:
File "/home/
volumes = self.shares + self.udfs
exceptions.
we need to ask verterok how to properly "sum" to volumes list.
| Natalia Bidart (nataliabidart) wrote : | # |
Ok, just chatted with verterok and what we need is to emit the event with this as the volumes param:
volumes = list(self.
- 1202. By Alejandro J. Cura on 2012-03-08
-
- The infrastructure for a QtNetwork based process to tunnel syncdaemon traffic thru proxies. (LP: #929207)
- 1203. By Alejandro J. Cura on 2012-03-09
-
- A client for the proxy tunnel, to be used by syncdaemon (LP: #929207).
- 1204. By Alejandro J. Cura on 2012-03-09
-
- A proxy tunnel process to be started when proxies are enabled (LP: #929207).
- 1205. By dobey on 2012-03-12
-
Set the transient hint on the notifications to True
- 1206. By Alejandro J. Cura on 2012-03-12
-
- Tunnel storage protocol if proxy enabled in system settings (LP: #929208).
- 1207. By dobey on 2012-03-13
-
Fix the typo in the u1sdtool --list-shared help text and man page
Don't install the really old preferences man file we don't need - 1208. By Alejandro J. Cura on 2012-03-15
-
- Use the txweb webclient from sso for webcalls, so they can be proxied too (LP: #929207, LP: #929212).
- 1209. By Alejandro J. Cura on 2012-03-15
-
QNetwork must use the proxy built; forward disconnections in the tunnel client.
- 1210. By dobey on 2012-03-16
-
Don't attach old useless log files, and clean up the report a little
- 1211. By Alejandro J. Cura on 2012-03-16
-
- Use proxy credentials from the keyring (LP: #929207)
- 1212. By Alejandro J. Cura on 2012-03-18
-
- Only allow connections that provide the right cookie thru the tunnel (LP: #929207).
- 1213. By Roberto Alsina on 2012-03-19
-
Fix tunnel spawning code so that it works on windows.
- 1214. By Brian Curtin on 2012-03-21
-
- Loosen the is_root check on Windows to allow Windows XP users, who commonly run with Administrator rights, to start U1 properly. (LP: #930398).
- 1215. By Brian Curtin on 2012-03-22
-
merge lp:~brian.curtin/ubuntuone-client/851810-notify-on-volumes
- 1216. By Brian Curtin on 2012-03-22
-
match the signature on linux
| Natalia Bidart (nataliabidart) wrote : | # |
I will hijack the branch and propose a new one at: https:/


Forget this for now - there are still TODO comments that I forgot to address.