{"action":"created","comment":{"url":"https://api.github.com/repos/midasplatform/Midas/pulls/comments/51481557","id":51481557,"diff_hunk":"@@ -150,4 +152,75 @@ public function getOrCreateSubmission($producerDao, $uuid)\n \n         return $submissionDao;\n     }\n+\n+    /**\n+     * Get the single latest submission associated with a given producer.\n+     *\n+     * @param Tracker_ProducerDao $producerDao producer DAO\n+     * @param false | string $date the end of the interval or false to use 23:59:59 of the current day\n+     * @param string $branch the branch of the submission for which to search\n+     * @param bool $onlyOneDay if true return submissions 24 hours back from $date, false otherwise. In the case of","path":"modules/tracker/models/pdo/SubmissionModel.php","position":20,"original_position":20,"commit_id":"c24a7c35c4838b164b1605c48f7fd437d4c4e71c","original_commit_id":"c24a7c35c4838b164b1605c48f7fd437d4c4e71c","user":{"login":"mgrauer","id":595023,"avatar_url":"https://avatars.githubusercontent.com/u/595023?v=3","gravatar_id":"","url":"https://api.github.com/users/mgrauer","html_url":"https://github.com/mgrauer","followers_url":"https://api.github.com/users/mgrauer/followers","following_url":"https://api.github.com/users/mgrauer/following{/other_user}","gists_url":"https://api.github.com/users/mgrauer/gists{/gist_id}","starred_url":"https://api.github.com/users/mgrauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgrauer/subscriptions","organizations_url":"https://api.github.com/users/mgrauer/orgs","repos_url":"https://api.github.com/users/mgrauer/repos","events_url":"https://api.github.com/users/mgrauer/events{/privacy}","received_events_url":"https://api.github.com/users/mgrauer/received_events","type":"User","site_admin":false},"body":"update to sync.  arg.  that is annoying.","created_at":"2016-02-01T21:14:37Z","updated_at":"2016-02-01T21:14:37Z","html_url":"https://github.com/midasplatform/Midas/pull/173#discussion_r51481557","pull_request_url":"https://api.github.com/repos/midasplatform/Midas/pulls/173","_links":{"self":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/comments/51481557"},"html":{"href":"https://github.com/midasplatform/Midas/pull/173#discussion_r51481557"},"pull_request":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/173"}}},"pull_request":{"url":"https://api.github.com/repos/midasplatform/Midas/pulls/173","id":57677302,"html_url":"https://github.com/midasplatform/Midas/pull/173","diff_url":"https://github.com/midasplatform/Midas/pull/173.diff","patch_url":"https://github.com/midasplatform/Midas/pull/173.patch","issue_url":"https://api.github.com/repos/midasplatform/Midas/issues/173","number":173,"state":"open","locked":false,"title":"Adding some utility functions to Tracker submission model.","user":{"login":"cpatrick","id":115384,"avatar_url":"https://avatars.githubusercontent.com/u/115384?v=3","gravatar_id":"","url":"https://api.github.com/users/cpatrick","html_url":"https://github.com/cpatrick","followers_url":"https://api.github.com/users/cpatrick/followers","following_url":"https://api.github.com/users/cpatrick/following{/other_user}","gists_url":"https://api.github.com/users/cpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/cpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpatrick/subscriptions","organizations_url":"https://api.github.com/users/cpatrick/orgs","repos_url":"https://api.github.com/users/cpatrick/repos","events_url":"https://api.github.com/users/cpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/cpatrick/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-29T17:30:06Z","updated_at":"2016-02-01T21:14:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9521ce3ce6ad904fa36ddf0942262c390c065ba1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/midasplatform/Midas/pulls/173/commits","review_comments_url":"https://api.github.com/repos/midasplatform/Midas/pulls/173/comments","review_comment_url":"https://api.github.com/repos/midasplatform/Midas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/midasplatform/Midas/issues/173/comments","statuses_url":"https://api.github.com/repos/midasplatform/Midas/statuses/c24a7c35c4838b164b1605c48f7fd437d4c4e71c","head":{"label":"midasplatform:tracker-submission-enhancements","ref":"tracker-submission-enhancements","sha":"c24a7c35c4838b164b1605c48f7fd437d4c4e71c","user":{"login":"midasplatform","id":1188892,"avatar_url":"https://avatars.githubusercontent.com/u/1188892?v=3","gravatar_id":"","url":"https://api.github.com/users/midasplatform","html_url":"https://github.com/midasplatform","followers_url":"https://api.github.com/users/midasplatform/followers","following_url":"https://api.github.com/users/midasplatform/following{/other_user}","gists_url":"https://api.github.com/users/midasplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/midasplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midasplatform/subscriptions","organizations_url":"https://api.github.com/users/midasplatform/orgs","repos_url":"https://api.github.com/users/midasplatform/repos","events_url":"https://api.github.com/users/midasplatform/events{/privacy}","received_events_url":"https://api.github.com/users/midasplatform/received_events","type":"Organization","site_admin":false},"repo":{"id":18849230,"name":"Midas","full_name":"midasplatform/Midas","owner":{"login":"midasplatform","id":1188892,"avatar_url":"https://avatars.githubusercontent.com/u/1188892?v=3","gravatar_id":"","url":"https://api.github.com/users/midasplatform","html_url":"https://github.com/midasplatform","followers_url":"https://api.github.com/users/midasplatform/followers","following_url":"https://api.github.com/users/midasplatform/following{/other_user}","gists_url":"https://api.github.com/users/midasplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/midasplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midasplatform/subscriptions","organizations_url":"https://api.github.com/users/midasplatform/orgs","repos_url":"https://api.github.com/users/midasplatform/repos","events_url":"https://api.github.com/users/midasplatform/events{/privacy}","received_events_url":"https://api.github.com/users/midasplatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/midasplatform/Midas","description":"An open-source application that enables the rapid creation of tailored, web-enabled data storage","fork":false,"url":"https://api.github.com/repos/midasplatform/Midas","forks_url":"https://api.github.com/repos/midasplatform/Midas/forks","keys_url":"https://api.github.com/repos/midasplatform/Midas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/midasplatform/Midas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/midasplatform/Midas/teams","hooks_url":"https://api.github.com/repos/midasplatform/Midas/hooks","issue_events_url":"https://api.github.com/repos/midasplatform/Midas/issues/events{/number}","events_url":"https://api.github.com/repos/midasplatform/Midas/events","assignees_url":"https://api.github.com/repos/midasplatform/Midas/assignees{/user}","branches_url":"https://api.github.com/repos/midasplatform/Midas/branches{/branch}","tags_url":"https://api.github.com/repos/midasplatform/Midas/tags","blobs_url":"https://api.github.com/repos/midasplatform/Midas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/midasplatform/Midas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/midasplatform/Midas/git/refs{/sha}","trees_url":"https://api.github.com/repos/midasplatform/Midas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/midasplatform/Midas/statuses/{sha}","languages_url":"https://api.github.com/repos/midasplatform/Midas/languages","stargazers_url":"https://api.github.com/repos/midasplatform/Midas/stargazers","contributors_url":"https://api.github.com/repos/midasplatform/Midas/contributors","subscribers_url":"https://api.github.com/repos/midasplatform/Midas/subscribers","subscription_url":"https://api.github.com/repos/midasplatform/Midas/subscription","commits_url":"https://api.github.com/repos/midasplatform/Midas/commits{/sha}","git_commits_url":"https://api.github.com/repos/midasplatform/Midas/git/commits{/sha}","comments_url":"https://api.github.com/repos/midasplatform/Midas/comments{/number}","issue_comment_url":"https://api.github.com/repos/midasplatform/Midas/issues/comments{/number}","contents_url":"https://api.github.com/repos/midasplatform/Midas/contents/{+path}","compare_url":"https://api.github.com/repos/midasplatform/Midas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/midasplatform/Midas/merges","archive_url":"https://api.github.com/repos/midasplatform/Midas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/midasplatform/Midas/downloads","issues_url":"https://api.github.com/repos/midasplatform/Midas/issues{/number}","pulls_url":"https://api.github.com/repos/midasplatform/Midas/pulls{/number}","milestones_url":"https://api.github.com/repos/midasplatform/Midas/milestones{/number}","notifications_url":"https://api.github.com/repos/midasplatform/Midas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/midasplatform/Midas/labels{/name}","releases_url":"https://api.github.com/repos/midasplatform/Midas/releases{/id}","deployments_url":"https://api.github.com/repos/midasplatform/Midas/deployments","created_at":"2014-04-16T17:36:18Z","updated_at":"2016-01-14T21:23:56Z","pushed_at":"2016-02-01T21:07:05Z","git_url":"git://github.com/midasplatform/Midas.git","ssh_url":"git@github.com:midasplatform/Midas.git","clone_url":"https://github.com/midasplatform/Midas.git","svn_url":"https://github.com/midasplatform/Midas","homepage":"http://www.midasplatform.org/","size":71192,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":34,"forks":7,"open_issues":34,"watchers":6,"default_branch":"master"}},"base":{"label":"midasplatform:master","ref":"master","sha":"ba3d47bdda8f0c141b6e84d8e64f708738057493","user":{"login":"midasplatform","id":1188892,"avatar_url":"https://avatars.githubusercontent.com/u/1188892?v=3","gravatar_id":"","url":"https://api.github.com/users/midasplatform","html_url":"https://github.com/midasplatform","followers_url":"https://api.github.com/users/midasplatform/followers","following_url":"https://api.github.com/users/midasplatform/following{/other_user}","gists_url":"https://api.github.com/users/midasplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/midasplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midasplatform/subscriptions","organizations_url":"https://api.github.com/users/midasplatform/orgs","repos_url":"https://api.github.com/users/midasplatform/repos","events_url":"https://api.github.com/users/midasplatform/events{/privacy}","received_events_url":"https://api.github.com/users/midasplatform/received_events","type":"Organization","site_admin":false},"repo":{"id":18849230,"name":"Midas","full_name":"midasplatform/Midas","owner":{"login":"midasplatform","id":1188892,"avatar_url":"https://avatars.githubusercontent.com/u/1188892?v=3","gravatar_id":"","url":"https://api.github.com/users/midasplatform","html_url":"https://github.com/midasplatform","followers_url":"https://api.github.com/users/midasplatform/followers","following_url":"https://api.github.com/users/midasplatform/following{/other_user}","gists_url":"https://api.github.com/users/midasplatform/gists{/gist_id}","starred_url":"https://api.github.com/users/midasplatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/midasplatform/subscriptions","organizations_url":"https://api.github.com/users/midasplatform/orgs","repos_url":"https://api.github.com/users/midasplatform/repos","events_url":"https://api.github.com/users/midasplatform/events{/privacy}","received_events_url":"https://api.github.com/users/midasplatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/midasplatform/Midas","description":"An open-source application that enables the rapid creation of tailored, web-enabled data storage","fork":false,"url":"https://api.github.com/repos/midasplatform/Midas","forks_url":"https://api.github.com/repos/midasplatform/Midas/forks","keys_url":"https://api.github.com/repos/midasplatform/Midas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/midasplatform/Midas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/midasplatform/Midas/teams","hooks_url":"https://api.github.com/repos/midasplatform/Midas/hooks","issue_events_url":"https://api.github.com/repos/midasplatform/Midas/issues/events{/number}","events_url":"https://api.github.com/repos/midasplatform/Midas/events","assignees_url":"https://api.github.com/repos/midasplatform/Midas/assignees{/user}","branches_url":"https://api.github.com/repos/midasplatform/Midas/branches{/branch}","tags_url":"https://api.github.com/repos/midasplatform/Midas/tags","blobs_url":"https://api.github.com/repos/midasplatform/Midas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/midasplatform/Midas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/midasplatform/Midas/git/refs{/sha}","trees_url":"https://api.github.com/repos/midasplatform/Midas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/midasplatform/Midas/statuses/{sha}","languages_url":"https://api.github.com/repos/midasplatform/Midas/languages","stargazers_url":"https://api.github.com/repos/midasplatform/Midas/stargazers","contributors_url":"https://api.github.com/repos/midasplatform/Midas/contributors","subscribers_url":"https://api.github.com/repos/midasplatform/Midas/subscribers","subscription_url":"https://api.github.com/repos/midasplatform/Midas/subscription","commits_url":"https://api.github.com/repos/midasplatform/Midas/commits{/sha}","git_commits_url":"https://api.github.com/repos/midasplatform/Midas/git/commits{/sha}","comments_url":"https://api.github.com/repos/midasplatform/Midas/comments{/number}","issue_comment_url":"https://api.github.com/repos/midasplatform/Midas/issues/comments{/number}","contents_url":"https://api.github.com/repos/midasplatform/Midas/contents/{+path}","compare_url":"https://api.github.com/repos/midasplatform/Midas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/midasplatform/Midas/merges","archive_url":"https://api.github.com/repos/midasplatform/Midas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/midasplatform/Midas/downloads","issues_url":"https://api.github.com/repos/midasplatform/Midas/issues{/number}","pulls_url":"https://api.github.com/repos/midasplatform/Midas/pulls{/number}","milestones_url":"https://api.github.com/repos/midasplatform/Midas/milestones{/number}","notifications_url":"https://api.github.com/repos/midasplatform/Midas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/midasplatform/Midas/labels{/name}","releases_url":"https://api.github.com/repos/midasplatform/Midas/releases{/id}","deployments_url":"https://api.github.com/repos/midasplatform/Midas/deployments","created_at":"2014-04-16T17:36:18Z","updated_at":"2016-01-14T21:23:56Z","pushed_at":"2016-02-01T21:07:05Z","git_url":"git://github.com/midasplatform/Midas.git","ssh_url":"git@github.com:midasplatform/Midas.git","clone_url":"https://github.com/midasplatform/Midas.git","svn_url":"https://github.com/midasplatform/Midas","homepage":"http://www.midasplatform.org/","size":71192,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":34,"forks":7,"open_issues":34,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/173"},"html":{"href":"https://github.com/midasplatform/Midas/pull/173"},"issue":{"href":"https://api.github.com/repos/midasplatform/Midas/issues/173"},"comments":{"href":"https://api.github.com/repos/midasplatform/Midas/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/midasplatform/Midas/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/midasplatform/Midas/statuses/c24a7c35c4838b164b1605c48f7fd437d4c4e71c"}}}}