{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/5220","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/5220/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/5220/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/5220/events","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/5220","id":208506139,"number":5220,"title":"Fix #5178: FluxC Editor media upload error/retry handling","user":{"login":"aforcier","id":9613966,"avatar_url":"https://avatars.githubusercontent.com/u/9613966?v=3","gravatar_id":"","url":"https://api.github.com/users/aforcier","html_url":"https://github.com/aforcier","followers_url":"https://api.github.com/users/aforcier/followers","following_url":"https://api.github.com/users/aforcier/following{/other_user}","gists_url":"https://api.github.com/users/aforcier/gists{/gist_id}","starred_url":"https://api.github.com/users/aforcier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aforcier/subscriptions","organizations_url":"https://api.github.com/users/aforcier/orgs","repos_url":"https://api.github.com/users/aforcier/repos","events_url":"https://api.github.com/users/aforcier/events{/privacy}","received_events_url":"https://api.github.com/users/aforcier/received_events","type":"User","site_admin":false},"labels":[{"id":478644498,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/fluxc-integration","name":"fluxc-integration","color":"006b75","default":false},{"id":114455495,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/labels/Media","name":"Media","color":"006b75","default":false}],"state":"open","locked":false,"assignee":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"assignees":[{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2017-02-17T17:27:53Z","updated_at":"2017-02-21T14:42:56Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/pulls/5220","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/5220","diff_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/5220.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/5220.patch"},"body":"Fixes #5178.\r\n\r\nNot ready for merge yet.\r\n\r\nAddresses a few issues with media uploads in the editor:\r\n\r\n1. Enables retries for failed media uploads\r\n2. Prevents completed and failed media from being re-enqueued for upload when more media are added to a post\r\n3. Fixes a few issues with upload state comparisons due to case differences (`MediaUploadState.toString()` would be lowercase, while `MediaUploadState.name()` would be upper, and either method for `MediaModel.UploadState` would be uppercase) <-- I think later on we should drop `MediaUploadState` entirely, and beef it up a bit, maybe with a [`fromMedia` method](https://github.com/wordpress-mobile/WordPress-FluxC-Android/blob/9e535369eb7dfef24c844e90443b3c634d3c4bde/fluxc/src/main/java/org/wordpress/android/fluxc/model/post/PostStatus.java#L63)"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/comments/281363287","html_url":"https://github.com/wordpress-mobile/WordPress-Android/pull/5220#issuecomment-281363287","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-Android/issues/5220","id":281363287,"user":{"login":"maxme","id":40213,"avatar_url":"https://avatars.githubusercontent.com/u/40213?v=3","gravatar_id":"","url":"https://api.github.com/users/maxme","html_url":"https://github.com/maxme","followers_url":"https://api.github.com/users/maxme/followers","following_url":"https://api.github.com/users/maxme/following{/other_user}","gists_url":"https://api.github.com/users/maxme/gists{/gist_id}","starred_url":"https://api.github.com/users/maxme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxme/subscriptions","organizations_url":"https://api.github.com/users/maxme/orgs","repos_url":"https://api.github.com/users/maxme/repos","events_url":"https://api.github.com/users/maxme/events{/privacy}","received_events_url":"https://api.github.com/users/maxme/received_events","type":"User","site_admin":false},"created_at":"2017-02-21T14:42:56Z","updated_at":"2017-02-21T14:42:56Z","body":":shipit: "}}
{"actor":{"display_login":"maxme"}}