searching with subject_storage in template is not working

Bug #580364 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zeitgeist Framework
Fix Released
Wishlist
Seif Lotfy

Bug Description

I've just added a testcase to lp:zeitgeist which shows that a template like

   template = Event.new_for_values(subject_storage="xxxx")

returns all events, instead of only all events with subject_storage="xxxx".

There are two ways to fx this bug:
  1.) implement searching for subject_storage
  2.) raise an ValueError if we do not support such kind of queries

suggestions?

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

you can run this testcase in lp:zeitgeist by running

   test/engine-test.py ZeitgeistEngineTest.testBug580364

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

I think that we want to support this at some point. Maybe we should just throw an exception for now and then target the feature for 0.3.5 (ie /not/ for 0.3.4)

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

Ok, zeitgeist is not raising a ValueError if someone tries to query on storage, I'll let this bug open so we can implement support for this field in the future.

------------------------------------------------------------
revno: 1471
committer: Markus Korn <email address hidden>
branch nick: trunk
timestamp: Fri 2010-05-14 13:54:52 +0200
message:
  Raise a ValueError if someone tries to query by storage field, this feature
  might be added in the future (LP: #580364)
------------------------------------------------------------

Changed in zeitgeist:
status: New → Triaged
importance: Undecided → Wishlist
Seif Lotfy (seif)
Changed in zeitgeist:
assignee: nobody → Seif Lotfy (seif)
Revision history for this message
Seif Lotfy (seif) wrote :
Changed in zeitgeist:
status: Triaged → Fix Committed
Seif Lotfy (seif)
Changed in zeitgeist:
status: Fix Committed → Fix Released
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.