Add API method to change annotations of an item
Bug #404915 reported by
Markus Korn
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
ChangeAnnotatio
The 2nd argument must at least contain one item.
Changed in zeitgeist: | |
status: | New → Won't Fix |
To post a comment you must log in.
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 ChangeAnnotatio n("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.