elementary / elementary/calendar

Dragging repeating event makes other occurrences disappear

Open
#585 5 comments 2 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
136
Forks
42
Avg merge
8h 33m
Merged PRs (30d)
3

Description

## Prerequisites
- [ ] I have searched open and closed issues for duplicates.

## Describe the bug
When I drag and drop a recurring event, its recurrence data seems to disappear. The recurrences disappear from the UI, although some information can be recovered using the Edit dialog.

### To Reproduce
Steps to reproduce the behavior:
1. Create a new recurring event.
2. Drag and drop one of the event cells in the grid view. You can drop on any day, including the original one.
3. All occurrences other than the one you dragged will disappear.
4. Open the dialog for that event. It will still have recurrence data.
5. Save the event. All following occurrences will reappear in the UI, and all occurrences before the selected cell will not.

After doing this process, last time I tried I dragged it around a few more times and more bugs started to show up. Eventually, the event got into an uneditable state. Haven't figured out how to reproduce that though. Hopefully it's the same issue that causes the above behavior.

### Expected behavior

Only the selected occurrence will be affected, and all recurrence data will be retained.

### Screenshots or screen recordings

Created a new recurring event:
![Screenshot from 2020-08-23 15-39-16](https://user-images.githubusercontent.com/29022469/90987312-9bf62b80-e54f-11ea-8c7e-bbeee8b5bdd9.png)
Dragged the event on the 16th and dropped it in the original cell:
![Screenshot from 2020-08-23 15-39-36](https://user-images.githubusercontent.com/29022469/90987330-af08fb80-e54f-11ea-8e31-76b58d5544a4.png)
Edited that event and saved:
![Screenshot from 2020-08-23 15-39-51](https://user-images.githubusercontent.com/29022469/90987334-b5977300-e54f-11ea-9ec1-4936d0d3ed73.png)

### Logs

Here's the part of the log starting when I created the event:
```
** (io.elementary.calendar:8842): DEBUG: 15:50:07.654: Store.vala:134: Adding event '8904bdfd8c24bb6577d813564585858deff045de'
** (io.elementary.calendar:8842): DEBUG: 15:50:07.675: Received 1 added event(s) for source 'Test'
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200902, RID 20200902 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200906, RID 20200906 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200909, RID 20200909 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200913, RID 20200913 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200916, RID 20200916 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200920, RID 20200920 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200923, RID 20200923 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200927, RID 20200927 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:07.676: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200930, RID 20200930 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.598: Store.vala:161: Updating event '8904bdfd8c24bb6577d813564585858deff045de' [mod_type=E_CAL_OBJ_MOD_ALL]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: Received 1 modified event(s) for source 'Test'
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200902, RID 20200902 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200906, RID 20200906 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200909, RID 20200909 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200913, RID 20200913 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200916, RID 20200916 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200920, RID 20200920 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200923, RID 20200923 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200927, RID 20200927 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.613: MODIFIED - ORIGINAL Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200930, RID 20200930 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:25.614: MODIFIED - GENERATED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200909, RID 20200909 )]

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found

** (io.elementary.calendar:8842): CRITICAL **: 15:50:27.174: Store.vala:126: No calendar client was found
** (io.elementary.calendar:8842): DEBUG: 15:50:29.105: Store.vala:161: Updating event '8904bdfd8c24bb6577d813564585858deff045de' [mod_type=E_CAL_OBJ_MOD_ALL]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.132: Received 1 added event(s) for source 'Test'
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200909, RID 20200909 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200913, RID 20200913 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200916, RID 20200916 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200920, RID 20200920 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200923, RID 20200923 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200927, RID 20200927 )]
** (io.elementary.calendar:8842): DEBUG: 15:50:29.135: ADDED Event ['Test', Test, UID 8904bdfd8c24bb6577d813564585858deff045de, START 20200930, RID 20200930 )]
```

## Platform Information

- [x] I'm using the latest version from git that I've manually compiled
- [ ] I'm using the latest released stable version
![about](https://user-images.githubusercontent.com/29022469/90987377-38b8c900-e550-11ea-98d1-001efe04a60c.png)

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/95452409-dragging-repeating-event-makes-other-occurrences-disappear?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F60388692&utm_medium=issues&utm_source=github).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.