Etar-Calendar icon indicating copy to clipboard operation
Etar-Calendar copied to clipboard

[Bug] Deleting one event wipes out all events

Open hwansing opened this issue 2 years ago • 5 comments

I was just doing some testing for reporting a bug. During this testing, I chose to delete a (ONE !) yearly repeated event with all its repeatations, and - guess what - all events from my calendar were wiped out!!! Hrrrr. What the h.... How can I get my events back?

hwansing avatar Aug 07 '22 18:08 hwansing

I have synchronisation to e cloud enabled, can data be restored from the cloud somehow?

hwansing avatar Aug 07 '22 20:08 hwansing

Hi, can you give some context which software you use to sync your calendars and to where? I have never heard of such a bug and it sounds a bit unlikely that Etar is at fault (but I don't know all the code). For recovering the data, Etar only views and manipulates the data but it is stored in the Android calendar provider, a SQLite database. You can try to get data from there but it is unlikely that it is still there. I guess the more promising way is some backup of your cloud.

jspricke avatar Aug 07 '22 20:08 jspricke

I have a Fairphone3, bought with installed /e/ OS. This calendar is - I guess - the default calendar APP for /e/. The active synchronization is what's the default for /e/ and what was already installed: sync with e.cloud, which has been renamed into murena cloud, AFAIK.

hwansing avatar Aug 07 '22 20:08 hwansing

/e/ has it's own fork of Etar: https://gitlab.e.foundation/e/os/calendar I would propose to open an issue with them and ask if they can recover your data. I was not able to reproduce this, did you try?

jspricke avatar Aug 08 '22 07:08 jspricke

No, I did not try anything. My guess was, that chance for a successful recovery of my data is best, if I don't change anything on my device now. (Similar to a harddisk, where you deleted something by error. Many write accesses would probably overwrite the data in question.) If /e/ does not use plain etar, it's probably the wrong place for reporting this issue here, yes.

hwansing avatar Aug 08 '22 09:08 hwansing

Hi @jspricke,

I use /e/OS too and in Etar Calendar and /e/Calendar what I see is that you can't delete only an occurence of a serie. I guess it's your problem @hwansing? That you deleted the whole serie of event? You can delete current edited event and the next occurences of the event or all the occurences (before and after the current one which is edited) Is it a bug of is expected? If it is expected, do you know if there is an improvement already planned to be able to delete only the current occurence of a serie?

MINBL avatar Jan 30 '23 00:01 MINBL

From what I read in the source code, not being able to delete a single event in a series, is a workaround to a bug in CalendarProvider. https://github.com/Etar-Group/Etar-Calendar/blob/6dca08e2073ba17c2ff0e569f318f0b65b228b27/app/src/main/res/values/arrays.xml#L245-L248

But the previous comment is 15 years old, so I hope it's not a bug anymore.

bricewge avatar Sep 18 '23 10:09 bricewge