{"action":"created","comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments/217164754","pull_request_review_id":154793395,"id":217164754,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzE2NDc1NA==","diff_hunk":"@@ -291,9 +337,9 @@ public PostModel getPostByLocalPostId(int localId) {\n      */\n     public PostModel getPostByRemotePostId(long remoteId, SiteModel site) {\n         List<PostModel> result = WellSql.select(PostModel.class)\n-                .where().equals(PostModelTable.REMOTE_POST_ID, remoteId)\n-                .equals(PostModelTable.LOCAL_SITE_ID, site.getId()).endWhere()\n-                .getAsModel();\n+                                        .where().equals(PostModelTable.REMOTE_POST_ID, remoteId)\n+                                        .equals(PostModelTable.LOCAL_SITE_ID, site.getId()).endWhere()\n+                                        .getAsModel();","path":"fluxc/src/main/java/org/wordpress/android/fluxc/store/PostStore.java","position":115,"original_position":115,"commit_id":"b61feb628f8ecb13498d743c5296a8812a57ee22","original_commit_id":"b61feb628f8ecb13498d743c5296a8812a57ee22","user":{"login":"theck13","id":3827611,"node_id":"MDQ6VXNlcjM4Mjc2MTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3827611?v=4","gravatar_id":"","url":"https://api.github.com/users/theck13","html_url":"https://github.com/theck13","followers_url":"https://api.github.com/users/theck13/followers","following_url":"https://api.github.com/users/theck13/following{/other_user}","gists_url":"https://api.github.com/users/theck13/gists{/gist_id}","starred_url":"https://api.github.com/users/theck13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theck13/subscriptions","organizations_url":"https://api.github.com/users/theck13/orgs","repos_url":"https://api.github.com/users/theck13/repos","events_url":"https://api.github.com/users/theck13/events{/privacy}","received_events_url":"https://api.github.com/users/theck13/received_events","type":"User","site_admin":false},"body":"Can we revert these deep indents for better readability?","created_at":"2018-09-12T19:47:25Z","updated_at":"2018-09-12T19:48:55Z","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895#discussion_r217164754","pull_request_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments/217164754"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895#discussion_r217164754"},"pull_request":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895"}}},"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895","id":214781162,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NzgxMTYy","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895","diff_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895.patch","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/895","number":895,"state":"open","locked":false,"title":"Issue/revisions endpoints","user":{"login":"khaykov","id":728822,"node_id":"MDQ6VXNlcjcyODgyMg==","avatar_url":"https://avatars1.githubusercontent.com/u/728822?v=4","gravatar_id":"","url":"https://api.github.com/users/khaykov","html_url":"https://github.com/khaykov","followers_url":"https://api.github.com/users/khaykov/followers","following_url":"https://api.github.com/users/khaykov/following{/other_user}","gists_url":"https://api.github.com/users/khaykov/gists{/gist_id}","starred_url":"https://api.github.com/users/khaykov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaykov/subscriptions","organizations_url":"https://api.github.com/users/khaykov/orgs","repos_url":"https://api.github.com/users/khaykov/repos","events_url":"https://api.github.com/users/khaykov/events{/privacy}","received_events_url":"https://api.github.com/users/khaykov/received_events","type":"User","site_admin":false},"body":"This PR adds API calls for Revisions endpoints for both Pages and Posts.\r\n\r\n`RevisionModel` contains all the info from the response in a more flatter and easier to use format.\r\n\r\nWhen something is wrong, endpoints return generic network errors or empty revisions array.\r\n\r\nThis is probably not a final version of the client, as our requirements might update when we start developing client side.","created_at":"2018-09-11T22:07:34Z","updated_at":"2018-09-12T19:48:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b21e6b2601b88889c075c934390a5b0821a4fa67","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895/commits","review_comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895/comments","review_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/895/comments","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/b61feb628f8ecb13498d743c5296a8812a57ee22","head":{"label":"wordpress-mobile:issue/revisions-api-client","ref":"issue/revisions-api-client","sha":"b61feb628f8ecb13498d743c5296a8812a57ee22","user":{"login":"wordpress-mobile","id":1306301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDYzMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1306301?v=4","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":48792991,"node_id":"MDEwOlJlcG9zaXRvcnk0ODc5Mjk5MQ==","name":"WordPress-FluxC-Android","full_name":"wordpress-mobile/WordPress-FluxC-Android","owner":{"login":"wordpress-mobile","id":1306301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDYzMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1306301?v=4","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","description":"WordPress Network and Persistence layer based on the Flux architecture","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/releases{/id}","deployments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/deployments","created_at":"2015-12-30T09:21:57Z","updated_at":"2018-09-12T15:33:29Z","pushed_at":"2018-09-12T15:33:43Z","git_url":"git://github.com/wordpress-mobile/WordPress-FluxC-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-FluxC-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","homepage":null,"size":14517,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":13,"open_issues":74,"watchers":18,"default_branch":"develop"}},"base":{"label":"wordpress-mobile:develop","ref":"develop","sha":"cbe529c15c614a5e07830c61fab002fd42b003c4","user":{"login":"wordpress-mobile","id":1306301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDYzMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1306301?v=4","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"repo":{"id":48792991,"node_id":"MDEwOlJlcG9zaXRvcnk0ODc5Mjk5MQ==","name":"WordPress-FluxC-Android","full_name":"wordpress-mobile/WordPress-FluxC-Android","owner":{"login":"wordpress-mobile","id":1306301,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzMDYzMDE=","avatar_url":"https://avatars2.githubusercontent.com/u/1306301?v=4","gravatar_id":"","url":"https://api.github.com/users/wordpress-mobile","html_url":"https://github.com/wordpress-mobile","followers_url":"https://api.github.com/users/wordpress-mobile/followers","following_url":"https://api.github.com/users/wordpress-mobile/following{/other_user}","gists_url":"https://api.github.com/users/wordpress-mobile/gists{/gist_id}","starred_url":"https://api.github.com/users/wordpress-mobile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wordpress-mobile/subscriptions","organizations_url":"https://api.github.com/users/wordpress-mobile/orgs","repos_url":"https://api.github.com/users/wordpress-mobile/repos","events_url":"https://api.github.com/users/wordpress-mobile/events{/privacy}","received_events_url":"https://api.github.com/users/wordpress-mobile/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","description":"WordPress Network and Persistence layer based on the Flux architecture","fork":false,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android","forks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/forks","keys_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/teams","hooks_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/hooks","issue_events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/events{/number}","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/events","assignees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/assignees{/user}","branches_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/branches{/branch}","tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/tags","blobs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/refs{/sha}","trees_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/{sha}","languages_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/languages","stargazers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/stargazers","contributors_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contributors","subscribers_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscribers","subscription_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/subscription","commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/commits{/sha}","git_commits_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/git/commits{/sha}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/comments{/number}","issue_comment_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/comments{/number}","contents_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/contents/{+path}","compare_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/merges","archive_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/downloads","issues_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues{/number}","pulls_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls{/number}","milestones_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/milestones{/number}","notifications_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/labels{/name}","releases_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/releases{/id}","deployments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/deployments","created_at":"2015-12-30T09:21:57Z","updated_at":"2018-09-12T15:33:29Z","pushed_at":"2018-09-12T15:33:43Z","git_url":"git://github.com/wordpress-mobile/WordPress-FluxC-Android.git","ssh_url":"git@github.com:wordpress-mobile/WordPress-FluxC-Android.git","clone_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android.git","svn_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android","homepage":null,"size":14517,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":74,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":13,"open_issues":74,"watchers":18,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895"},"html":{"href":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/895"},"issue":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/895"},"comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/895/comments"},"review_comments":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895/comments"},"review_comment":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/895/commits"},"statuses":{"href":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/statuses/b61feb628f8ecb13498d743c5296a8812a57ee22"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"theck13"}}