{"action":"created","issue":{"url":"https://api.github.com/repos/steemit/hivemind/issues/41","repository_url":"https://api.github.com/repos/steemit/hivemind","labels_url":"https://api.github.com/repos/steemit/hivemind/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/steemit/hivemind/issues/41/comments","events_url":"https://api.github.com/repos/steemit/hivemind/issues/41/events","html_url":"https://github.com/steemit/hivemind/issues/41","id":279904025,"number":41,"title":"cursor-style pagination?","user":{"login":"roadscape","id":5168676,"avatar_url":"https://avatars2.githubusercontent.com/u/5168676?v=4","gravatar_id":"","url":"https://api.github.com/users/roadscape","html_url":"https://github.com/roadscape","followers_url":"https://api.github.com/users/roadscape/followers","following_url":"https://api.github.com/users/roadscape/following{/other_user}","gists_url":"https://api.github.com/users/roadscape/gists{/gist_id}","starred_url":"https://api.github.com/users/roadscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roadscape/subscriptions","organizations_url":"https://api.github.com/users/roadscape/orgs","repos_url":"https://api.github.com/users/roadscape/repos","events_url":"https://api.github.com/users/roadscape/events{/privacy}","received_events_url":"https://api.github.com/users/roadscape/received_events","type":"User","site_admin":false},"labels":[{"id":681571449,"url":"https://api.github.com/repos/steemit/hivemind/labels/priority/low","name":"priority/low","color":"c5def5","default":false},{"id":555322802,"url":"https://api.github.com/repos/steemit/hivemind/labels/question","name":"question","color":"eeeeee","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/steemit/hivemind/milestones/1","html_url":"https://github.com/steemit/hivemind/milestone/1","labels_url":"https://api.github.com/repos/steemit/hivemind/milestones/1/labels","id":2920602,"number":1,"title":"1.0","description":"","creator":{"login":"roadscape","id":5168676,"avatar_url":"https://avatars2.githubusercontent.com/u/5168676?v=4","gravatar_id":"","url":"https://api.github.com/users/roadscape","html_url":"https://github.com/roadscape","followers_url":"https://api.github.com/users/roadscape/followers","following_url":"https://api.github.com/users/roadscape/following{/other_user}","gists_url":"https://api.github.com/users/roadscape/gists{/gist_id}","starred_url":"https://api.github.com/users/roadscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roadscape/subscriptions","organizations_url":"https://api.github.com/users/roadscape/orgs","repos_url":"https://api.github.com/users/roadscape/repos","events_url":"https://api.github.com/users/roadscape/events{/privacy}","received_events_url":"https://api.github.com/users/roadscape/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":7,"state":"open","created_at":"2017-11-17T19:54:03Z","updated_at":"2017-12-14T03:02:52Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-12-06T20:58:38Z","updated_at":"2017-12-14T03:02:52Z","closed_at":"2017-12-14T03:02:52Z","author_association":"COLLABORATOR","body":"currently with steemd all \"posts\" queries take a start (author,permlink) as a cursor to load successive pages from. hive just uses offset/limit. if we want to replicate existing APIs (nearly) 100% we would need to add the cursor option. this involves a bit more complexity because we'll need to perform a lookup on the column we're ordering by based on the author-permlink provided to know on which value to start. aside from the extra queries an upside is that seeking could be more efficient than simple offset; it's more infinite-scroll friendly; and, may be more consistent when result rows are 'moving' around.\r\n\r\nfor reference:\r\n```\r\nstruct discussion_query {\r\n   void validate()const{\r\n      FC_ASSERT( filter_tags.find(tag) == filter_tags.end() );\r\n      FC_ASSERT( limit <= 100 );\r\n   }\r\n\r\n   string           tag;\r\n   uint32_t         limit = 0;\r\n   set<string>      filter_tags;\r\n   set<string>      select_authors; ///< list of authors to include, posts not by this author are filtered\r\n   set<string>      select_tags; ///< list of tags to include, posts without these tags are filtered\r\n   uint32_t         truncate_body = 0; ///< the number of bytes of the post body to return, 0 for all\r\n   optional<string> start_author;\r\n   optional<string> start_permlink;\r\n   optional<string> parent_author;\r\n   optional<string> parent_permlink;\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/steemit/hivemind/issues/comments/351594754","html_url":"https://github.com/steemit/hivemind/issues/41#issuecomment-351594754","issue_url":"https://api.github.com/repos/steemit/hivemind/issues/41","id":351594754,"user":{"login":"roadscape","id":5168676,"avatar_url":"https://avatars2.githubusercontent.com/u/5168676?v=4","gravatar_id":"","url":"https://api.github.com/users/roadscape","html_url":"https://github.com/roadscape","followers_url":"https://api.github.com/users/roadscape/followers","following_url":"https://api.github.com/users/roadscape/following{/other_user}","gists_url":"https://api.github.com/users/roadscape/gists{/gist_id}","starred_url":"https://api.github.com/users/roadscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roadscape/subscriptions","organizations_url":"https://api.github.com/users/roadscape/orgs","repos_url":"https://api.github.com/users/roadscape/repos","events_url":"https://api.github.com/users/roadscape/events{/privacy}","received_events_url":"https://api.github.com/users/roadscape/received_events","type":"User","site_admin":false},"created_at":"2017-12-14T03:02:52Z","updated_at":"2017-12-14T03:02:52Z","author_association":"COLLABORATOR","body":"cursor-style pagination is being implemented as a requirement for legacy api (https://github.com/steemit/hivemind/issues/19)."}}
{"actor":{"display_login":"roadscape"}}