Skip to content

Prevent or warn when changing the synchronization method or server #4133

Description

@locnide

Currently, when you change the sync configuration (for instance switching from local to server), there is no warning, and nothing prevents you from syncing.

But it seem that it will only sync the operations not marked as synced, thus making the data in the new sync backend incomplete. A newly synced device using the new backend would miss operations, wouldn’t it.


I have four proposals (I didn’t look into the taskwarrior internals, so far)

  1. Forbid (or warn) sync when the method or config has changed.
    The implementation could add a sync_config key that contains a footprint of the sync method (server+URL, local+DIR, …), and refuse to sync without force if it has changed.

  2. Add an official (subcommand), or unofficial (script/documentation) method to "unsync" your local replica : it would set synced to 0 for all operations and remove information in sync_meta . It might be a confusing feature, though.

  3. docs Remove Saves disk space. from the documentation. It seem that all operations are stored in the taskchampion db. Are some operations removed from the local db when syncing ? edit still relevant, see comment below

  4. docs Add a warning in documentation to explain that changing synchronization method or configuration is not supported. It could be an easy step before 1. is implemented.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions