aw-sync: one-off cleanup of duplicates accumulated before #713 (synced buckets and Android staging dbs)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- android, rust
- Domain
- backend, cli, databases, mobile-dev
Research direction
Start with the existing aw-sync dedupe and status --fix entry points, then trace handling for -synced-from- buckets and Android staging test.db files; the issue names no source files or tests. Done means duplicate counts are reported before cleanup, non-synced buckets remain untouched, and Android staging can be reset or deduplicated before push.
Written by the indexing model from the issue text.
Description
Follow-up to #711 / #713. #713 stops new boundary duplicates; it does not remove what already accumulated:
- destination buckets on any desktop that pulled before #713 — e.g.
aw-stopwatch-synced-from-poco_f8_ultraon erb-m2 holds 550 identical copies of one finished stopwatch event (plus 2 of therunning:truerow),…-web-chrome-…one exact duplicate; - Android staging dbs written by a pre-#713 push — the phone's
poco_f8_ultra/…/test.dbholds 293 copies of the same event, which every fresh desktop import will still pull in once (then correctly stop growing).
Needed:
aw-sync dedupe [--bucket …] [--dry-run](or part ofstatus --fix): for-synced-from-buckets, collapse rows with identical(timestamp, duration, data)to one, reporting counts per bucket before acting. Never touches non-synced buckets.- For Android staging, the same on the phone's own staging db before push, or a "reset sync staging" action that drops
{hostname}/{device_id}/test.dband re-stages from the local datastore (the staging is derived data). Belongs with the aw-android bump to a #713-carrying aw-server-rust.
The v2 format makes this class impossible (idempotency by source event id); this is the legacy-path cleanup only.
cc @TimeToBuildBob
- Dominant language
- Rust
- Stars
- 322
- Forks
- 105
- Avg merge
- 3d 10h
- Merged PRs (30d)
- 22
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-server-rust
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ActivityWatch/aw-server-rust#798 · 1 comment ·
Maintainers usually reply within 1 day
-
Allow configuring sync dir in the `aw-sync/config.toml` filePossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 58/100
ActivityWatch/aw-server-rust#853 · 1 comment ·
Maintainers usually reply within 1 day
-
Correctness bugs: heartbeat cache, query cache invalidation, commit rollback statePossibly taken A pull request linked to this issue is open or already merged. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
ActivityWatch/aw-server-rust#825 · 2 comments ·
Maintainers usually reply within 1 day
-
aw-sync: rowid upgrade bootstrap does not recover backfills lost under the old timestamp cursorOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
ActivityWatch/aw-server-rust#793 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
ActivityWatch/aw-server-rust#790 ·
Maintainers usually reply within 1 day
All issues in ActivityWatch/aw-server-rust
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symposium-dev/symposium#530 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
topgrade-rs/topgrade#2540 ·
Maintainers usually reply within 1 day
-
Invalid JSON options for ngram and edge_ngram silently use defaultsPossibly taken @Tilendlesa claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
noemaforge/vimanam#153 ·
Maintainers usually reply within 1 day