Test activity collaboration fails
Aniket21mathur opened this issue · 4 comments
Aniket21mathur commented
I got the following traceback in shell.logs (Ubuntu 18.04 using rdesktop)
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/jarabe/model/neighborhood.py", line 985, in __activity_updated_cb
bundle = registry.get_bundle(properties['type'])
KeyError: 'type
quozl commented
Speculation;
- user A listens for notifications of shared activities, https://github.com/sugarlabs/sugar/blob/master/src/jarabe/model/neighborhood.py#L751
- user B shares an activity, the bundle_id is stored with key type in properties, https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/presence/presenceservice.py#L196
- user A receives notification signal activity-added, (or this signal occurs on install of bundles, not sure),
- user B changes something about the activity, or user A joins the shared activity,
- user A receives notification signal activity-updated, https://github.com/sugarlabs/sugar/blob/master/src/jarabe/model/neighborhood.py#L977
- the signal does include properties, but the properties dictionary does not contain type.
Does it still occur after your latest changes? If not, it was spurious and caused by your edits.
Aniket21mathur commented
quozl commented
So the traceback was caused by your work in progress. Therefore this issue "a traceback in shell.log" can be closed. Thanks.
Aniket21mathur commented
Thanks. Agreed.