Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

google-apis-core: singular PagedResults ignores max

Aperta
#27,759 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@torreypayne ci sta già lavorando.

Dal 22/9/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Ruby
Stelle
2.9k
Fork
888
Merge medio
8m
PR unite (30g)
242

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di googleapis/google-api-ruby-client

Tutte le issue di googleapis/google-api-ruby-client

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.