Closed Bug 1623276 Opened 4 years ago Closed 4 years ago

New events do not appear in the Today Pane with a cached calDAV calendar

Categories

(Calendar :: Provider: CalDAV, defect, P1)

defect

Tracking

(thunderbird78 fixed)

RESOLVED FIXED
Thunderbird 78.0
Tracking Status
thunderbird78 --- fixed

People

(Reporter: darktrojan, Assigned: darktrojan)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

In bug 1585230 I introduced a flag to stop the Today Pane adding events individually and instead load them all together when loading was complete.

However the calDAV provider with offline cache does not fire the onLoad event (when adding a new event, possibly other times) which clears the flag and refreshes the view. This prevents any further new events from appearing in the pane.

Priority: -- → P2

I think I've seen this in the main views too? Or something similar where calendars for some reasons refuse to show new events.

Priority: P2 → P1
Assignee: nobody → geoff
Attached patch 1623276-onendbatch-1.diff — — Splinter Review

Fixing the caldav provider is more difficult than it looks. I did what I had in mind when I filed this bug (IIRC) and it went crazy, continuously hitting the server. An easier fix in the short term is to refresh the list at onEndBatch instead of onLoad. It's potentially not as good for performance but at least it works.

Attachment #9157895 - Flags: review?(paul)
Attachment #9157895 - Flags: approval-calendar-beta?(paul)
Status: NEW → ASSIGNED
Comment on attachment 9157895 [details] [diff] [review]
1623276-onendbatch-1.diff

Review of attachment 9157895 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good.
Attachment #9157895 - Flags: review?(paul)
Attachment #9157895 - Flags: review+
Attachment #9157895 - Flags: approval-calendar-beta?(paul)
Attachment #9157895 - Flags: approval-calendar-beta+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/1141a5e07869
Refresh agenda and unifinder in onEndBatch instead of onLoad. r=pmorris

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 79
Target Milestone: 79 → 78
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: