Advanced API calls
I think we are reaching a point now where we should actually try to tackle things internally that are mostly done by clients:
Example:
* Get me all events encapsulated by "open/close" of subject x
* What subject encapsulate event y
I know it sounds like a bad idea but I think this is the evolution of Zeitgeist and we can look into making it an extension...
Any thoughts?
Blueprint information
- Status:
- Complete
- Approver:
- Zeitgeist Framework Team
- Priority:
- Not
- Drafter:
- Zeitgeist Framework Team
- Direction:
- Needs approval
- Assignee:
- Seif Lotfy
- Definition:
- Obsolete
- Series goal:
- None
- Implementation:
- Deferred
- Milestone target:
- None
- Started by
- Completed by
- Seif Lotfy
Related branches
Related bugs
Sprints
Whiteboard
Imagine the following event sequence:
open(w), open(z), open(x), close(z), open(y), close(x), close(w), close(y)
The two methods I propose are:
---
def FindEventsEncap
result_
if i query this with x i check for all events with x and create transactions based on the open(x) & close(x). everything lying in between them is encapsulated thus the return here will be close(z), open(y)
---
def FindEventsEncap
result_
if i query this with x i check for all events with x it will look for all transactions that have x in them
int this case z and w
================
I am not sure what this API would be used for? What kind of UI/UX are you expecting?
Also; does this not somehow imply the failure of the current FindRelated API?
// kamstrup
--------------
================
The main difference is FindRelated API gives you stuff that is related in means of, filtering out noise etc
These two methods are going to be used by FindRelated API but they do have the right to stand on their own
2 Use cases would be
* What did I do while work on while X was open
* What was already open before I opened X
Both have similarity to FindRelated but are not the same...
Example if i open/close X 20 times and Y appears their once it will be handeled by FindRelated as noise unless its near a Open/Close/Modify event of X. However the 2 other methods will sort spit it out as a normal occurring Event.