emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: Vincent Beffara <vbeffara@ens-lyon.fr>
Cc: Nicolas Goaziou <n.goaziou@gmail.com>,
	emacs-orgmode@gnu.org, Julien Cubizolles <j.cubizolles@free.fr>
Subject: Re: org-caldav can't find org-prepare-agenda-buffers
Date: Tue, 12 Mar 2013 21:31:51 +0100	[thread overview]
Message-ID: <87hakgwea0.fsf@engster.org> (raw)
In-Reply-To: <B6A6C1535A6E4D3EB322041B5425787B@gmail.com> (Vincent Beffara's message of "Tue, 12 Mar 2013 11:18:32 +0100")

Vincent Beffara writes:
> In the meantime I also tweaked the way org-caldav manages UIDs to
> exploit the fact that multiply occurring events are now exported
> multiple times in ox-icalendar, everything works out well if only
> org->ical is used. One thing remaining, on ical->org sync, there is an
> issue that makes the next sync erase the event on ical and upload it
> again, under another id (and with the info not generated by org-caldav
> missing, of course). I think I know how to fix it, just need to find
> some time ...
>
> I will send what works to the list. (In the meantime, David, don't
> pull my second pull request, it is not right.)

I appreciate your work, of course, but let me add a word of warning. I
think if you give up the one-to-one correspondence that one Org event
has exactly *one* event in the remote calendar, you are entering a world
of pain.

Remember that there are three things: new items, changed items and
deleted items. Since these can happen on both sides, you have to figure
out six different cases which must be handled properly. As you've
already experienced, the changes on the calendar side are more
difficult. What happens if you delete one of the events that stems from
one Org entry?  You would first have to figure out which timestamp
created it, but how? Timestamps don't have UIDs, only the full entry has
one. So you would have to somehow add this information to the event
database which gets stored to disk. You might get this to work, but I
have a gut feeling that you'll loose robustness. For example, the Google
calendar CalDAV interface is pretty slow and not very reliable, so a
robust resume functionality is essential.

Also, I deliberately shoved conflict handling at the side for the
moment, but this is a feature which will have to be added one day, and
will complicate things much more.

-David

  reply	other threads:[~2013-03-12 20:36 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-27 10:34 org-caldav can't find org-prepare-agenda-buffers Julien Cubizolles
2013-02-27 14:12 ` Bastien
2013-02-27 19:18   ` David Engster
2013-02-27 22:30     ` Bastien
2013-02-28  6:57       ` David Engster
2013-02-28  7:38         ` Bastien
2013-02-28 16:17           ` David Engster
2013-02-28 18:25             ` Achim Gratz
2013-02-28 19:13               ` David Engster
2013-02-28 19:32                 ` Achim Gratz
2013-03-02 11:17             ` Bastien
2013-03-02 13:26               ` David Engster
2013-03-02 17:18                 ` Bastien
2013-03-02 20:17                   ` Torsten Wagner
2013-03-03 12:26                     ` David Engster
2013-03-04 10:46                       ` Torsten Wagner
2013-03-02 22:19                   ` Achim Gratz
2013-03-03  6:25                     ` Bastien
2013-03-06 14:57                       ` Julien Cubizolles
2013-03-06 16:15                         ` David Engster
2013-03-06 16:24                           ` Nicolas Goaziou
2013-03-06 16:43                             ` David Engster
2013-03-06 17:08                               ` Nicolas Goaziou
2013-03-06 17:22                                 ` David Engster
2013-03-06 17:32                                   ` Nicolas Goaziou
2013-03-06 21:24                                     ` David Engster
2013-03-07  9:13                                       ` Julien Cubizolles
2013-03-07 10:06                                         ` Vincent Beffara
2013-03-07 10:54                                           ` Nicolas Goaziou
2013-03-07 11:17                                             ` Vincent Beffara
2013-03-07 12:56                                               ` Nicolas Goaziou
2013-03-07 13:21                                                 ` Vincent Beffara
2013-03-07 13:31                                                   ` Vincent Beffara
2013-03-07 13:41                                                     ` Vincent Beffara
2013-03-12  6:21                                                       ` Julien Cubizolles
2013-03-12 10:18                                                         ` Vincent Beffara
2013-03-12 20:31                                                           ` David Engster [this message]
2013-03-14  0:05                                                             ` Vincent Beffara
2013-03-06 16:51                           ` Julien Cubizolles
2013-03-06 17:08                             ` David Engster
2013-03-06 17:18                               ` Julien Cubizolles
2013-03-06 18:35                                 ` David Engster
2013-03-02 11:19             ` Bastien
2013-03-02 13:33               ` David Engster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87hakgwea0.fsf@engster.org \
    --to=deng@randomsample.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=j.cubizolles@free.fr \
    --cc=n.goaziou@gmail.com \
    --cc=vbeffara@ens-lyon.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).