derekantrican / GAS-ICS-Sync

A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed
GNU General Public License v3.0
1.5k stars 192 forks source link

[Request] Only sync Future Events but also delete them #378

Closed mhardy closed 6 months ago

mhardy commented 10 months ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

var onlyFutureEvents = true; // If you turn this to "true", past events will not be synced (this will also removed past events from the target calendar if removeEventsFromCalendar is true)

It would be nice to have onlyFutreEvents true to make the sync faster, but also leave removeEventFromCalendar also true so any future events that are deleted get removed, but past events aren't touched.

Additional context

No response

jonas0b1011001 commented 10 months ago

This should be covered by #317, you can follow https://github.com/derekantrican/GAS-ICS-Sync/wiki/Setting-up-the-script-manually to update.

Ayal1 commented 9 months ago

This should be covered by #317, you can follow https://github.com/derekantrican/GAS-ICS-Sync/wiki/Setting-up-the-script-manually to update.

I'm not sure this is covered, and if so how would this be achieved? Because in my script I have onlyFutureEvents = true and removeEventsFromCalendar = false since I don't want the script to remove past events that were subsequently removed from the source calendar (unless I manually remove them from the script-created calendar), but I do want it to remove future events that were removed from the source calendar (since they were cancelled).

At the moment, with these settings applied, I could have a future event added to the source calendar but if it is completely removed instead of modified to a new date, the event remains and I have to go manually check the source calendar to make sure it is indeed happening.

jonas0b1011001 commented 9 months ago

After updating you have a new setting, have you tried:

var onlyFutureEvents = true; 
var removeEventsFromCalendar = true;
var removePastEventsFromCalendar = false;

?

Ayal1 commented 9 months ago

Ah, that's my issue. I just assumed since this was closed in March that it was already in the releases but now I see that the latest one is from January. I'll copy over the files manually now, thanks!