From https://hg.mozilla.org/comm-central/file/d5da9c0cd114/calendar/providers/gdata/components/calGoogleCalendar.js#l221 > this.resetLog(); resetLog calls resetSync which calls calStorageCalendar.deleteCalendar which wipes everything from the offline cache. This is very bad. Only tasks should be deleted at this point. (It looks like getUpdatedMin was written to be used for more than flushing the tasks, which is the only thing it does now.)
Ah yes, indeed. It might not be /that/ bad, because at least for new calendars using the wizard its not possible to create a calendar that has both events and tasks, but of course for migrated calendars this is different. I don't think we have code to remove only a certain class of items, I'd either have to loop through events and delete them one by one, or live with the fact that events are also re-downloaded. Given that this only kicks in when there has been no update for 7 days, I think it might be acceptable to re-download all events too?
Summary: Events deleted when during full sync of tasks → Events deleted during full sync of tasks
(In reply to david from comment #3) According to description and the message you are experiencing a different problem than the one reported here. Could you please retest with the latest releases of both Lightning and Provider for Google Calendar extension and file a new bug if the problem still exists?
Given the performance implications of removing only tasks, and the fact that its not possible to create shared task/event calendars in the UI, I'm going to mark this one WONTFIX. Sorry!
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.