Peewee explicit event IDs can move events between buckets
Maintainers usually reply within 10 days
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing Peewee event storage and the repository’s storage regression tests; the issue does not name specific files or tests. Reproduce the single-object and mixed-batch cases with disposable SQLite databases, then inspect how aw-server handles the resulting HTTP error. Done means foreign-bucket IDs are rejected without mutation while same-bucket replacement, ID-less inserts, heartbeat behavior, and existing nonexistent-ID behavior are preserved.
Written by the indexing model from the issue text.
Description
Posting an event with bucket A’s existing ID into bucket B updates the globally identified Peewee row and moves it out of A. Reproduced on master c7821899 using disposable SQLite databases through the Python HTTP API: both single-object and one-element batch requests return 200, A becomes empty, and B contains the overwritten row.
Expected: reject a foreign-bucket ID without mutating either bucket. Mixed batches must reject before applying earlier updates/inserts. Preserve same-bucket replacement, ID-less inserts, and heartbeat behavior. Establish existing nonexistent-ID behavior rather than changing insertion policy across backends.
Scope: Peewee ownership preflight plus repository storage regressions; HTTP error handling will be verified against aw-server. No personal history or live service was used.
- 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 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 4/5 3-5 days Newbie friendliness 35/100
ActivityWatch/aw-core#78 · 4 comments ·
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