Open Bug 2052338 Opened 4 months ago Updated 10 days ago

Sync Graph calendars

Categories

(MailNews Core :: Networking: Exchange, task)

task
Points:
3

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: edicharry, Assigned: huntsdabibil)

Details

Attachments

(2 external files)

The initial implementation just uses a regular list endpoint for graph calendars, but it should be doing delta requests to fetch calendar updates.

Assignee: nobody → edicharry
Status: NEW → ASSIGNED
Points: --- → 3
Target Milestone: --- → 154 Branch

...actually I'm realizing there's more to this. It looks like the existing calendar API was not designed for automatically syncing new calendars, only listing what's available with the server and relying on future manual calendar adds to pick up anything new. So this requires updating the calendar API to handle syncing on new connections. Given that's a new mode of behavior for calendar, I'm thinking we probably want to defer this to a later implementation stage.

Assignee: edicharry → nobody
Status: ASSIGNED → NEW
Target Milestone: 154 Branch → ---

Follow discovery pages before updating names and permissions. Keep
local read-only choices, exclusions and unsubscriptions. Refresh
discovery from calendar and successful mail-account synchronization.
Use complete stable lists in V1; incremental beta list sync stays V2.

Local validation
Local Windows checks on the assembled current-upstream calendar stack plus
the independent notification patch passed: a native build with zero compiler
warnings; 32 selected component files; Graph appointment coverage (43 cases,
341 assertions); provider coverage (4 cases, 11 assertions); the OAuth provider
file; and four headless browser files (114 expected results, including two
expected todos, zero unexpected results). ESLint passed with no errors or
warnings. Intermediate JavaScript syntax and native interface boundary checks
passed. Individual intermediate native commits were not separately built.

Headless files: browser_eventDialogConflictPrompt.js, browser_eventUndoRedo.js,
browser_graphOfflineConflicts.js and browser_accountHubSyncCalendarExchange.js.
The generic test dispatcher stalled before UI execution; direct headless
mochitest execution passed all four files.

Remaining acceptance: real Outlook create/edit/delete, conditional versions,
offline conflicts and undo/redo; fresh initial mail import followed by a later
arrival; and upstream CI. Earlier live testing confirmed calendar loading and
cleared all warning icons. It does not establish live write acceptance.
Testing remains local. This WIP does not request landing.

Prepared and refined with OpenAI Codex assistance in collaboration with the
human contributor. The contributor owns the submission. No account profile,
private raw diagnostic log or authentication credential is included.

Avoid requesting calendar permissions when a mail-only account refreshes. Keep
automatic discovery for accounts with saved enrollment history or existing
registered Graph calendars, including after all subscriptions are removed.

Retain the missing-account calendar error without logging an unrelated null
client shutdown failure. Cover enrollment transitions and error reporting.

Prepared with OpenAI Codex assistance.

Assignee: nobody → huntsdabibil
Status: NEW → ASSIGNED

Pulling this out of phase 1 since it's a different mode of operation than Thunderbird is currently designed for.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: