{"action":"created","comment":{"url":"https://api.github.com/repos/muvr/muvr-ios/pulls/comments/45965596","id":45965596,"diff_hunk":"@@ -14,6 +14,14 @@ class MRManagedExerciseSession: NSManagedObject {\n         return try! managedObjectContext.executeFetchRequest(fetchRequest) as! [MRManagedExerciseSession]\n     }\n     \n+    static func findSessionId(sessionId: String, inManagedObjectContext managedObjectContext: NSManagedObjectContext) -> [MRManagedExerciseSession] {","path":"Muvr/Entities/MRManagedExerciseSession.swift","position":4,"original_position":4,"commit_id":"56402f8771107cb5d3c92c3891759503f494a657","original_commit_id":"56402f8771107cb5d3c92c3891759503f494a657","user":{"login":"by-dam","id":1948559,"avatar_url":"https://avatars.githubusercontent.com/u/1948559?v=3","gravatar_id":"","url":"https://api.github.com/users/by-dam","html_url":"https://github.com/by-dam","followers_url":"https://api.github.com/users/by-dam/followers","following_url":"https://api.github.com/users/by-dam/following{/other_user}","gists_url":"https://api.github.com/users/by-dam/gists{/gist_id}","starred_url":"https://api.github.com/users/by-dam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/by-dam/subscriptions","organizations_url":"https://api.github.com/users/by-dam/orgs","repos_url":"https://api.github.com/users/by-dam/repos","events_url":"https://api.github.com/users/by-dam/events{/privacy}","received_events_url":"https://api.github.com/users/by-dam/received_events","type":"User","site_admin":false},"body":"maybe rename into ``sessionById`` or ``sessionWithId`` ?","created_at":"2015-11-26T10:49:50Z","updated_at":"2015-11-26T10:49:50Z","html_url":"https://github.com/muvr/muvr-ios/pull/118#discussion_r45965596","pull_request_url":"https://api.github.com/repos/muvr/muvr-ios/pulls/118","_links":{"self":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/comments/45965596"},"html":{"href":"https://github.com/muvr/muvr-ios/pull/118#discussion_r45965596"},"pull_request":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/118"}}},"pull_request":{"url":"https://api.github.com/repos/muvr/muvr-ios/pulls/118","id":51774592,"html_url":"https://github.com/muvr/muvr-ios/pull/118","diff_url":"https://github.com/muvr/muvr-ios/pull/118.diff","patch_url":"https://github.com/muvr/muvr-ios/pull/118.patch","issue_url":"https://api.github.com/repos/muvr/muvr-ios/issues/118","number":118,"state":"open","locked":false,"title":"Fix duplicate when starting a session","user":{"login":"duchoang","id":3921326,"avatar_url":"https://avatars.githubusercontent.com/u/3921326?v=3","gravatar_id":"","url":"https://api.github.com/users/duchoang","html_url":"https://github.com/duchoang","followers_url":"https://api.github.com/users/duchoang/followers","following_url":"https://api.github.com/users/duchoang/following{/other_user}","gists_url":"https://api.github.com/users/duchoang/gists{/gist_id}","starred_url":"https://api.github.com/users/duchoang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duchoang/subscriptions","organizations_url":"https://api.github.com/users/duchoang/orgs","repos_url":"https://api.github.com/users/duchoang/repos","events_url":"https://api.github.com/users/duchoang/events{/privacy}","received_events_url":"https://api.github.com/users/duchoang/received_events","type":"User","site_admin":false},"body":"Detail of bug: https://github.com/muvr/muvr-ios/issues/111\r\n\r\n- [x] When starting a new session, check in the CoreData where it already exists or not\r\n- [x] Ready for review","created_at":"2015-11-25T10:13:11Z","updated_at":"2015-11-26T10:49:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6047c4b5647848b76fc1e466febbff2ecb843174","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/muvr/muvr-ios/pulls/118/commits","review_comments_url":"https://api.github.com/repos/muvr/muvr-ios/pulls/118/comments","review_comment_url":"https://api.github.com/repos/muvr/muvr-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/muvr/muvr-ios/issues/118/comments","statuses_url":"https://api.github.com/repos/muvr/muvr-ios/statuses/56402f8771107cb5d3c92c3891759503f494a657","head":{"label":"muvr:feature/fix_bug_duplicate_session","ref":"feature/fix_bug_duplicate_session","sha":"56402f8771107cb5d3c92c3891759503f494a657","user":{"login":"muvr","id":11348890,"avatar_url":"https://avatars.githubusercontent.com/u/11348890?v=3","gravatar_id":"","url":"https://api.github.com/users/muvr","html_url":"https://github.com/muvr","followers_url":"https://api.github.com/users/muvr/followers","following_url":"https://api.github.com/users/muvr/following{/other_user}","gists_url":"https://api.github.com/users/muvr/gists{/gist_id}","starred_url":"https://api.github.com/users/muvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muvr/subscriptions","organizations_url":"https://api.github.com/users/muvr/orgs","repos_url":"https://api.github.com/users/muvr/repos","events_url":"https://api.github.com/users/muvr/events{/privacy}","received_events_url":"https://api.github.com/users/muvr/received_events","type":"Organization","site_admin":false},"repo":{"id":32984194,"name":"muvr-ios","full_name":"muvr/muvr-ios","owner":{"login":"muvr","id":11348890,"avatar_url":"https://avatars.githubusercontent.com/u/11348890?v=3","gravatar_id":"","url":"https://api.github.com/users/muvr","html_url":"https://github.com/muvr","followers_url":"https://api.github.com/users/muvr/followers","following_url":"https://api.github.com/users/muvr/following{/other_user}","gists_url":"https://api.github.com/users/muvr/gists{/gist_id}","starred_url":"https://api.github.com/users/muvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muvr/subscriptions","organizations_url":"https://api.github.com/users/muvr/orgs","repos_url":"https://api.github.com/users/muvr/repos","events_url":"https://api.github.com/users/muvr/events{/privacy}","received_events_url":"https://api.github.com/users/muvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/muvr/muvr-ios","description":"iOS application","fork":false,"url":"https://api.github.com/repos/muvr/muvr-ios","forks_url":"https://api.github.com/repos/muvr/muvr-ios/forks","keys_url":"https://api.github.com/repos/muvr/muvr-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muvr/muvr-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muvr/muvr-ios/teams","hooks_url":"https://api.github.com/repos/muvr/muvr-ios/hooks","issue_events_url":"https://api.github.com/repos/muvr/muvr-ios/issues/events{/number}","events_url":"https://api.github.com/repos/muvr/muvr-ios/events","assignees_url":"https://api.github.com/repos/muvr/muvr-ios/assignees{/user}","branches_url":"https://api.github.com/repos/muvr/muvr-ios/branches{/branch}","tags_url":"https://api.github.com/repos/muvr/muvr-ios/tags","blobs_url":"https://api.github.com/repos/muvr/muvr-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muvr/muvr-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muvr/muvr-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/muvr/muvr-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muvr/muvr-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/muvr/muvr-ios/languages","stargazers_url":"https://api.github.com/repos/muvr/muvr-ios/stargazers","contributors_url":"https://api.github.com/repos/muvr/muvr-ios/contributors","subscribers_url":"https://api.github.com/repos/muvr/muvr-ios/subscribers","subscription_url":"https://api.github.com/repos/muvr/muvr-ios/subscription","commits_url":"https://api.github.com/repos/muvr/muvr-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/muvr/muvr-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/muvr/muvr-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/muvr/muvr-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/muvr/muvr-ios/contents/{+path}","compare_url":"https://api.github.com/repos/muvr/muvr-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muvr/muvr-ios/merges","archive_url":"https://api.github.com/repos/muvr/muvr-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muvr/muvr-ios/downloads","issues_url":"https://api.github.com/repos/muvr/muvr-ios/issues{/number}","pulls_url":"https://api.github.com/repos/muvr/muvr-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/muvr/muvr-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/muvr/muvr-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muvr/muvr-ios/labels{/name}","releases_url":"https://api.github.com/repos/muvr/muvr-ios/releases{/id}","created_at":"2015-03-27T12:12:22Z","updated_at":"2015-06-09T16:57:24Z","pushed_at":"2015-11-26T09:34:38Z","git_url":"git://github.com/muvr/muvr-ios.git","ssh_url":"git@github.com:muvr/muvr-ios.git","clone_url":"https://github.com/muvr/muvr-ios.git","svn_url":"https://github.com/muvr/muvr-ios","homepage":"","size":35685,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"develop"}},"base":{"label":"muvr:develop","ref":"develop","sha":"cec4853f27afed1852a59351badf7b00fab8a665","user":{"login":"muvr","id":11348890,"avatar_url":"https://avatars.githubusercontent.com/u/11348890?v=3","gravatar_id":"","url":"https://api.github.com/users/muvr","html_url":"https://github.com/muvr","followers_url":"https://api.github.com/users/muvr/followers","following_url":"https://api.github.com/users/muvr/following{/other_user}","gists_url":"https://api.github.com/users/muvr/gists{/gist_id}","starred_url":"https://api.github.com/users/muvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muvr/subscriptions","organizations_url":"https://api.github.com/users/muvr/orgs","repos_url":"https://api.github.com/users/muvr/repos","events_url":"https://api.github.com/users/muvr/events{/privacy}","received_events_url":"https://api.github.com/users/muvr/received_events","type":"Organization","site_admin":false},"repo":{"id":32984194,"name":"muvr-ios","full_name":"muvr/muvr-ios","owner":{"login":"muvr","id":11348890,"avatar_url":"https://avatars.githubusercontent.com/u/11348890?v=3","gravatar_id":"","url":"https://api.github.com/users/muvr","html_url":"https://github.com/muvr","followers_url":"https://api.github.com/users/muvr/followers","following_url":"https://api.github.com/users/muvr/following{/other_user}","gists_url":"https://api.github.com/users/muvr/gists{/gist_id}","starred_url":"https://api.github.com/users/muvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muvr/subscriptions","organizations_url":"https://api.github.com/users/muvr/orgs","repos_url":"https://api.github.com/users/muvr/repos","events_url":"https://api.github.com/users/muvr/events{/privacy}","received_events_url":"https://api.github.com/users/muvr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/muvr/muvr-ios","description":"iOS application","fork":false,"url":"https://api.github.com/repos/muvr/muvr-ios","forks_url":"https://api.github.com/repos/muvr/muvr-ios/forks","keys_url":"https://api.github.com/repos/muvr/muvr-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/muvr/muvr-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/muvr/muvr-ios/teams","hooks_url":"https://api.github.com/repos/muvr/muvr-ios/hooks","issue_events_url":"https://api.github.com/repos/muvr/muvr-ios/issues/events{/number}","events_url":"https://api.github.com/repos/muvr/muvr-ios/events","assignees_url":"https://api.github.com/repos/muvr/muvr-ios/assignees{/user}","branches_url":"https://api.github.com/repos/muvr/muvr-ios/branches{/branch}","tags_url":"https://api.github.com/repos/muvr/muvr-ios/tags","blobs_url":"https://api.github.com/repos/muvr/muvr-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/muvr/muvr-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/muvr/muvr-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/muvr/muvr-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/muvr/muvr-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/muvr/muvr-ios/languages","stargazers_url":"https://api.github.com/repos/muvr/muvr-ios/stargazers","contributors_url":"https://api.github.com/repos/muvr/muvr-ios/contributors","subscribers_url":"https://api.github.com/repos/muvr/muvr-ios/subscribers","subscription_url":"https://api.github.com/repos/muvr/muvr-ios/subscription","commits_url":"https://api.github.com/repos/muvr/muvr-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/muvr/muvr-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/muvr/muvr-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/muvr/muvr-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/muvr/muvr-ios/contents/{+path}","compare_url":"https://api.github.com/repos/muvr/muvr-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/muvr/muvr-ios/merges","archive_url":"https://api.github.com/repos/muvr/muvr-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/muvr/muvr-ios/downloads","issues_url":"https://api.github.com/repos/muvr/muvr-ios/issues{/number}","pulls_url":"https://api.github.com/repos/muvr/muvr-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/muvr/muvr-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/muvr/muvr-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/muvr/muvr-ios/labels{/name}","releases_url":"https://api.github.com/repos/muvr/muvr-ios/releases{/id}","created_at":"2015-03-27T12:12:22Z","updated_at":"2015-06-09T16:57:24Z","pushed_at":"2015-11-26T09:34:38Z","git_url":"git://github.com/muvr/muvr-ios.git","ssh_url":"git@github.com:muvr/muvr-ios.git","clone_url":"https://github.com/muvr/muvr-ios.git","svn_url":"https://github.com/muvr/muvr-ios","homepage":"","size":35685,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":8,"forks":2,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/118"},"html":{"href":"https://github.com/muvr/muvr-ios/pull/118"},"issue":{"href":"https://api.github.com/repos/muvr/muvr-ios/issues/118"},"comments":{"href":"https://api.github.com/repos/muvr/muvr-ios/issues/118/comments"},"review_comments":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/118/comments"},"review_comment":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/muvr/muvr-ios/pulls/118/commits"},"statuses":{"href":"https://api.github.com/repos/muvr/muvr-ios/statuses/56402f8771107cb5d3c92c3891759503f494a657"}}}}