{"action":"closed","number":1648,"pull_request":{"url":"https://api.github.com/repos/guardian/grid/pulls/1648","id":56188514,"html_url":"https://github.com/guardian/grid/pull/1648","diff_url":"https://github.com/guardian/grid/pull/1648.diff","patch_url":"https://github.com/guardian/grid/pull/1648.patch","issue_url":"https://api.github.com/repos/guardian/grid/issues/1648","number":1648,"state":"closed","locked":false,"title":"Adds usage to picdar-export tool","user":{"login":"kenoir","id":953792,"avatar_url":"https://avatars.githubusercontent.com/u/953792?v=3","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false},"body":"Squashed commit of the following:\r\n\r\ncommit a4c9383345f492b21e0ba7f6bbc26d4ffcf86fed\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 16:03:18 2016 +0000\r\n\r\n    Blat Action.scala updates from master\r\n\r\ncommit 512806a42145692ab3bb423941b638146295a923\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:51:57 2016 +0000\r\n\r\n    Replace matching booleans by wrapping an option\r\n\r\ncommit 9d1e5d1e92de699a7be1c85522d166b6dc7b9fa4\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:49:37 2016 +0000\r\n\r\n    Adds sample data to picdar usage ResponseParser\r\n\r\ncommit e4b599fd93879eb3c7dcff1c1976677696b5b504\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:43:14 2016 +0000\r\n\r\n    reuse apply for reads in UsageStatus\r\n\r\ncommit 220744565202336dadcda8b80bf6975f09a5ed18\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:41:36 2016 +0000\r\n\r\n    Don't need to pattern match can map directly by using isDefined\r\n\r\ncommit e90324afacc2c03001a2b89b485dbe33526e5a1b\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:39:01 2016 +0000\r\n\r\n    record usage has been sent\r\n\r\ncommit 53eefb5225c0f747eda28b871c43827ee7fdb8d2\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 15:04:50 2016 +0000\r\n\r\n    Modify PrintMetadata to accomodate Picdar\r\n\r\n    - adds optional source field\r\n    - makes layout optional\r\n\r\ncommit 2f8044343faa266e6c82b4636cbf8f54116a9df3\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 10:18:13 2016 +0000\r\n\r\n    fork run tasks so system.exit behaves as expected\r\n\r\ncommit af741622e0a614f182e40be024468ad529e76a48\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 10:17:31 2016 +0000\r\n\r\n    Send PrintUsageRequest to UsageAPI\r\n\r\ncommit 11b5649275a3a9399820da064ef80c9b3dd20c64\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 15 10:15:53 2016 +0000\r\n\r\n    Remove writes from Action as no longer needed\r\n\r\ncommit 1f8b0ea030e832b856d17022f39ebf37a7587b18\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Thu Jan 14 14:10:20 2016 +0000\r\n\r\n    Revert \"Add add-print-usage to image actions\"\r\n\r\n    This reverts commit b777df6472602c8a8038c963ce5ce7a39a891843.\r\n\r\ncommit 37892cdf6fae68a088bac55e523dff2829d28e75\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 16:49:46 2016 +0000\r\n\r\n    Create factory for PrintUsageRequest from PicdarUsageRecord\r\n\r\ncommit d039134ac65e7e9dcfa9a0ca6d05e89036ec6c8e\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 15:34:08 2016 +0000\r\n\r\n    moving PrintUsageRequest to common-lib as it will be required by picdar-export\r\n\r\ncommit 30216ecaffcc82c711430c30d41b4f7c1155ea60\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 14:30:41 2016 +0000\r\n\r\n    Request image from MediaApi per usage update, extract print update URI\r\n\r\ncommit b777df6472602c8a8038c963ce5ce7a39a891843\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 14:29:46 2016 +0000\r\n\r\n    Add add-print-usage to image actions\r\n\r\ncommit f00284b8919e4949469f6f9819ee8162845a2dac\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 14:28:58 2016 +0000\r\n\r\n    add reads to argo actions\r\n\r\ncommit 2953359044b116cfb71588452109f010ebc53bbe\r\nMerge: f26e2c6 9d13917\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Wed Jan 13 12:45:44 2016 +0000\r\n\r\n    Merge branch 'master' of github.com:guardian/grid into picdar-usage\r\n\r\ncommit f26e2c6dba5519bf1ea8cc9be3164d3b41741de1\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Tue Jan 12 16:52:13 2016 +0000\r\n\r\n    Reading mediaUrl from database in sendUsage\r\n\r\n    Adds apply methods to AssetRef and AssetRow\r\n\r\ncommit a3268fb770b22d64ab65fba73e440e9c27465e47\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Tue Jan 12 14:29:37 2016 +0000\r\n\r\n    make not filled fields a set\r\n\r\ncommit 64eb5099ae7d98fc2bbb35ecae3a58d9194ec7c8\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Tue Jan 12 14:29:18 2016 +0000\r\n\r\n    sort out imports\r\n\r\ncommit d6ded74e66b9d8983d03d178b3ad76690acb3c59\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Tue Jan 12 14:04:57 2016 +0000\r\n\r\n    Store usage in export table\r\n\r\ncommit 2438241e1bd198f96b13b5ed56b72dcbeb556dbb\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Mon Jan 11 10:24:29 2016 +0000\r\n\r\n    Parse \"no usages\" from Picdar API\r\n\r\n    Picdar Usage API returns 200 with empty body for \"no usages\" so we need\r\n    to handle that case.\r\n\r\ncommit e3b97ef10b370adc98ca924c3f39c9005ec53cac\r\nMerge: cd95c3c f58bf37\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Mon Jan 11 09:53:57 2016 +0000\r\n\r\n    Merge branch 'picdar-usage' of github.com:guardian/grid into picdar-usage\r\n\r\n    Conflicts:\r\n    \tpicdar-export/src/main/scala/com.gu.mediaservice.picdarexport/PicdarExport.scala\r\n\r\ncommit cd95c3c787678447d3b64804acbfd812420c49d0\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Fri Jan 8 12:51:58 2016 +0000\r\n\r\n    use api over stub\r\n\r\ncommit bcec7291468de1ad7c8e549900787dec8061d457\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Thu Jan 7 16:54:56 2016 +0000\r\n\r\n    parsing wip\r\n\r\ncommit f58bf370bc8ac1522730fdb60d1074132a4abada\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Thu Jan 7 16:54:56 2016 +0000\r\n\r\n    parsing wip\r\n\r\ncommit 28539fce33cc25c7f6789a86935d17abbd5271a8\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Thu Jan 7 11:16:26 2016 +0000\r\n\r\n    add dynamo table for picdar usage\r\n\r\ncommit 4fc4ec318ccdd8ae6cde3c358748d10f61a8f18e\r\nAuthor: Robert Kenny <robert.kenny@guardian.co.uk>\r\nDate:   Thu Jan 7 10:35:45 2016 +0000\r\n\r\n    Adds usage to picdarExport tool\r\n\r\n    This changeset starts adding functionality to the picdar export tool in\r\n    order to additionally import usages.","created_at":"2016-01-15T16:15:30Z","updated_at":"2016-01-15T16:17:06Z","closed_at":"2016-01-15T16:17:05Z","merged_at":"2016-01-15T16:17:05Z","merge_commit_sha":"2fe217630363a12e0fb61743c98afa7bfe6dc29b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/guardian/grid/pulls/1648/commits","review_comments_url":"https://api.github.com/repos/guardian/grid/pulls/1648/comments","review_comment_url":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/guardian/grid/issues/1648/comments","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/14b1af0e6f24c79e76609b2fa8d9897c85378edd","head":{"label":"guardian:picdar-usage-export","ref":"picdar-usage-export","sha":"14b1af0e6f24c79e76609b2fa8d9897c85378edd","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","created_at":"2013-08-22T13:49:31Z","updated_at":"2016-01-15T11:33:16Z","pushed_at":"2016-01-15T16:17:05Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":13450,"stargazers_count":1003,"watchers_count":1003,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":59,"forks":52,"open_issues":59,"watchers":1003,"default_branch":"master"}},"base":{"label":"guardian:master","ref":"master","sha":"da7098853aac365fb2ee5858bf72be708b386ed4","user":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"repo":{"id":12298112,"name":"grid","full_name":"guardian/grid","owner":{"login":"guardian","id":164318,"avatar_url":"https://avatars.githubusercontent.com/u/164318?v=3","gravatar_id":"","url":"https://api.github.com/users/guardian","html_url":"https://github.com/guardian","followers_url":"https://api.github.com/users/guardian/followers","following_url":"https://api.github.com/users/guardian/following{/other_user}","gists_url":"https://api.github.com/users/guardian/gists{/gist_id}","starred_url":"https://api.github.com/users/guardian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guardian/subscriptions","organizations_url":"https://api.github.com/users/guardian/orgs","repos_url":"https://api.github.com/users/guardian/repos","events_url":"https://api.github.com/users/guardian/events{/privacy}","received_events_url":"https://api.github.com/users/guardian/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/guardian/grid","description":"The Guardian’s new image management system","fork":false,"url":"https://api.github.com/repos/guardian/grid","forks_url":"https://api.github.com/repos/guardian/grid/forks","keys_url":"https://api.github.com/repos/guardian/grid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/guardian/grid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/guardian/grid/teams","hooks_url":"https://api.github.com/repos/guardian/grid/hooks","issue_events_url":"https://api.github.com/repos/guardian/grid/issues/events{/number}","events_url":"https://api.github.com/repos/guardian/grid/events","assignees_url":"https://api.github.com/repos/guardian/grid/assignees{/user}","branches_url":"https://api.github.com/repos/guardian/grid/branches{/branch}","tags_url":"https://api.github.com/repos/guardian/grid/tags","blobs_url":"https://api.github.com/repos/guardian/grid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/guardian/grid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/guardian/grid/git/refs{/sha}","trees_url":"https://api.github.com/repos/guardian/grid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/guardian/grid/statuses/{sha}","languages_url":"https://api.github.com/repos/guardian/grid/languages","stargazers_url":"https://api.github.com/repos/guardian/grid/stargazers","contributors_url":"https://api.github.com/repos/guardian/grid/contributors","subscribers_url":"https://api.github.com/repos/guardian/grid/subscribers","subscription_url":"https://api.github.com/repos/guardian/grid/subscription","commits_url":"https://api.github.com/repos/guardian/grid/commits{/sha}","git_commits_url":"https://api.github.com/repos/guardian/grid/git/commits{/sha}","comments_url":"https://api.github.com/repos/guardian/grid/comments{/number}","issue_comment_url":"https://api.github.com/repos/guardian/grid/issues/comments{/number}","contents_url":"https://api.github.com/repos/guardian/grid/contents/{+path}","compare_url":"https://api.github.com/repos/guardian/grid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/guardian/grid/merges","archive_url":"https://api.github.com/repos/guardian/grid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/guardian/grid/downloads","issues_url":"https://api.github.com/repos/guardian/grid/issues{/number}","pulls_url":"https://api.github.com/repos/guardian/grid/pulls{/number}","milestones_url":"https://api.github.com/repos/guardian/grid/milestones{/number}","notifications_url":"https://api.github.com/repos/guardian/grid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/guardian/grid/labels{/name}","releases_url":"https://api.github.com/repos/guardian/grid/releases{/id}","created_at":"2013-08-22T13:49:31Z","updated_at":"2016-01-15T11:33:16Z","pushed_at":"2016-01-15T16:17:05Z","git_url":"git://github.com/guardian/grid.git","ssh_url":"git@github.com:guardian/grid.git","clone_url":"https://github.com/guardian/grid.git","svn_url":"https://github.com/guardian/grid","homepage":"","size":13450,"stargazers_count":1003,"watchers_count":1003,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":59,"forks":52,"open_issues":59,"watchers":1003,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/guardian/grid/pulls/1648"},"html":{"href":"https://github.com/guardian/grid/pull/1648"},"issue":{"href":"https://api.github.com/repos/guardian/grid/issues/1648"},"comments":{"href":"https://api.github.com/repos/guardian/grid/issues/1648/comments"},"review_comments":{"href":"https://api.github.com/repos/guardian/grid/pulls/1648/comments"},"review_comment":{"href":"https://api.github.com/repos/guardian/grid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/guardian/grid/pulls/1648/commits"},"statuses":{"href":"https://api.github.com/repos/guardian/grid/statuses/14b1af0e6f24c79e76609b2fa8d9897c85378edd"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"kenoir","id":953792,"avatar_url":"https://avatars.githubusercontent.com/u/953792?v=3","gravatar_id":"","url":"https://api.github.com/users/kenoir","html_url":"https://github.com/kenoir","followers_url":"https://api.github.com/users/kenoir/followers","following_url":"https://api.github.com/users/kenoir/following{/other_user}","gists_url":"https://api.github.com/users/kenoir/gists{/gist_id}","starred_url":"https://api.github.com/users/kenoir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenoir/subscriptions","organizations_url":"https://api.github.com/users/kenoir/orgs","repos_url":"https://api.github.com/users/kenoir/repos","events_url":"https://api.github.com/users/kenoir/events{/privacy}","received_events_url":"https://api.github.com/users/kenoir/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":615,"deletions":114,"changed_files":28}}