{"action":"created","comment":{"url":"https://api.github.com/repos/google/paco/pulls/comments/87480157","pull_request_review_id":8090858,"id":87480157,"diff_hunk":"@@ -419,5 +420,30 @@ private void updateJoinedExperiment(SQLiteDatabase db, Experiment experiment) {\n //                 + refCol + \" = \" + entry.getKey() + \";\");\n //    }\n //  }\n+  \n+  public Cursor query(int tableIndicator, String[] projection, String selection,\n+\t\t  String[] selectionArgs, String sortOrder, String groupBy, String having) {\n+\t  SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n+\t  switch (tableIndicator) {\n+\t    case ExperimentProvider.EVENTS_OUTPUTS_DATATYPE:\n+\t    \tqb.setTables(ExperimentProvider.EVENTS_TABLE_NAME+ \" INNER JOIN \" + \"OUTPUTS\" + ","path":"Paco/src/com/pacoapp/paco/model/DatabaseHelper.java","position":18,"original_position":18,"commit_id":"2fcb9903df00d03343cdf155ad8baa149ca906c1","original_commit_id":"2fcb9903df00d03343cdf155ad8baa149ca906c1","user":{"login":"BobEvans","id":1422459,"avatar_url":"https://avatars.githubusercontent.com/u/1422459?v=3","gravatar_id":"","url":"https://api.github.com/users/BobEvans","html_url":"https://github.com/BobEvans","followers_url":"https://api.github.com/users/BobEvans/followers","following_url":"https://api.github.com/users/BobEvans/following{/other_user}","gists_url":"https://api.github.com/users/BobEvans/gists{/gist_id}","starred_url":"https://api.github.com/users/BobEvans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BobEvans/subscriptions","organizations_url":"https://api.github.com/users/BobEvans/orgs","repos_url":"https://api.github.com/users/BobEvans/repos","events_url":"https://api.github.com/users/BobEvans/events{/privacy}","received_events_url":"https://api.github.com/users/BobEvans/received_events","type":"User","site_admin":false},"body":"Please use the Experiment_Provider.OUTPUTS_TABLE_NAME constant for the table name here in case we change it in the future.","created_at":"2016-11-10T20:35:39Z","updated_at":"2016-11-10T20:36:23Z","html_url":"https://github.com/google/paco/pull/1531#discussion_r87480157","pull_request_url":"https://api.github.com/repos/google/paco/pulls/1531","_links":{"self":{"href":"https://api.github.com/repos/google/paco/pulls/comments/87480157"},"html":{"href":"https://github.com/google/paco/pull/1531#discussion_r87480157"},"pull_request":{"href":"https://api.github.com/repos/google/paco/pulls/1531"}}},"pull_request":{"url":"https://api.github.com/repos/google/paco/pulls/1531","id":93061789,"html_url":"https://github.com/google/paco/pull/1531","diff_url":"https://github.com/google/paco/pull/1531.diff","patch_url":"https://github.com/google/paco/pull/1531.patch","issue_url":"https://api.github.com/repos/google/paco/issues/1531","number":1531,"state":"open","locked":false,"title":"Get by query","user":{"login":"indhumeyyappan","id":23344641,"avatar_url":"https://avatars.githubusercontent.com/u/23344641?v=3","gravatar_id":"","url":"https://api.github.com/users/indhumeyyappan","html_url":"https://github.com/indhumeyyappan","followers_url":"https://api.github.com/users/indhumeyyappan/followers","following_url":"https://api.github.com/users/indhumeyyappan/following{/other_user}","gists_url":"https://api.github.com/users/indhumeyyappan/gists{/gist_id}","starred_url":"https://api.github.com/users/indhumeyyappan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indhumeyyappan/subscriptions","organizations_url":"https://api.github.com/users/indhumeyyappan/orgs","repos_url":"https://api.github.com/users/indhumeyyappan/repos","events_url":"https://api.github.com/users/indhumeyyappan/events{/privacy}","received_events_url":"https://api.github.com/users/indhumeyyappan/received_events","type":"User","site_admin":false},"body":"I see quite a few formatting issues (like indentations, spaces, line breaks...). I will fix those and check it in ASAP. Let me know your feedback on the feature implementation.","created_at":"2016-11-09T23:52:18Z","updated_at":"2016-11-10T20:57:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a740b0b700f17a86588289803d4d681182480772","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/paco/pulls/1531/commits","review_comments_url":"https://api.github.com/repos/google/paco/pulls/1531/comments","review_comment_url":"https://api.github.com/repos/google/paco/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/paco/issues/1531/comments","statuses_url":"https://api.github.com/repos/google/paco/statuses/2fcb9903df00d03343cdf155ad8baa149ca906c1","head":{"label":"google:getByQuery","ref":"getByQuery","sha":"2fcb9903df00d03343cdf155ad8baa149ca906c1","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":11293574,"name":"paco","full_name":"google/paco","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/paco","description":"This is the Paco behavioral science mobile research platform","fork":false,"url":"https://api.github.com/repos/google/paco","forks_url":"https://api.github.com/repos/google/paco/forks","keys_url":"https://api.github.com/repos/google/paco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/paco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/paco/teams","hooks_url":"https://api.github.com/repos/google/paco/hooks","issue_events_url":"https://api.github.com/repos/google/paco/issues/events{/number}","events_url":"https://api.github.com/repos/google/paco/events","assignees_url":"https://api.github.com/repos/google/paco/assignees{/user}","branches_url":"https://api.github.com/repos/google/paco/branches{/branch}","tags_url":"https://api.github.com/repos/google/paco/tags","blobs_url":"https://api.github.com/repos/google/paco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/paco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/paco/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/paco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/paco/statuses/{sha}","languages_url":"https://api.github.com/repos/google/paco/languages","stargazers_url":"https://api.github.com/repos/google/paco/stargazers","contributors_url":"https://api.github.com/repos/google/paco/contributors","subscribers_url":"https://api.github.com/repos/google/paco/subscribers","subscription_url":"https://api.github.com/repos/google/paco/subscription","commits_url":"https://api.github.com/repos/google/paco/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/paco/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/paco/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/paco/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/paco/contents/{+path}","compare_url":"https://api.github.com/repos/google/paco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/paco/merges","archive_url":"https://api.github.com/repos/google/paco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/paco/downloads","issues_url":"https://api.github.com/repos/google/paco/issues{/number}","pulls_url":"https://api.github.com/repos/google/paco/pulls{/number}","milestones_url":"https://api.github.com/repos/google/paco/milestones{/number}","notifications_url":"https://api.github.com/repos/google/paco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/paco/labels{/name}","releases_url":"https://api.github.com/repos/google/paco/releases{/id}","deployments_url":"https://api.github.com/repos/google/paco/deployments","created_at":"2013-07-09T20:38:11Z","updated_at":"2016-11-08T18:53:22Z","pushed_at":"2016-11-09T23:52:18Z","git_url":"git://github.com/google/paco.git","ssh_url":"git@github.com:google/paco.git","clone_url":"https://github.com/google/paco.git","svn_url":"https://github.com/google/paco","homepage":"http://www.pacoapp.com/","size":571329,"stargazers_count":244,"watchers_count":244,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":242,"forks":76,"open_issues":242,"watchers":244,"default_branch":"develop"}},"base":{"label":"google:develop","ref":"develop","sha":"f5c52e6401e199baa206c93fc57f6141ef3e465e","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":11293574,"name":"paco","full_name":"google/paco","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/paco","description":"This is the Paco behavioral science mobile research platform","fork":false,"url":"https://api.github.com/repos/google/paco","forks_url":"https://api.github.com/repos/google/paco/forks","keys_url":"https://api.github.com/repos/google/paco/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/paco/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/paco/teams","hooks_url":"https://api.github.com/repos/google/paco/hooks","issue_events_url":"https://api.github.com/repos/google/paco/issues/events{/number}","events_url":"https://api.github.com/repos/google/paco/events","assignees_url":"https://api.github.com/repos/google/paco/assignees{/user}","branches_url":"https://api.github.com/repos/google/paco/branches{/branch}","tags_url":"https://api.github.com/repos/google/paco/tags","blobs_url":"https://api.github.com/repos/google/paco/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/paco/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/paco/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/paco/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/paco/statuses/{sha}","languages_url":"https://api.github.com/repos/google/paco/languages","stargazers_url":"https://api.github.com/repos/google/paco/stargazers","contributors_url":"https://api.github.com/repos/google/paco/contributors","subscribers_url":"https://api.github.com/repos/google/paco/subscribers","subscription_url":"https://api.github.com/repos/google/paco/subscription","commits_url":"https://api.github.com/repos/google/paco/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/paco/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/paco/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/paco/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/paco/contents/{+path}","compare_url":"https://api.github.com/repos/google/paco/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/paco/merges","archive_url":"https://api.github.com/repos/google/paco/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/paco/downloads","issues_url":"https://api.github.com/repos/google/paco/issues{/number}","pulls_url":"https://api.github.com/repos/google/paco/pulls{/number}","milestones_url":"https://api.github.com/repos/google/paco/milestones{/number}","notifications_url":"https://api.github.com/repos/google/paco/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/paco/labels{/name}","releases_url":"https://api.github.com/repos/google/paco/releases{/id}","deployments_url":"https://api.github.com/repos/google/paco/deployments","created_at":"2013-07-09T20:38:11Z","updated_at":"2016-11-08T18:53:22Z","pushed_at":"2016-11-09T23:52:18Z","git_url":"git://github.com/google/paco.git","ssh_url":"git@github.com:google/paco.git","clone_url":"https://github.com/google/paco.git","svn_url":"https://github.com/google/paco","homepage":"http://www.pacoapp.com/","size":571329,"stargazers_count":244,"watchers_count":244,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":76,"mirror_url":null,"open_issues_count":242,"forks":76,"open_issues":242,"watchers":244,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/google/paco/pulls/1531"},"html":{"href":"https://github.com/google/paco/pull/1531"},"issue":{"href":"https://api.github.com/repos/google/paco/issues/1531"},"comments":{"href":"https://api.github.com/repos/google/paco/issues/1531/comments"},"review_comments":{"href":"https://api.github.com/repos/google/paco/pulls/1531/comments"},"review_comment":{"href":"https://api.github.com/repos/google/paco/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/paco/pulls/1531/commits"},"statuses":{"href":"https://api.github.com/repos/google/paco/statuses/2fcb9903df00d03343cdf155ad8baa149ca906c1"}}}}
{"actor":{"display_login":"BobEvans"}}