Closed Bug 2058697 Opened 4 months ago Closed 20 days ago

[graph calendar] Handle non-UTC time zone responses from Graph

Categories

(MailNews Core :: Networking: Exchange, task)

task

Tracking

(Not tracked)

RESOLVED FIXED
162 Branch

People

(Reporter: edicharry, Assigned: huntsdabibil, NeedInfo)

References

Details

Attachments

(4 external files)

According to https://learn.microsoft.com/en-us/graph/api/resources/datetimetimezone?view=graph-rest-1.0 , times associated with calendar events can be returned with a specified time zone. From our test account, we have only seen UTC times, but the documentation is unclear on whether the server will always return events in UTC. In addition, clients can use a header to change the time zone reported by the server. See https://learn.microsoft.com/en-us/graph/api/event-get?view=graph-rest-1.0&tabs=http

Represent selected event fields, conditional resource writes, retries
and continuation responses in the existing Graph fake service. Keep
legacy delta fixtures usable until the stable-read dependency lands.

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.

Use the stable events endpoint and follow continuation URLs unchanged.
Validate the full snapshot before local mutation; preserve queued work
and local reminder state. Convert Windows/IANA and all-day dates.
Include the JSON listener boundary, account refresh queue, resource
fixtures and read/continuation regressions. This is the largest review
unit because the native and JavaScript listener contract must agree.

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.

Exercise complete-cache protection when conversion, later pages or
conflicting repetitions fail. Cover identical repetition, old token
cleanup and orphan pruning after creation is available to the fixture.

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.

Attachment #9658978 - Attachment description: WIP: Bug 2058697 - Part 2: Read complete Graph event lists and preserve event time zones. → WIP: Bug 2058697 - Preserve Graph event time zones and all-day dates
Assignee: nobody → huntsdabibil
Attachment #9658978 - Attachment description: WIP: Bug 2058697 - Preserve Graph event time zones and all-day dates → Bug 2058697 - Preserve Graph event time zones and all-day dates r=edicharry
Status: NEW → ASSIGNED
Attachment #9658977 - Attachment description: WIP: Bug 2058697 - Part 1: Extend the Graph test server with calendar resources. → Bug 2058697 - Part 1: Extend the Graph test server with calendar resources. r=edicharry
Attachment #9658978 - Attachment description: Bug 2058697 - Preserve Graph event time zones and all-day dates r=edicharry → WIP: Bug 2058697 - Respect Graph event time zones r=edicharry

Hunter, please attach only a single patch to this issue and tag me for review on it. You can tag reviewers either manually in phabricator or using r=[user or group name] at the end of the commit message. You can tag me directly (edicharry) or tag #thunderbird-back-end-reviewers. Almost all of your patches are marked as WIP because they don't have reviewers.

Flags: needinfo?(huntsdabibil)
Attachment #9658978 - Attachment description: WIP: Bug 2058697 - Respect Graph event time zones r=edicharry → Bug 2058697 - Respect Graph event time zones r=edicharry

Hi Eleanor, I added checkin-needed-tb and set the target milestone to 160 Branch. Please let me know if you'd prefer a different milestone and I'll change it. Thanks!

Target Milestone: --- → 160 Branch
Target Milestone: 160 Branch → 162 Branch

This should be 162. In general, you should always pick the current development milestone.

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/102575846dbc
Respect Graph event time zones r=edicharry

Status: ASSIGNED → RESOLVED
Closed: 22 days ago
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/812b0162a418
Remove duplicated date/time fields in test data object. r=mkmelin

Status: REOPENED → RESOLVED
Closed: 22 days ago → 20 days ago
Resolution: --- → FIXED
Attachment #9658988 - Attachment description: WIP: Bug 2058697 - Part 3: Cover Graph snapshot recovery and cache preservation. → Bug 2058697 - Part 3: Cover Graph snapshot recovery and cache preservation.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: