From 9a5e72abfc60775dac6168f0a2bd73c2f1aa3dd5 Mon Sep 17 00:00:00 2001 From: alrayyes <511318+alrayyes@users.noreply.github.com> Date: Thu, 19 Nov 2026 20:14:14 +0000 Subject: [PATCH] fix: regenerate client from updated forge-dashboard spec --- openapi/SPEC_COMMIT | 2 +- openapi/openapi.yaml | 5 ++++- .../api/dashboard/get_issue_details.py | 20 +++++++++++++++---- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/openapi/SPEC_COMMIT b/openapi/SPEC_COMMIT index 42ec55f..ddc0992 100644 --- a/openapi/SPEC_COMMIT +++ b/openapi/SPEC_COMMIT @@ -1 +1 @@ -50540a9c6bb9124f62060e19627d0e72f1c8d938 +c3443a9c7bbd3c7876cd3f6805c8431a57e27198 diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index eb87455..5b7351c 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -2548,7 +2548,10 @@ paths: `references` lists the items that refer to the issue. GitHub adds them to the same query; Forgejo reads the issue's timeline once more, one - request per page of 50 events and an empty one to end on. + request per page of 50 events and an empty one to end on, and only the + first 500 events (the oldest), so the newest references of a longer + thread are left out. A timeline that fails leaves the references read + before the failure, or none, without failing the read. Every text is Markdown exactly as the forge stores it (`format` is always `markdown`). The server neither converts nor sanitises it, so a diff --git a/src/forge_dashboard/_generated/api/dashboard/get_issue_details.py b/src/forge_dashboard/_generated/api/dashboard/get_issue_details.py index 74ae9d0..f49a924 100644 --- a/src/forge_dashboard/_generated/api/dashboard/get_issue_details.py +++ b/src/forge_dashboard/_generated/api/dashboard/get_issue_details.py @@ -138,7 +138,10 @@ def sync_detailed( `references` lists the items that refer to the issue. GitHub adds them to the same query; Forgejo reads the issue's timeline once more, one - request per page of 50 events and an empty one to end on. + request per page of 50 events and an empty one to end on, and only the + first 500 events (the oldest), so the newest references of a longer + thread are left out. A timeline that fails leaves the references read + before the failure, or none, without failing the read. Every text is Markdown exactly as the forge stores it (`format` is always `markdown`). The server neither converts nor sanitises it, so a @@ -207,7 +210,10 @@ def sync( `references` lists the items that refer to the issue. GitHub adds them to the same query; Forgejo reads the issue's timeline once more, one - request per page of 50 events and an empty one to end on. + request per page of 50 events and an empty one to end on, and only the + first 500 events (the oldest), so the newest references of a longer + thread are left out. A timeline that fails leaves the references read + before the failure, or none, without failing the read. Every text is Markdown exactly as the forge stores it (`format` is always `markdown`). The server neither converts nor sanitises it, so a @@ -271,7 +277,10 @@ async def asyncio_detailed( `references` lists the items that refer to the issue. GitHub adds them to the same query; Forgejo reads the issue's timeline once more, one - request per page of 50 events and an empty one to end on. + request per page of 50 events and an empty one to end on, and only the + first 500 events (the oldest), so the newest references of a longer + thread are left out. A timeline that fails leaves the references read + before the failure, or none, without failing the read. Every text is Markdown exactly as the forge stores it (`format` is always `markdown`). The server neither converts nor sanitises it, so a @@ -340,7 +349,10 @@ async def asyncio( `references` lists the items that refer to the issue. GitHub adds them to the same query; Forgejo reads the issue's timeline once more, one - request per page of 50 events and an empty one to end on. + request per page of 50 events and an empty one to end on, and only the + first 500 events (the oldest), so the newest references of a longer + thread are left out. A timeline that fails leaves the references read + before the failure, or none, without failing the read. Every text is Markdown exactly as the forge stores it (`format` is always `markdown`). The server neither converts nor sanitises it, so a