Add new aggregate API
Bug #670358 reported by
Seif Lotfy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zeitgeist Framework |
Invalid
|
Wishlist
|
Siegfried Gevatter |
Bug Description
Zeitgeist API can give us vague information but not statistics over the API
Use case:
- Give me counts of every subject_text from actor = Unity
Currently to do that one will need to either:
Request all events with Unity as an Actor and count the subject_text
This can be done much better IMHO
I am thinking of an Aggregation Extension.
But before we hack on that we need to agree if its necessary and how the API will look like.
Changed in zeitgeist: | |
assignee: | nobody → Siegfried Gevatter (rainct) |
Changed in zeitgeist: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
milestone: | none → 0.7 |
Changed in zeitgeist: | |
milestone: | 0.7.0 → none |
Changed in zeitgeist: | |
milestone: | none → 0.8.0 |
Changed in zeitgeist: | |
milestone: | 0.8.0 → none |
To post a comment you must log in.
My current suggestion based on Michal Hruby's requirements would be a method called
def get_events_ count(timerange , event_templates):
...
return dict
where dict = {event_template_1: count1,
event_template_ 2: count2,
...
}