{"action":"created","comment":{"url":"https://api.github.com/repos/pulibrary/figgy/pulls/comments/195123293","pull_request_review_id":128423105,"id":195123293,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTEyMzI5Mw==","diff_hunk":"@@ -36,8 +36,45 @@ def pbcore_parser_for_barcode(barcode)\n     pbcore_parsers.find { |pbcore| pbcore.barcode == barcode }\n   end\n \n+  def image_file(barcode:)\n+    image_files.find { |image| image.barcode == barcode }\n+  end\n+\n   private\n \n+    # Class modeling asset images\n+    class ImageFile","path":"app/models/archival_media_bag_parser.rb","position":11,"original_position":11,"commit_id":"38d0dc862400330f73100dcf1a1446abfb78c36e","original_commit_id":"38d0dc862400330f73100dcf1a1446abfb78c36e","user":{"login":"hackmastera","id":845363,"node_id":"MDQ6VXNlcjg0NTM2Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/845363?v=4","gravatar_id":"","url":"https://api.github.com/users/hackmastera","html_url":"https://github.com/hackmastera","followers_url":"https://api.github.com/users/hackmastera/followers","following_url":"https://api.github.com/users/hackmastera/following{/other_user}","gists_url":"https://api.github.com/users/hackmastera/gists{/gist_id}","starred_url":"https://api.github.com/users/hackmastera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackmastera/subscriptions","organizations_url":"https://api.github.com/users/hackmastera/orgs","repos_url":"https://api.github.com/users/hackmastera/repos","events_url":"https://api.github.com/users/hackmastera/events{/privacy}","received_events_url":"https://api.github.com/users/hackmastera/received_events","type":"User","site_admin":false},"body":"This and `IngestArchivalMediaBag#add_images` can be refactored as part of #1380","created_at":"2018-06-13T15:12:59Z","updated_at":"2018-06-13T15:13:08Z","html_url":"https://github.com/pulibrary/figgy/pull/1398#discussion_r195123293","pull_request_url":"https://api.github.com/repos/pulibrary/figgy/pulls/1398","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/comments/195123293"},"html":{"href":"https://github.com/pulibrary/figgy/pull/1398#discussion_r195123293"},"pull_request":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/1398"}},"in_reply_to_id":195121107},"pull_request":{"url":"https://api.github.com/repos/pulibrary/figgy/pulls/1398","id":194599926,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NTk5OTI2","html_url":"https://github.com/pulibrary/figgy/pull/1398","diff_url":"https://github.com/pulibrary/figgy/pull/1398.diff","patch_url":"https://github.com/pulibrary/figgy/pull/1398.patch","issue_url":"https://api.github.com/repos/pulibrary/figgy/issues/1398","number":1398,"state":"open","locked":false,"title":"Implementing IngestArchivalMediaBagJob#add_thumbnail and IngestArchivalMediaBagJob#create_image_file_set for ingesting JPEGs in AV bags","user":{"login":"jrgriffiniii","id":1443986,"node_id":"MDQ6VXNlcjE0NDM5ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/1443986?v=4","gravatar_id":"","url":"https://api.github.com/users/jrgriffiniii","html_url":"https://github.com/jrgriffiniii","followers_url":"https://api.github.com/users/jrgriffiniii/followers","following_url":"https://api.github.com/users/jrgriffiniii/following{/other_user}","gists_url":"https://api.github.com/users/jrgriffiniii/gists{/gist_id}","starred_url":"https://api.github.com/users/jrgriffiniii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrgriffiniii/subscriptions","organizations_url":"https://api.github.com/users/jrgriffiniii/orgs","repos_url":"https://api.github.com/users/jrgriffiniii/repos","events_url":"https://api.github.com/users/jrgriffiniii/events{/privacy}","received_events_url":"https://api.github.com/users/jrgriffiniii/received_events","type":"User","site_admin":false},"body":"Resolves #1390 ","created_at":"2018-06-13T14:10:02Z","updated_at":"2018-06-13T15:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f81eed57010bf6a29908d1b18efd5401f5cbd409","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":663741164,"node_id":"MDU6TGFiZWw2NjM3NDExNjQ=","url":"https://api.github.com/repos/pulibrary/figgy/labels/Review","name":"Review","color":"e6e6e6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pulibrary/figgy/pulls/1398/commits","review_comments_url":"https://api.github.com/repos/pulibrary/figgy/pulls/1398/comments","review_comment_url":"https://api.github.com/repos/pulibrary/figgy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pulibrary/figgy/issues/1398/comments","statuses_url":"https://api.github.com/repos/pulibrary/figgy/statuses/38d0dc862400330f73100dcf1a1446abfb78c36e","head":{"label":"pulibrary:issues-1390-jrgriffiniii-av-bags-jpeg","ref":"issues-1390-jrgriffiniii-av-bags-jpeg","sha":"38d0dc862400330f73100dcf1a1446abfb78c36e","user":{"login":"pulibrary","id":1827800,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Mjc4MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1827800?v=4","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":98223070,"node_id":"MDEwOlJlcG9zaXRvcnk5ODIyMzA3MA==","name":"figgy","full_name":"pulibrary/figgy","owner":{"login":"pulibrary","id":1827800,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Mjc4MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1827800?v=4","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulibrary/figgy","description":"Valkyrie-based digital repository backend.","fork":false,"url":"https://api.github.com/repos/pulibrary/figgy","forks_url":"https://api.github.com/repos/pulibrary/figgy/forks","keys_url":"https://api.github.com/repos/pulibrary/figgy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulibrary/figgy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulibrary/figgy/teams","hooks_url":"https://api.github.com/repos/pulibrary/figgy/hooks","issue_events_url":"https://api.github.com/repos/pulibrary/figgy/issues/events{/number}","events_url":"https://api.github.com/repos/pulibrary/figgy/events","assignees_url":"https://api.github.com/repos/pulibrary/figgy/assignees{/user}","branches_url":"https://api.github.com/repos/pulibrary/figgy/branches{/branch}","tags_url":"https://api.github.com/repos/pulibrary/figgy/tags","blobs_url":"https://api.github.com/repos/pulibrary/figgy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulibrary/figgy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulibrary/figgy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulibrary/figgy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulibrary/figgy/statuses/{sha}","languages_url":"https://api.github.com/repos/pulibrary/figgy/languages","stargazers_url":"https://api.github.com/repos/pulibrary/figgy/stargazers","contributors_url":"https://api.github.com/repos/pulibrary/figgy/contributors","subscribers_url":"https://api.github.com/repos/pulibrary/figgy/subscribers","subscription_url":"https://api.github.com/repos/pulibrary/figgy/subscription","commits_url":"https://api.github.com/repos/pulibrary/figgy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulibrary/figgy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulibrary/figgy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulibrary/figgy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulibrary/figgy/contents/{+path}","compare_url":"https://api.github.com/repos/pulibrary/figgy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulibrary/figgy/merges","archive_url":"https://api.github.com/repos/pulibrary/figgy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulibrary/figgy/downloads","issues_url":"https://api.github.com/repos/pulibrary/figgy/issues{/number}","pulls_url":"https://api.github.com/repos/pulibrary/figgy/pulls{/number}","milestones_url":"https://api.github.com/repos/pulibrary/figgy/milestones{/number}","notifications_url":"https://api.github.com/repos/pulibrary/figgy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulibrary/figgy/labels{/name}","releases_url":"https://api.github.com/repos/pulibrary/figgy/releases{/id}","deployments_url":"https://api.github.com/repos/pulibrary/figgy/deployments","created_at":"2017-07-24T18:39:22Z","updated_at":"2018-06-13T13:51:50Z","pushed_at":"2018-06-13T14:56:32Z","git_url":"git://github.com/pulibrary/figgy.git","ssh_url":"git@github.com:pulibrary/figgy.git","clone_url":"https://github.com/pulibrary/figgy.git","svn_url":"https://github.com/pulibrary/figgy","homepage":null,"size":45415,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":197,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":197,"watchers":8,"default_branch":"master"}},"base":{"label":"pulibrary:master","ref":"master","sha":"bedd15f8cbda925dac0be117b1fb7199d493e8b2","user":{"login":"pulibrary","id":1827800,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Mjc4MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1827800?v=4","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"repo":{"id":98223070,"node_id":"MDEwOlJlcG9zaXRvcnk5ODIyMzA3MA==","name":"figgy","full_name":"pulibrary/figgy","owner":{"login":"pulibrary","id":1827800,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4Mjc4MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1827800?v=4","gravatar_id":"","url":"https://api.github.com/users/pulibrary","html_url":"https://github.com/pulibrary","followers_url":"https://api.github.com/users/pulibrary/followers","following_url":"https://api.github.com/users/pulibrary/following{/other_user}","gists_url":"https://api.github.com/users/pulibrary/gists{/gist_id}","starred_url":"https://api.github.com/users/pulibrary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pulibrary/subscriptions","organizations_url":"https://api.github.com/users/pulibrary/orgs","repos_url":"https://api.github.com/users/pulibrary/repos","events_url":"https://api.github.com/users/pulibrary/events{/privacy}","received_events_url":"https://api.github.com/users/pulibrary/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pulibrary/figgy","description":"Valkyrie-based digital repository backend.","fork":false,"url":"https://api.github.com/repos/pulibrary/figgy","forks_url":"https://api.github.com/repos/pulibrary/figgy/forks","keys_url":"https://api.github.com/repos/pulibrary/figgy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pulibrary/figgy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pulibrary/figgy/teams","hooks_url":"https://api.github.com/repos/pulibrary/figgy/hooks","issue_events_url":"https://api.github.com/repos/pulibrary/figgy/issues/events{/number}","events_url":"https://api.github.com/repos/pulibrary/figgy/events","assignees_url":"https://api.github.com/repos/pulibrary/figgy/assignees{/user}","branches_url":"https://api.github.com/repos/pulibrary/figgy/branches{/branch}","tags_url":"https://api.github.com/repos/pulibrary/figgy/tags","blobs_url":"https://api.github.com/repos/pulibrary/figgy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pulibrary/figgy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pulibrary/figgy/git/refs{/sha}","trees_url":"https://api.github.com/repos/pulibrary/figgy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pulibrary/figgy/statuses/{sha}","languages_url":"https://api.github.com/repos/pulibrary/figgy/languages","stargazers_url":"https://api.github.com/repos/pulibrary/figgy/stargazers","contributors_url":"https://api.github.com/repos/pulibrary/figgy/contributors","subscribers_url":"https://api.github.com/repos/pulibrary/figgy/subscribers","subscription_url":"https://api.github.com/repos/pulibrary/figgy/subscription","commits_url":"https://api.github.com/repos/pulibrary/figgy/commits{/sha}","git_commits_url":"https://api.github.com/repos/pulibrary/figgy/git/commits{/sha}","comments_url":"https://api.github.com/repos/pulibrary/figgy/comments{/number}","issue_comment_url":"https://api.github.com/repos/pulibrary/figgy/issues/comments{/number}","contents_url":"https://api.github.com/repos/pulibrary/figgy/contents/{+path}","compare_url":"https://api.github.com/repos/pulibrary/figgy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pulibrary/figgy/merges","archive_url":"https://api.github.com/repos/pulibrary/figgy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pulibrary/figgy/downloads","issues_url":"https://api.github.com/repos/pulibrary/figgy/issues{/number}","pulls_url":"https://api.github.com/repos/pulibrary/figgy/pulls{/number}","milestones_url":"https://api.github.com/repos/pulibrary/figgy/milestones{/number}","notifications_url":"https://api.github.com/repos/pulibrary/figgy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pulibrary/figgy/labels{/name}","releases_url":"https://api.github.com/repos/pulibrary/figgy/releases{/id}","deployments_url":"https://api.github.com/repos/pulibrary/figgy/deployments","created_at":"2017-07-24T18:39:22Z","updated_at":"2018-06-13T13:51:50Z","pushed_at":"2018-06-13T14:56:32Z","git_url":"git://github.com/pulibrary/figgy.git","ssh_url":"git@github.com:pulibrary/figgy.git","clone_url":"https://github.com/pulibrary/figgy.git","svn_url":"https://github.com/pulibrary/figgy","homepage":null,"size":45415,"stargazers_count":8,"watchers_count":8,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":197,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":2,"open_issues":197,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/1398"},"html":{"href":"https://github.com/pulibrary/figgy/pull/1398"},"issue":{"href":"https://api.github.com/repos/pulibrary/figgy/issues/1398"},"comments":{"href":"https://api.github.com/repos/pulibrary/figgy/issues/1398/comments"},"review_comments":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/1398/comments"},"review_comment":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pulibrary/figgy/pulls/1398/commits"},"statuses":{"href":"https://api.github.com/repos/pulibrary/figgy/statuses/38d0dc862400330f73100dcf1a1446abfb78c36e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hackmastera"}}