Event merge from different buckets
Maintainers usually reply within 10 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with aw_transform/filter_period_intersect.py at the referenced union implementation and read the warning about stripping event data. Compare that behavior with the proposed aw_transform.merge_events(*all_events) entry point and determine how events from multiple buckets should retain their data. Done means the intended merge behavior is defined and verified without losing event data.
Written by the indexing model from the issue text.
Description
I'm guessing this has come up many times, so apologies for not finding related issue. The closest one is in ActivityWatch but it's not exactly that :(
I found code that does the union on events but it has a note WARNING: This function strips all data from events as it cannot keep it consistent. Do you know/remember why is that?
What I'd like to do is to have a list of events that contain all data from all buckets. Something like:
buckets = aw_client.get_buckets()
all_events = [aw_client.get_events(bucket['id']) for bucket in buckets]
merged_events = aw_transform.merge_events(*all_events)
I need this, so if there's no such functionality, I'm happy to contribute, but maybe you already have one?
- Dominant language
- Python
- Stars
- 65
- Forks
- 74
- Avg merge
- 7d 7h
- Merged PRs (30d)
- 11
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ActivityWatch/aw-core
-
chunk_events_by_key: gap/pulsetime check is broken (events[-1] is always the last event)Possibly taken @TimeToBuildBob claimed this 5 days ago. Openbug
Difficulty 4/5 1-2 days Newbie friendliness 45/100
ActivityWatch/aw-core#205 · 1 comment ·
Maintainers usually reply within 10 days
-
Peewee explicit event IDs can move events between bucketsPossibly taken @TimeToBuildBob claimed this 26 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ActivityWatch/aw-core#195 ·
Maintainers usually reply within 10 days
-
Peewee range queries omit accepted events longer than 24 hoursPossibly taken @TimeToBuildBob claimed this 26 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ActivityWatch/aw-core#194 · 1 comment ·
Maintainers usually reply within 10 days
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
ActivityWatch/aw-core#174 ·
Maintainers usually reply within 10 days
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
ActivityWatch/aw-core#52 · 4 comments · 3 reactions ·
Maintainers usually reply within 10 days
All issues in ActivityWatch/aw-core
Similar issues
-
bug docs
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
ActivityWatch/docs#223 ·
-
[Bug]: OpenCode v2 skips an assistant message that gains text after an earlier capturePossibly taken @jianyx1 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
volcengine/OpenViking#8354 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ARTPARK-SAHAI-ORG/calibrate-frontend#842 ·
Maintainers usually reply within 1 day
-
comp/tools P2 tool/skills type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NousResearch/hermes-agent#159541 ·
Maintainers usually reply within 1 day