Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't break trashbin if calendar is undefined #1873

Merged
merged 1 commit into from
Dec 5, 2021

Conversation

raimund-schluessler
Copy link
Member

This currently only contains the first half of the fix. The trash bin will now properly load and show all deleted items. Deletion also works fine.

But, for deleted events from calendars that only support events (not tasks), Unknown calendar will be shown. This is because these calendars are not loaded by the Tasks app by default.

In order to make this work properly, we have to load all calendars from the server when opening the trash bin. This also covers calendars that were newly created after the initial load of the app.

Closes #1803.

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
@raimund-schluessler raimund-schluessler added this to the 0.14.3 milestone Dec 4, 2021
@codecov
Copy link

codecov bot commented Dec 4, 2021

Codecov Report

Merging #1873 (de65039) into master (217b670) will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##             master    #1873   +/-   ##
=========================================
  Coverage     30.44%   30.44%           
  Complexity       41       41           
=========================================
  Files            66       66           
  Lines          3134     3134           
  Branches        585      586    +1     
=========================================
  Hits            954      954           
  Misses         2180     2180           

@raimund-schluessler
Copy link
Member Author

I will merge this now. I created another issue for the second half of the fix: #1875.

@raimund-schluessler raimund-schluessler merged commit 7c89de7 into master Dec 5, 2021
@delete-merged-branch delete-merged-branch bot deleted the fix/1803/trashbin branch December 5, 2021 09:47
@dillfrescott
Copy link

dillfrescott commented Dec 8, 2021

Ah, I believe I am experiencing this issue. My trash bin fails to load right now. I think it might be caused by the issue that this merge fixed.

@raimund-schluessler
Copy link
Member Author

Ah, I believe I am experiencing this issue. My trash bin fails to load right now. I think it might be caused by the issue that this merge fixed.

The fix will come with the next release. In the meantime you might be able to delete the event that breaks the Tasks trash bin from the Calendar app trash bin.

tcitworld added a commit to nextcloud/calendar that referenced this pull request Jan 29, 2022
…s unavailable

Fix is very similar to nextcloud/tasks#1873

Closes #3894

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
backportbot-nextcloud bot pushed a commit to nextcloud/calendar that referenced this pull request Feb 2, 2022
…s unavailable

Fix is very similar to nextcloud/tasks#1873

Closes #3894

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
st3iny pushed a commit to nextcloud/calendar that referenced this pull request Feb 8, 2022
…s unavailable

Fix is very similar to nextcloud/tasks#1873

Closes #3894

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Task's trash bin do not load if a Calendar's event has been deleted
2 participants