Repository navigation
Conversation
Signed-off-by: 0xvectr <57480598+0xvectr@users.noreply.github.com>
WaylandYang
left a comment
There was a problem hiding this comment.
Thanks for tracking this down. The authenticated path looks right to me, including the DST overlap handling, and chrono-tz is a reasonable dependency since nothing in the workspace carries a tz database. One thing before merge:
- Anonymous sources now always write the bound for UTC-12, so every incremental run re-reads ~26 h of issues in both passes. Since
positionsincludes those already-seen issues, any of them updated between pass 1 and pass 2 fails the run with "changed during pagination"; on a busy anonymous project (e.g. issues.apache.org, which is UTC) that failure becomes much more frequent. Could we avoid the blanket fallback there — an optionaltime_zoneon the source config, or the offset from anonymous/rest/api/2/serverInfoas a best guess — and keep UTC-12 only when nothing is known? - If the wide window stays, could pass 2 leave issues at or before
sinceout of the positions comparison where paging doesn't depend on offsets (Cloud'snextPageToken)?
Jira reads an integer JQL time as an instant for any account, so anonymous sources no longer re-read 26 hours each run. Signed-off-by: 0xvectr <57480598+0xvectr@users.noreply.github.com>
|
Neither guess holds up: anonymous |
|
Thanks, and sorry this sat for ten days: the epoch-millisecond bound is a cleaner answer than either of my suggestions. It removes the zone question, the 26 h re-read and the |
A Jira sync now writes its
updated >=bound in the account'stimeZonefrom/rest/api/2/myself(newchrono-tzdep), so a UTC-5 account no longer skips 5 hours; with no readable zone, anonymous included, it uses UTC-12, re-reading up to 26 h.jqltakes the zone, notnow: an absolute bound depends only on since and zone, so tests stay deterministic.Closes #1484