Skip to content

google-apis-core: singular PagedResults ignores max #27759

Description

@OskarEichler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions