googleapis / googleapis/google-api-ruby-client
google-apis-core: singular PagedResults ignores max
@quartzmo arbeitet bereits daran.
Seit 15.9.2026.
- Vorherrschende Sprache
- Ruby
- Sterne
- 2.9k
- Forks
- 888
- Ø Merge
- 6 Min.
- Gemergte PRs (30 T.)
- 218
Beschreibung
Google::Apis::Core::PagedResults#fetch_all does not increment item_count in the singular-result branch. A sequence of singular pages therefore ignores max and yields every item.
A three-page model with max: 2 currently yields all 3. Incrementing after the singular yield makes it stop after the first 2, matching the collection branch and documented limit.
The focused candidate passes 98 targeted examples and the cumulative 509-example core suite on Ruby 4.0.6. I found no open issue/PR overlap. I have a minimal patch ready and can submit it after maintainer acceptance per CONTRIBUTING. The source audit and candidate preparation used AI assistance; I reviewed and verified the result.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.