Skip to content

The docs say Jira Cloud pages by token without a total, and the Jira fetch takes the Cloud flag like the GitHub one - #1461

Merged
WaylandYang merged 1 commit into
devfrom
docs/jira-cloud-paging
Oct 29, 2026
Merged

WaylandYang merged 1 commit into
devfrom
docs/jira-cloud-paging

Conversation

@WaylandYang

Copy link
Copy Markdown
Contributor

Follow-up to #1453.

Docs. docs/design/sources.md and ADR 0072 still said Jira requires the search total to detect a premature end. That is now true only for Server and Data Center. Jira Cloud's search/jql has no total (Atlassian CHANGE-2046), so there an empty page, or a page without nextPageToken, before isLast fails the run. Both now say so.

Code. #1453 added a fetch_window wrapper that only computed is_jira_cloud(base_url) and called fetch_window_on, so that tests could force the Cloud path against a local mock. github_issues::fetch_window already takes its mode as a plain bool from the caller, so the Jira one now does the same: one function, is_jira_cloud is public, and sync_jira_issues passes it. No behaviour change. The production code loses the 20-line wrapper; the test diff is mostly rustfmt rewrapping calls that gained an argument.

Checked: cargo fmt --all, cargo clippy -p utopia-server --all-targets -- -D warnings, and cargo test -p utopia-server jira (16 passed).

🤖 Generated with Claude Code

…fetch takes the Cloud flag like the GitHub one

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Wayland Yang <wayland@Mac.bbrouter>
@WaylandYang
WaylandYang merged commit 7d699b7 into dev Oct 29, 2026
6 checks passed
@WaylandYang
WaylandYang deleted the docs/jira-cloud-paging branch October 29, 2026 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant