{"action":"created","comment":{"url":"https://api.github.com/repos/sanger/sample_service/pulls/comments/61244122","id":61244122,"diff_hunk":"@@ -26,10 +26,10 @@ def update_from_params(params)\n             material.update_from_params(param)\n \n             unless self.materials.include? material\n-              self.errors.add :materials, I18n.t('errors.cant_add_to_batch')\n+              self.errors.add :materials, I18n.t('errors.messages.add_to_batch')\n             end\n           else\n-            self.errors.add :'materials.id', I18n.t('errors.cant_be_blank')\n+            self.errors.add :'materials.id', I18n.t('errors.messages.blank')","path":"app/models/material_batch.rb","position":9,"original_position":9,"commit_id":"b6777f5c783280b08bd357016be0042b984af8f0","original_commit_id":"b6777f5c783280b08bd357016be0042b984af8f0","user":{"login":"ke4","id":2183410,"avatar_url":"https://avatars.githubusercontent.com/u/2183410?v=3","gravatar_id":"","url":"https://api.github.com/users/ke4","html_url":"https://github.com/ke4","followers_url":"https://api.github.com/users/ke4/followers","following_url":"https://api.github.com/users/ke4/following{/other_user}","gists_url":"https://api.github.com/users/ke4/gists{/gist_id}","starred_url":"https://api.github.com/users/ke4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ke4/subscriptions","organizations_url":"https://api.github.com/users/ke4/orgs","repos_url":"https://api.github.com/users/ke4/repos","events_url":"https://api.github.com/users/ke4/events{/privacy}","received_events_url":"https://api.github.com/users/ke4/received_events","type":"User","site_admin":false},"body":"This property is missing from the config/locales/en.yml config file","created_at":"2016-04-27T11:50:58Z","updated_at":"2016-04-27T11:50:58Z","html_url":"https://github.com/sanger/sample_service/pull/11#discussion_r61244122","pull_request_url":"https://api.github.com/repos/sanger/sample_service/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/comments/61244122"},"html":{"href":"https://github.com/sanger/sample_service/pull/11#discussion_r61244122"},"pull_request":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/sanger/sample_service/pulls/11","id":67879695,"html_url":"https://github.com/sanger/sample_service/pull/11","diff_url":"https://github.com/sanger/sample_service/pull/11.diff","patch_url":"https://github.com/sanger/sample_service/pull/11.patch","issue_url":"https://api.github.com/repos/sanger/sample_service/issues/11","number":11,"state":"open","locked":false,"title":"Derived materials","user":{"login":"rf9","id":13962952,"avatar_url":"https://avatars.githubusercontent.com/u/13962952?v=3","gravatar_id":"","url":"https://api.github.com/users/rf9","html_url":"https://github.com/rf9","followers_url":"https://api.github.com/users/rf9/followers","following_url":"https://api.github.com/users/rf9/following{/other_user}","gists_url":"https://api.github.com/users/rf9/gists{/gist_id}","starred_url":"https://api.github.com/users/rf9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rf9/subscriptions","organizations_url":"https://api.github.com/users/rf9/orgs","repos_url":"https://api.github.com/users/rf9/repos","events_url":"https://api.github.com/users/rf9/events{/privacy}","received_events_url":"https://api.github.com/users/rf9/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-26T12:51:25Z","updated_at":"2016-04-27T11:50:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70008d1d05f94e4430f1242738d4428927b63108","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sanger/sample_service/pulls/11/commits","review_comments_url":"https://api.github.com/repos/sanger/sample_service/pulls/11/comments","review_comment_url":"https://api.github.com/repos/sanger/sample_service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanger/sample_service/issues/11/comments","statuses_url":"https://api.github.com/repos/sanger/sample_service/statuses/b6777f5c783280b08bd357016be0042b984af8f0","head":{"label":"rf9:derived_materials","ref":"derived_materials","sha":"b6777f5c783280b08bd357016be0042b984af8f0","user":{"login":"rf9","id":13962952,"avatar_url":"https://avatars.githubusercontent.com/u/13962952?v=3","gravatar_id":"","url":"https://api.github.com/users/rf9","html_url":"https://github.com/rf9","followers_url":"https://api.github.com/users/rf9/followers","following_url":"https://api.github.com/users/rf9/following{/other_user}","gists_url":"https://api.github.com/users/rf9/gists{/gist_id}","starred_url":"https://api.github.com/users/rf9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rf9/subscriptions","organizations_url":"https://api.github.com/users/rf9/orgs","repos_url":"https://api.github.com/users/rf9/repos","events_url":"https://api.github.com/users/rf9/events{/privacy}","received_events_url":"https://api.github.com/users/rf9/received_events","type":"User","site_admin":false},"repo":{"id":56599700,"name":"sample_service","full_name":"rf9/sample_service","owner":{"login":"rf9","id":13962952,"avatar_url":"https://avatars.githubusercontent.com/u/13962952?v=3","gravatar_id":"","url":"https://api.github.com/users/rf9","html_url":"https://github.com/rf9","followers_url":"https://api.github.com/users/rf9/followers","following_url":"https://api.github.com/users/rf9/following{/other_user}","gists_url":"https://api.github.com/users/rf9/gists{/gist_id}","starred_url":"https://api.github.com/users/rf9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rf9/subscriptions","organizations_url":"https://api.github.com/users/rf9/orgs","repos_url":"https://api.github.com/users/rf9/repos","events_url":"https://api.github.com/users/rf9/events{/privacy}","received_events_url":"https://api.github.com/users/rf9/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rf9/sample_service","description":"The Sample Service is capable of capturing all types of material (sample, library etc...). It can create, read update a material and add additional metadata to it.","fork":true,"url":"https://api.github.com/repos/rf9/sample_service","forks_url":"https://api.github.com/repos/rf9/sample_service/forks","keys_url":"https://api.github.com/repos/rf9/sample_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rf9/sample_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rf9/sample_service/teams","hooks_url":"https://api.github.com/repos/rf9/sample_service/hooks","issue_events_url":"https://api.github.com/repos/rf9/sample_service/issues/events{/number}","events_url":"https://api.github.com/repos/rf9/sample_service/events","assignees_url":"https://api.github.com/repos/rf9/sample_service/assignees{/user}","branches_url":"https://api.github.com/repos/rf9/sample_service/branches{/branch}","tags_url":"https://api.github.com/repos/rf9/sample_service/tags","blobs_url":"https://api.github.com/repos/rf9/sample_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rf9/sample_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rf9/sample_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/rf9/sample_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rf9/sample_service/statuses/{sha}","languages_url":"https://api.github.com/repos/rf9/sample_service/languages","stargazers_url":"https://api.github.com/repos/rf9/sample_service/stargazers","contributors_url":"https://api.github.com/repos/rf9/sample_service/contributors","subscribers_url":"https://api.github.com/repos/rf9/sample_service/subscribers","subscription_url":"https://api.github.com/repos/rf9/sample_service/subscription","commits_url":"https://api.github.com/repos/rf9/sample_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/rf9/sample_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/rf9/sample_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/rf9/sample_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/rf9/sample_service/contents/{+path}","compare_url":"https://api.github.com/repos/rf9/sample_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rf9/sample_service/merges","archive_url":"https://api.github.com/repos/rf9/sample_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rf9/sample_service/downloads","issues_url":"https://api.github.com/repos/rf9/sample_service/issues{/number}","pulls_url":"https://api.github.com/repos/rf9/sample_service/pulls{/number}","milestones_url":"https://api.github.com/repos/rf9/sample_service/milestones{/number}","notifications_url":"https://api.github.com/repos/rf9/sample_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rf9/sample_service/labels{/name}","releases_url":"https://api.github.com/repos/rf9/sample_service/releases{/id}","deployments_url":"https://api.github.com/repos/rf9/sample_service/deployments","created_at":"2016-04-19T13:36:11Z","updated_at":"2016-04-19T13:36:12Z","pushed_at":"2016-04-27T09:26:29Z","git_url":"git://github.com/rf9/sample_service.git","ssh_url":"git@github.com:rf9/sample_service.git","clone_url":"https://github.com/rf9/sample_service.git","svn_url":"https://github.com/rf9/sample_service","homepage":null,"size":93,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"sanger:devel","ref":"devel","sha":"86553c92a42bef876c8a9c186c32b16020d4d97f","user":{"login":"sanger","id":63878,"avatar_url":"https://avatars.githubusercontent.com/u/63878?v=3","gravatar_id":"","url":"https://api.github.com/users/sanger","html_url":"https://github.com/sanger","followers_url":"https://api.github.com/users/sanger/followers","following_url":"https://api.github.com/users/sanger/following{/other_user}","gists_url":"https://api.github.com/users/sanger/gists{/gist_id}","starred_url":"https://api.github.com/users/sanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanger/subscriptions","organizations_url":"https://api.github.com/users/sanger/orgs","repos_url":"https://api.github.com/users/sanger/repos","events_url":"https://api.github.com/users/sanger/events{/privacy}","received_events_url":"https://api.github.com/users/sanger/received_events","type":"Organization","site_admin":false},"repo":{"id":55776450,"name":"sample_service","full_name":"sanger/sample_service","owner":{"login":"sanger","id":63878,"avatar_url":"https://avatars.githubusercontent.com/u/63878?v=3","gravatar_id":"","url":"https://api.github.com/users/sanger","html_url":"https://github.com/sanger","followers_url":"https://api.github.com/users/sanger/followers","following_url":"https://api.github.com/users/sanger/following{/other_user}","gists_url":"https://api.github.com/users/sanger/gists{/gist_id}","starred_url":"https://api.github.com/users/sanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanger/subscriptions","organizations_url":"https://api.github.com/users/sanger/orgs","repos_url":"https://api.github.com/users/sanger/repos","events_url":"https://api.github.com/users/sanger/events{/privacy}","received_events_url":"https://api.github.com/users/sanger/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sanger/sample_service","description":"The Sample Service is capable of capturing all types of material (sample, library etc...). It can create, read update a material and add additional metadata to it.","fork":false,"url":"https://api.github.com/repos/sanger/sample_service","forks_url":"https://api.github.com/repos/sanger/sample_service/forks","keys_url":"https://api.github.com/repos/sanger/sample_service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanger/sample_service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanger/sample_service/teams","hooks_url":"https://api.github.com/repos/sanger/sample_service/hooks","issue_events_url":"https://api.github.com/repos/sanger/sample_service/issues/events{/number}","events_url":"https://api.github.com/repos/sanger/sample_service/events","assignees_url":"https://api.github.com/repos/sanger/sample_service/assignees{/user}","branches_url":"https://api.github.com/repos/sanger/sample_service/branches{/branch}","tags_url":"https://api.github.com/repos/sanger/sample_service/tags","blobs_url":"https://api.github.com/repos/sanger/sample_service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanger/sample_service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanger/sample_service/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanger/sample_service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanger/sample_service/statuses/{sha}","languages_url":"https://api.github.com/repos/sanger/sample_service/languages","stargazers_url":"https://api.github.com/repos/sanger/sample_service/stargazers","contributors_url":"https://api.github.com/repos/sanger/sample_service/contributors","subscribers_url":"https://api.github.com/repos/sanger/sample_service/subscribers","subscription_url":"https://api.github.com/repos/sanger/sample_service/subscription","commits_url":"https://api.github.com/repos/sanger/sample_service/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanger/sample_service/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanger/sample_service/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanger/sample_service/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanger/sample_service/contents/{+path}","compare_url":"https://api.github.com/repos/sanger/sample_service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanger/sample_service/merges","archive_url":"https://api.github.com/repos/sanger/sample_service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanger/sample_service/downloads","issues_url":"https://api.github.com/repos/sanger/sample_service/issues{/number}","pulls_url":"https://api.github.com/repos/sanger/sample_service/pulls{/number}","milestones_url":"https://api.github.com/repos/sanger/sample_service/milestones{/number}","notifications_url":"https://api.github.com/repos/sanger/sample_service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanger/sample_service/labels{/name}","releases_url":"https://api.github.com/repos/sanger/sample_service/releases{/id}","deployments_url":"https://api.github.com/repos/sanger/sample_service/deployments","created_at":"2016-04-08T12:12:51Z","updated_at":"2016-04-08T12:52:34Z","pushed_at":"2016-04-27T09:26:30Z","git_url":"git://github.com/sanger/sample_service.git","ssh_url":"git@github.com:sanger/sample_service.git","clone_url":"https://github.com/sanger/sample_service.git","svn_url":"https://github.com/sanger/sample_service","homepage":null,"size":82,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/11"},"html":{"href":"https://github.com/sanger/sample_service/pull/11"},"issue":{"href":"https://api.github.com/repos/sanger/sample_service/issues/11"},"comments":{"href":"https://api.github.com/repos/sanger/sample_service/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanger/sample_service/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/sanger/sample_service/statuses/b6777f5c783280b08bd357016be0042b984af8f0"}}}}