Skip to content

getArticles does not use cursor based pagination #732

@shalabi

Description

@shalabi

Describe the bug
getArticles does not use cursor based pagination

To Reproduce
Call getArtficles on large help centers fails. Returns error:

HTTP/400: Bad Request - {"error":"LimitError","description":"Offset-based pagination is limited to 100 pages"}

Looking at code

  public Iterable<Article> getArticles() {
    return new PagedIterable<>(
        cnst("/help_center/articles.json"), handleList(Article.class, "articles"));
  }

should be:

  public Iterable<Article> getArticles() {
    return new PagedIterable<>(
        cbp("/help_center/articles.json"), handleList(Article.class, "articles"));
  }

Expected behavior
Cursor based pagination

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions