Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[buteo-sync-plugins-social] Fix Google calendar event duplication. Co…
…ntributes to JB#47783

This commit fixes several issues which together could lead to errors
which result in event duplication in some cases.

- sync anchor timestamp is now stored exclusively in the notebook
  as the syncDate property, to avoid atomicity issues

- sync anchor token is now stored exclusively in the notebook
  as a custom property (instead of account setting) to avoid
  atomicity issues

- detection of server-side sync token invalidation has been
  improved, allowing the sync envelope to be tweaked appropriately

- detection of events copied between calendars via Google web UI
  has been added, to ensure we don't attempt to store multiple
  events with the same UID (which could trigger a clean-sync cycle).

It also bumps the plugin version to ensure that a clean sync will
be triggered on the first run, to clean up any duplications which
may have previously occurred.

Contributes to JB#47783
  • Loading branch information
Chris Adams committed Jan 29, 2020
1 parent 15f5e97 commit f058f4b
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 101 deletions.
2 changes: 1 addition & 1 deletion rpm/sociald.spec
Expand Up @@ -155,7 +155,7 @@ systemctl-user try-restart msyncd.service || :

%package google-calendars
Summary: Provides calendar synchronisation with Google
BuildRequires: pkgconfig(libmkcal-qt5)
BuildRequires: pkgconfig(libmkcal-qt5) >= 0.5.9
BuildRequires: pkgconfig(libkcalcoren-qt5)
Requires: %{name} = %{version}-%{release}

Expand Down

0 comments on commit f058f4b

Please sign in to comment.