Skip to content

sync: compare switches by value, skip reset-only files and treat read-only dumps as partial #345

In review

Description

@bjornars

Several gaia changes affect novem/sync.py dump and load. Load/dump is an internal tool, so gaia is shipping these server-side first. This issue is the client follow-up.

  • Boolean readback: switches now read back as yes/no (novem-code/gaia#8033, #8035, #8038, #8039). A dump holding true differs from the server's yes text and is re-POSTed on every load (sync.py:236). Compare known boolean aliases by value.
  • Reset via DELETE: notification preferences gain a DELETE that resets them to the default (novem-code/gaia#8068). Sync round-trips any file listing DELETE (sync.py:130, :208), and load deletes remote files missing locally (:240), so loading a dump that predates it resets the caller's preference. Leave notification preferences out of the managed set.
  • Read-only dumps: listings will give read-only callers their own actions, without DELETE (novem-code/gaia#8046). A dump taken by a reader then omits files, and an owner loading it would delete them (:240). Mark a dump taken without write access as partial, and never delete remote files when loading a partial dump.

Activity

  1. added theissue type on Dec 6, 2026
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

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions