kidd / org-gcal.el

Org sync with Google Calendar. (active maintained project as of 2019-11-06)
436 stars 47 forks source link

Auto-archival of recurring entries causes future entries to be archived too #121

Open karthink opened 3 years ago

karthink commented 3 years ago

Some future events disappeared from my org-gcal calendar file (and thus from my org-agenda) and digging into why it looks like this was what happened:

The following variables are set: org-gcal-auto-archive: t org-gcal-up-days: 30 org-gcal-recurring-events-mode: 'nested

A weekly recurring event that ran for longer than 30 days and stored as a nested entry was auto-archived by org-gcal. When it did the entire tree (all past and future events) was auto-archived, not just instances of the event older than 30 days. I cleared my calendar file, ran org-gcal-sync-tokens-clear and org-gcal-sync again to verify, and reproduced the result.

I'm assuming this is a bug?

telotortium commented 3 years ago

Quite likely it is a bug. I'll try to take a look when I have time, but I might not have time for a while due to a lot of busyness at home.

On Thu, Feb 11, 2021 at 3:48 PM karthink notifications@github.com wrote:

Some future events disappeared from my org-gcal calendar file (and thus from my org-agenda) and digging into why it looks like this was what happened:

The following variables are set: org-gcal-auto-archive: t org-gcal-up-days: 30 org-gcal-recurring-events-mode: 'nested

A weekly recurring event that ran for longer than 30 days and stored as a nested entry was auto-archived by org-gcal. When it did the entire tree (all past and future events) was auto-archived, not just instances of the event older than 30 days. I cleared my calendar file, ran org-gcal-sync-tokens-clear and org-gcal-sync again to verify, and reproduced the result.

I'm assuming this is a bug?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kidd/org-gcal.el/issues/121, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANMVDPMMIWOLX7SQM4D32LS6RUFRANCNFSM4XPYDCIQ .

-- Robert Irelan rirelan@gmail.com

karthink commented 3 years ago

In the meantime, if anyone else encounters this issue with future recurring events disappearing from the calendar I suggest leaving org-gcal-recurring-events-mode at 'top-level.

telotortium commented 3 years ago

I probably need to change the archiving logic to not be activated for recurring events, but only for individual instances of it.