Skip to content

tasks_base.rb#get_tasks() pagination broken #110

@apiology

Description

@apiology

/tasks appears to be a legacy endpoint which requires limit be specified if the number of tasks returned would require pagination:

Unfortunately, 'limit' is not sent in automatically in the Ruby client library, nor is it allowed to be sent in by the client library user. Arguably it should be a keyword argument that defaults to 20 and can be overridden.

As a result, in Ruby, client.tasks.get_tasks() cannot be used when it would return a great number of items.

In addition, the documentation is wrong, as it suggests you can pass in 'limit' as part of the options - this has no effect, as it gets translated to 'opt_limit', which is not recognized by the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions