{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/kuma/issues/3822","repository_url":"https://api.github.com/repos/mozilla/kuma","labels_url":"https://api.github.com/repos/mozilla/kuma/issues/3822/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/kuma/issues/3822/comments","events_url":"https://api.github.com/repos/mozilla/kuma/issues/3822/events","html_url":"https://github.com/mozilla/kuma/pull/3822","id":143324700,"number":3822,"title":"Save draft improvements.","user":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"milestone":null,"comments":12,"created_at":"2016-03-24T18:31:26Z","updated_at":"2016-04-02T00:56:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla/kuma/pulls/3822","html_url":"https://github.com/mozilla/kuma/pull/3822","diff_url":"https://github.com/mozilla/kuma/pull/3822.diff","patch_url":"https://github.com/mozilla/kuma/pull/3822.patch"},"body":"Fix Bug 1259151 - When edit is blocked as spam, save the draft content\r\nFix Bug 1259197 - Draft save notification does not appear on translation pages.\r\nFix Bug 1123616 - Allow to manually store a draft\r\n\r\n- renamed page_buttons to support addition of draft button so no confusion over \"save\"\r\n- moved localStorage checks around and abstracted a bit\r\n- moved draft notifications to all be in one place above editor (and supporting HTML and CSS changes)\r\n- added draft notification changes to translation pages\r\n\r\nTesting:\r\n- edit button (6x one each for en-US edit and new, non en-US edit and new, and a template edit and new)\r\n- edit page title and properties still there\r\n- no recovered draft, save draft button present but disabled\r\n- type and click save button (in less than 3 seconds)\r\n- local storage has correct content and save button disabled\r\n- type and wait 3 seconds for auto save\r\n- local storage has correct content\r\n- hard refresh page\r\n- report draft to restore and no save button\r\n- restore draft\r\n- restored correctly\r\n- hard refresh\r\n- draft to restore\r\n- discard draft\r\n- hard refresh\r\n- no draft\r\n- make new draft\r\n- press discard button next to preview button\r\n- return to edit page\r\n- no draft\r\n- create spam edit\r\n- submit spam and be rejected\r\n- no draft\r\n- click draft save\r\n- hard refresh\r\n- restore draft sucessfully"},"comment":{"url":"https://api.github.com/repos/mozilla/kuma/issues/comments/204619893","html_url":"https://github.com/mozilla/kuma/pull/3822#issuecomment-204619893","issue_url":"https://api.github.com/repos/mozilla/kuma/issues/3822","id":204619893,"user":{"login":"stephaniehobson","id":854701,"avatar_url":"https://avatars.githubusercontent.com/u/854701?v=3","gravatar_id":"","url":"https://api.github.com/users/stephaniehobson","html_url":"https://github.com/stephaniehobson","followers_url":"https://api.github.com/users/stephaniehobson/followers","following_url":"https://api.github.com/users/stephaniehobson/following{/other_user}","gists_url":"https://api.github.com/users/stephaniehobson/gists{/gist_id}","starred_url":"https://api.github.com/users/stephaniehobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephaniehobson/subscriptions","organizations_url":"https://api.github.com/users/stephaniehobson/orgs","repos_url":"https://api.github.com/users/stephaniehobson/repos","events_url":"https://api.github.com/users/stephaniehobson/events{/privacy}","received_events_url":"https://api.github.com/users/stephaniehobson/received_events","type":"User","site_admin":false},"created_at":"2016-04-02T00:56:33Z","updated_at":"2016-04-02T00:56:33Z","body":"Updated :beers: "}}