{"action":"created","issue":{"url":"https://api.github.com/repos/mgattozzi/github-rs/issues/18","repository_url":"https://api.github.com/repos/mgattozzi/github-rs","labels_url":"https://api.github.com/repos/mgattozzi/github-rs/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/mgattozzi/github-rs/issues/18/comments","events_url":"https://api.github.com/repos/mgattozzi/github-rs/issues/18/events","html_url":"https://github.com/mgattozzi/github-rs/issues/18","id":201881324,"number":18,"title":"Support de-pagination","user":{"login":"mathstuf","id":97253,"avatar_url":"https://avatars2.githubusercontent.com/u/97253?v=4","gravatar_id":"","url":"https://api.github.com/users/mathstuf","html_url":"https://github.com/mathstuf","followers_url":"https://api.github.com/users/mathstuf/followers","following_url":"https://api.github.com/users/mathstuf/following{/other_user}","gists_url":"https://api.github.com/users/mathstuf/gists{/gist_id}","starred_url":"https://api.github.com/users/mathstuf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathstuf/subscriptions","organizations_url":"https://api.github.com/users/mathstuf/orgs","repos_url":"https://api.github.com/users/mathstuf/repos","events_url":"https://api.github.com/users/mathstuf/events{/privacy}","received_events_url":"https://api.github.com/users/mathstuf/received_events","type":"User","site_admin":false},"labels":[{"id":402291610,"url":"https://api.github.com/repos/mgattozzi/github-rs/labels/Enhancement","name":"Enhancement","color":"84b6eb","default":false},{"id":581017328,"url":"https://api.github.com/repos/mgattozzi/github-rs/labels/Future%20Work","name":"Future Work","color":"0e8a16","default":false},{"id":581017208,"url":"https://api.github.com/repos/mgattozzi/github-rs/labels/Request","name":"Request","color":"006b75","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2017-01-19T14:51:52Z","updated_at":"2018-04-13T15:34:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Paginated queries are a bit annoying and the `next` headers given by github itself are better than just doing blind page bumps (race conditions with remote actions), so a way to just handle the pagination internally would be great.\r\n\r\nSeparate calls for each is probably unweildly, so maybe something like:\r\n\r\n```rust\r\nenum Pagination {\r\n    SinglePage(page_num: u64, page_size: u64),\r\n    FirstN(count: usize),\r\n    All,\r\n}\r\n```\r\n\r\nThen API rate limiting could also be detected in one place and handled gracefully."},"comment":{"url":"https://api.github.com/repos/mgattozzi/github-rs/issues/comments/381173932","html_url":"https://github.com/mgattozzi/github-rs/issues/18#issuecomment-381173932","issue_url":"https://api.github.com/repos/mgattozzi/github-rs/issues/18","id":381173932,"user":{"login":"nbigaouette-eai","id":25907218,"avatar_url":"https://avatars3.githubusercontent.com/u/25907218?v=4","gravatar_id":"","url":"https://api.github.com/users/nbigaouette-eai","html_url":"https://github.com/nbigaouette-eai","followers_url":"https://api.github.com/users/nbigaouette-eai/followers","following_url":"https://api.github.com/users/nbigaouette-eai/following{/other_user}","gists_url":"https://api.github.com/users/nbigaouette-eai/gists{/gist_id}","starred_url":"https://api.github.com/users/nbigaouette-eai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbigaouette-eai/subscriptions","organizations_url":"https://api.github.com/users/nbigaouette-eai/orgs","repos_url":"https://api.github.com/users/nbigaouette-eai/repos","events_url":"https://api.github.com/users/nbigaouette-eai/events{/privacy}","received_events_url":"https://api.github.com/users/nbigaouette-eai/received_events","type":"User","site_admin":false},"created_at":"2018-04-13T15:34:04Z","updated_at":"2018-04-13T15:34:04Z","author_association":"NONE","body":"Until this is implemented in a nice way, how should we go about getting multiple pages?\r\n\r\nFor example, how would one get issues that appear on the second page? The [github docs](https://developer.github.com/v3/guides/traversing-with-pagination/) mentions the `page=X` and `per_page=Y\" url arguments but I couldn't find how to control those when using `client.get().repos().owner(\"owner\").repo(\"repo\").issues().execute::<Vec<Value>>()`..."}}
{"actor":{"display_login":"nbigaouette-eai"}}