Open ErikBjare opened 5 years ago
Merge web watcher events into window events in the query? (to allow for classifying by url/domain)
I was trying to prototype this but realized that we need a new transform to accomplish this if we want the durations to be correct. I would propose something like "union_events_split".
The reason why a new transform is needed is because we have to intersect the browser events with the window and afk events to make active time correct, but then we need to merge them back into the window event data. For this to be correct we need to union the event data where they intersect and if they don't perfectly align we need so split the events.
An example which should explain it better:
* |---------|----------------|
* | events1 |[a ][b ]|
* | events2 | [c ] |
* | result |[a ][ac][bc][b ]|
* |---------|----------------|
There is the union function in aw-server-python but from the documentation I don't fully understand what it does, it seems similar but slightly different.
Are there still plans to implement the web/window merge?
These were the leftover tasks from #145
Category Tree: If a category has children, but also activity attributed directly to the parent that does not belong to a child, then create a "Other" child containing the activity.