Guard bounded REST, CSV and AQL reads against long-event omission

Open
#213 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
51/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python, sql
Domain
api, testing

Research direction

Start by reading the integration tests for HTTP event GET/count, CSV, and AQL queries, then check how they use disposable Peewee data and the existing clipped REST/CSV and full-duration AQL behavior. Add regressions showing that an accepted 48-hour event appears in interior second-day reads for all four callers while preserving those behaviors. The issue says the suite depends on the core repair and a dependency version containing it before merge.

Written by the indexing model from the issue text.

Description

Integration follow-through for ActivityWatch/aw-core#194. On authoritative server master 994ea988ca30af36e08cef71ce6046e8c3391584 with core c782189, an accepted 48-hour Peewee event is absent from interior second-day event GET/count, CSV and AQL queries due to core's start-minus-24h prefilter. Add disposable-Peewee HTTP regressions for all four callers, preserving existing clipped REST/CSV behavior and full-duration AQL behavior. No server production-code change expected; the regression suite depends on the core repair and a dependency version containing it before merge.

Dominant language
Python
Stars
129
Forks
104
Avg merge
5d 14h
Merged PRs (30d)
15

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ActivityWatch/aw-server

All issues in ActivityWatch/aw-server

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.