b2io / kubera

A project management dashboard for GitHub and Harvest.

Home Page:https://b2io.github.io/kubera

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix paging in getRepoReport for imbalanced repos

mewdriller opened this issue · comments

Related to #7.

When repo has an imbalance of page numbers between issues and projects (e.g.: 10 pages of issues and 1 page of projects), the resulting report has duplicated items from the smaller of the collections (e.g.: projects).

  • Conditionally include the issues/projects portion of the query if there are more pages for that sub-resource.
  • Refactor paged sub-resource querying to reduce complexity.