googleapis / googleapis/google-api-ruby-client

google-apis-core: singular PagedResults ignores max

Offen
#27,759 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@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

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.