Skip to content

docs(api): document bulk event delete endpoint - #213

Merged
ErikBjare merged 2 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/bulk-delete-events
Nov 24, 2026
Merged

ErikBjare merged 2 commits into
ActivityWatch:masterfrom
TimeToBuildBob:docs/bulk-delete-events

Conversation

@TimeToBuildBob

@TimeToBuildBob TimeToBuildBob commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Documents POST /api/0/buckets/<bucket_id>/events/delete in the REST reference, next to the single-event delete.

Verified: sphinx-build -b html src emits no warnings for api/rest.rst, and the new section renders.

Also corrects the single-event GET note. aw-server-rust has returned 404 for a missing event since ActivityWatch/aw-server-rust#725, which is in the server pinned by desktop v0.14.0 and v0.14.1. Verified with git merge-base --is-ancestor against both submodule pins and a live request to a local build. The old text said 500.

CI: the build job fails in Install APT dependencies with a mirror 404 for libpng-dev, because the workflow installs packages without apt-get update. #211 fixes that. This PR's local sphinx-build is clean.

@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

The failing build stops before Sphinx: the runner’s cached APT index requests removed libpng-dev/libpng-tools packages and gets HTTP 404 (run 38541213236). #211 already fixes this with apt-get update and has a passing build. No duplicate workflow fix or rerun added here; a maintainer needs to merge #211 first, then this branch can pick it up and run fresh CI.

Git-Session-Id: a58a3fc2-eb2f-4600-8574-4a4b70f6fbff
Git-Session-Id: a58a3fc2-eb2f-4600-8574-4a4b70f6fbff
@TimeToBuildBob
TimeToBuildBob force-pushed the docs/bulk-delete-events branch from 18701f8 to c75aa95 Compare November 24, 2026 07:53
@TimeToBuildBob

Copy link
Copy Markdown
Contributor Author

Merge-ready. Documents POST /api/0/buckets/<id>/events/delete and corrects the single-event GET 404 note. Rebased on master today, dropping the duplicate apt-get workflow commit (#211 already landed).
Evidence: path, 10,000-id cap, 413 and the 400/422 split match both aw-server rest.py and aw-server-rust bucket.rs. ActivityWatchClient.delete_events exists in aw-client.
Risk: docs only.

@ErikBjare

Copy link
Copy Markdown
Member

@TimeToBuildBob review

@TimeToBuildBob

TimeToBuildBob commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 AI code review

Documents the new bulk event delete endpoint POST /api/0/buckets/<bucket_id>/events/delete in the REST reference, including request body, response count, and status codes. Also corrects the single-event GET note to reflect that aw-server-rust returns 404 since v0.14.0, and updates the events API intro to mention delete access.

Safe to merge — no P0/P1 findings

Confidence 5/5

✅ No findings. The diff looks correct to me on this pass.

Files changed (1) — the diff as I read it
  • src/api/rest.rst — Adds a 'Delete many events' section, updates the events API intro to include delete access, and revises the single-event GET status note.

Reviewed c75aa9563512 · openrouter/deepseek/deepseek-v4-flash-0731 · llm engine · 59s · about this reviewer

Maintainer commands

@TimeToBuildBob review (own line) — fresh review · @TimeToBuildBob fix — a worker acts on the findings. Once per comment; 👀 = received.

TimeToBuildBob added a commit to TimeToBuildBob/docs that referenced this pull request Nov 24, 2026
Git-Session-Id: bed1476c-0b54-4dde-9c03-8080d9dde1e7
@ErikBjare
ErikBjare merged commit 2965094 into ActivityWatch:master Nov 24, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants