{"action":"created","issue":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8982","repository_url":"https://api.github.com/repos/Automattic/wp-calypso","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8982/labels{/name}","comments_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8982/comments","events_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8982/events","html_url":"https://github.com/Automattic/wp-calypso/pull/8982","id":185712340,"number":8982,"title":"ImageEditor: restore original media file","user":{"login":"retrofox","id":77539,"avatar_url":"https://avatars.githubusercontent.com/u/77539?v=3","gravatar_id":"","url":"https://api.github.com/users/retrofox","html_url":"https://github.com/retrofox","followers_url":"https://api.github.com/users/retrofox/followers","following_url":"https://api.github.com/users/retrofox/following{/other_user}","gists_url":"https://api.github.com/users/retrofox/gists{/gist_id}","starred_url":"https://api.github.com/users/retrofox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/retrofox/subscriptions","organizations_url":"https://api.github.com/users/retrofox/orgs","repos_url":"https://api.github.com/users/retrofox/repos","events_url":"https://api.github.com/users/retrofox/events{/privacy}","received_events_url":"https://api.github.com/users/retrofox/received_events","type":"User","site_admin":false},"labels":[{"id":285009995,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Editor","name":"Editor","color":"006b75","default":false},{"id":285010038,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/Media","name":"Media","color":"006b75","default":false},{"id":285010019,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Author%20Reply","name":"[Status] Needs Author Reply","color":"eb6420","default":false},{"id":285010023,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Status]%20Needs%20Design%20Review","name":"[Status] Needs Design Review","color":"009800","default":false},{"id":285009976,"url":"https://api.github.com/repos/Automattic/wp-calypso/labels/[Type]%20Enhancement","name":"[Type] Enhancement","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/107","html_url":"https://github.com/Automattic/wp-calypso/milestones/Image%20Editor","labels_url":"https://api.github.com/repos/Automattic/wp-calypso/milestones/107/labels","id":1872811,"number":107,"title":"Image Editor","description":null,"creator":{"login":"gwwar","id":1270189,"avatar_url":"https://avatars.githubusercontent.com/u/1270189?v=3","gravatar_id":"","url":"https://api.github.com/users/gwwar","html_url":"https://github.com/gwwar","followers_url":"https://api.github.com/users/gwwar/followers","following_url":"https://api.github.com/users/gwwar/following{/other_user}","gists_url":"https://api.github.com/users/gwwar/gists{/gist_id}","starred_url":"https://api.github.com/users/gwwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gwwar/subscriptions","organizations_url":"https://api.github.com/users/gwwar/orgs","repos_url":"https://api.github.com/users/gwwar/repos","events_url":"https://api.github.com/users/gwwar/events{/privacy}","received_events_url":"https://api.github.com/users/gwwar/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":65,"state":"open","created_at":"2016-07-08T18:51:46Z","updated_at":"2016-10-27T16:09:14Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-10-27T16:05:03Z","updated_at":"2016-10-31T14:30:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Automattic/wp-calypso/pulls/8982","html_url":"https://github.com/Automattic/wp-calypso/pull/8982","diff_url":"https://github.com/Automattic/wp-calypso/pull/8982.diff","patch_url":"https://github.com/Automattic/wp-calypso/pull/8982.patch"},"body":"This PR tries to achieve the functionality to restoring the original media file once the media was edited.\n\nAlthough we already have some description for this implementation I've had to implement some behaviors using my own criteria. 😨 \nFor this reason, I would like to know the opinion of @adambbecker and @mtias. Here an animation:\n\n![calypso-image-editor-14](https://cloud.githubusercontent.com/assets/77539/19775158/e4be8170-9c45-11e6-9ee0-725681cbab75.gif)\n\nKeep in mind that this PR belongs to [Editor V1 project](https://github.com/Automattic/wp-calypso/projects/4), and we have thought to continue with [Editor V2](https://github.com/Automattic/wp-calypso/projects/5) immediately once V1 is ready. Thus I'm pretty sure that, although this implementation is ok at least in my opinion, it's very probable that it will be updated soon according to new improvements.\n### Testing\n\nA picture is worth a thousand words. Take a look at the animation above.\n"},"comment":{"url":"https://api.github.com/repos/Automattic/wp-calypso/issues/comments/257308638","html_url":"https://github.com/Automattic/wp-calypso/pull/8982#issuecomment-257308638","issue_url":"https://api.github.com/repos/Automattic/wp-calypso/issues/8982","id":257308638,"user":{"login":"lamosty","id":4988512,"avatar_url":"https://avatars.githubusercontent.com/u/4988512?v=3","gravatar_id":"","url":"https://api.github.com/users/lamosty","html_url":"https://github.com/lamosty","followers_url":"https://api.github.com/users/lamosty/followers","following_url":"https://api.github.com/users/lamosty/following{/other_user}","gists_url":"https://api.github.com/users/lamosty/gists{/gist_id}","starred_url":"https://api.github.com/users/lamosty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamosty/subscriptions","organizations_url":"https://api.github.com/users/lamosty/orgs","repos_url":"https://api.github.com/users/lamosty/repos","events_url":"https://api.github.com/users/lamosty/events{/privacy}","received_events_url":"https://api.github.com/users/lamosty/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T14:30:08Z","updated_at":"2016-10-31T14:30:08Z","body":"Nice work @retrofox!\r\n\r\nA few things:\r\n\r\n1. After uploading a brand new image, the \"Restore Original\" button still shows even though there is nothing to restore;\r\n2. After clicking the restore original button on the newly uploaded image, the image is replaced by a 404 one. When navigating to the 404 image, I get this response: `We cannot complete this request, remote data could not be fetched`.\r\n"}}
{"actor":{"display_login":"lamosty"}}