Add API method to change annotations of an item

Bug #404915 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Filesystem
New
Undecided
Unassigned
Zeitgeist Framework
Won't Fix
Undecided
Unassigned

Bug Description

It would be nice to have a method in the DBus API to change the annotations (tags/bookmarked) of an item. The item should be identified by its URI. Something like this

ChangeAnnotation("file:///boo/bar/test.dat", {"tags": ["one", "two"], "bookmarked": False})

The 2nd argument must at least contain one item.

Revision history for this message
Natan Yellin (aantny) wrote :

The problem with a ChangeAnnotation method is that one app may not know about annotations that another application set.

For example, suppose that UbuntuOne adds on a "synchronized" annotation to each item that it tracks. If another application then calls ChangeAnnotation("file:///boo/bar/test.dat", {"tags": ["one", "two"], "bookmarked": False}) on the same file, it would inadvertently remove UbuntuOne's annotation because it doesn't (and doesn't need to) know that it exists.

I'd rather just use AddAnnotation, RemoveAnnotation, and SetAnnotation (but not SetAnnotations) methods. This way, applications can only touch the one or two annotations that they know about without needing to know about all possible annotations.

Revision history for this message
Markus Korn (thekorn) wrote :

Added task for zeitgeist-filesystem as this project is waiting for this bug to be fixed.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Note that this bug heavily interlinks with: https://bugs.launchpad.net/zeitgeist/+bug/411399

Seif Lotfy (seif)
Changed in zeitgeist:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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