Skip to content

aw-sync: one-off cleanup of duplicates accumulated before #713 (synced buckets and Android staging dbs) #717

Description

@ErikBjare

Follow-up to #711 / #713. #713 stops new boundary duplicates; it does not remove what already accumulated:

Needed:

  1. aw-sync dedupe [--bucket …] [--dry-run] (or part of status --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.
  2. 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.db and re-stages from the local datastore (the staging is derived data). Belongs with the aw-android bump to a fix(aw-sync): dedup boundary events on resume to prevent cursor re-imports (#711) #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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions