mattermost4j icon indicating copy to clipboard operation
mattermost4j copied to clipboard

Feature Proposal: Get ALL records when Pager is omitted

Open maruTA-bis5 opened this issue 6 years ago • 1 comments

ChannelApi#getPublicChannelsForTeam(String) returns first 60 channels only.

All of Mattermost4J's API that have Pager parameter is same behavior. But Pager is optional. So, we should change behavior when Pager is omitted.

Pagerをパラメータに指定可能なMattermost4JのAPIはすべて同じ動作(60レコードだけ取得する)だが、Pagerを指定しない場合は全件取得された方が便利なのでそのように変更するべき。(もし変更しないのであればJavadocに明記する)

maruTA-bis5 avatar Jan 05 '19 02:01 maruTA-bis5

One point: Mattermost Server API returns up to 60 records when per_page is not set.

maruTA-bis5 avatar Jan 05 '19 03:01 maruTA-bis5