** Changed in: zeitgeist
     Assignee: (unassigned) => Siegfried Gevatter (rainct)

** Changed in: zeitgeist
   Importance: Undecided => Low

-- 
You received this bug notification because you are a member of Zeitgeist
Framework Team, which is subscribed to Zeitgeist Framework.
https://bugs.launchpad.net/bugs/884193

Title:
  Add a way to query only a specific class - and NOT sub classes

Status in Zeitgeist Client Library:
  New
Status in Zeitgeist Framework:
  Fix Committed

Bug description:
  The problem is that nfo:FileDataObject (which we use as manifestation
  for all files) has subclasses nfo:RemoteDataObject and
  nfo:EmbeddedFileDataObject which we may not be interested in querying
  for (at least, we're not in Unity). In Unity we qualify our queries by
  restricting them to also have subject prefix "file:*".

  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.new_for_values (manifestation=FILE_DATA_OBJECT)

  matches also remote- and embedded objects, while prepending a "+"
  forces the matching to be strict:

    Event.new_for_values (manifestation="+"+FILE_DATA_OBJECT)

To manage notifications about this bug go to:
https://bugs.launchpad.net/libzeitgeist/+bug/884193/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~zeitgeist
Post to     : zeitgeist@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zeitgeist
More help   : https://help.launchpad.net/ListHelp

Reply via email to