fix(review): paginate getLatestDeploymentStatus deployments and statuses (#7805) - #7843
Conversation
…ses (JSONbored#7805) Reuse findAcrossPages for both GitHub list reads so preview URL discovery does not silently miss deployments or statuses beyond page 1. Closes JSONbored#7805 Co-authored-by: Cursor <cursoragent@cursor.com>
…e only Avoid a redundant page-1 refetch after pagination and satisfy exactOptionalPropertyTypes for latestState. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
…JSONbored#7805) Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
JSONbored#7805) Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-21 15:07:19 UTC
Review summary Nits — 5 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://loopover.ai/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7843 +/- ##
==========================================
+ Coverage 88.65% 88.82% +0.16%
==========================================
Files 730 89 -641
Lines 76959 21351 -55608
Branches 22787 3722 -19065
==========================================
- Hits 68229 18965 -49264
+ Misses 7684 2196 -5488
+ Partials 1046 190 -856
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Summary
getLatestDeploymentStatusdeployments-list and per-deployment-statuses reads viafindAcrossPages(getLatestDeploymentStatus doesn't paginate deployments/statuses reads, unlike its siblings in the same file #7805).findDeploymentUrlhelper pattern; keepper_page=10as specified in the issue.Closes #7805
Test plan
test/unit/preview-url.test.ts