From 34e9a99d6169ee6dec042602ff55ec845397039a Mon Sep 17 00:00:00 2001 From: Rahix Date: Thu, 22 May 2025 17:23:46 +0200 Subject: [PATCH] manager: Fix pagination limit for issue list It turns out that `None` does not disable pagination, it just uses the default limit. Set an obscenely high limit to ensure we get the full list. --- techtree-manager/src/collect.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/techtree-manager/src/collect.rs b/techtree-manager/src/collect.rs index 3c03497..81a0971 100644 --- a/techtree-manager/src/collect.rs +++ b/techtree-manager/src/collect.rs @@ -13,7 +13,7 @@ pub async fn collect_tree( // We also want the closed issues state: Some(forgejo_api::structs::IssueListIssuesQueryState::All), // No pagination - limit: None, + limit: Some(10000), // Only issues r#type: Some(forgejo_api::structs::IssueListIssuesQueryType::Issues), ..Default::default() @@ -49,7 +49,7 @@ pub async fn collect_tree( &meta.issue.repository.name, &issue.to_string(), forgejo_api::structs::IssueListIssueDependenciesQuery { - limit: None, + limit: Some(10000), ..Default::default() }, )