Add a way to query only a specific class - and NOT sub classes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zeitgeist Framework |
Fix Released
|
Low
|
Siegfried Gevatter | ||
libzeitgeist |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The problem is that nfo:FileDataObject (which we use as manifestation for all files) has subclasses nfo:RemoteDataO
Not only does this feel slightly hackish, but it is also slower since the indexes are used less effectively. I propose adding a new modifier "+" to the manifestation and interpretation (for both event and subject) that signifies that the field must be matched exactly, without subtype expansion.
ie:
Event.
matches also remote- and embedded objects, while prepending a "+" forces the matching to be strict:
Event.
Related branches
- Mikkel Kamstrup Erlandsen: Approve
-
Diff: 227 lines (+122/-3)3 files modifiedsrc/engine.vala (+46/-3)
test/dbus/remote-test.py (+24/-0)
test/direct/query-operators-test.vala (+52/-0)
Changed in zeitgeist: | |
assignee: | nobody → Siegfried Gevatter (rainct) |
status: | New → In Progress |
Changed in zeitgeist: | |
milestone: | 0.9.1 → 0.9.0 |
Changed in zeitgeist: | |
status: | Triaged → Fix Committed |
Changed in zeitgeist: | |
assignee: | nobody → Siegfried Gevatter (rainct) |
importance: | Undecided → Low |
Changed in zeitgeist: | |
status: | Fix Committed → Fix Released |
Branch waiting for review.
https:/ /code.launchpad .net/~zeitgeist /zeitgeist/ 884193/ +merge/ 84412