{"action":"closed","issue":{"url":"https://api.github.com/repos/vickychijwani/quill/issues/47","labels_url":"https://api.github.com/repos/vickychijwani/quill/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/vickychijwani/quill/issues/47/comments","events_url":"https://api.github.com/repos/vickychijwani/quill/issues/47/events","html_url":"https://github.com/vickychijwani/quill/issues/47","id":75002168,"number":47,"title":"Creating and publishing a post offline doesn't work","user":{"login":"vickychijwani","id":439616,"avatar_url":"https://avatars.githubusercontent.com/u/439616?v=3","gravatar_id":"","url":"https://api.github.com/users/vickychijwani","html_url":"https://github.com/vickychijwani","followers_url":"https://api.github.com/users/vickychijwani/followers","following_url":"https://api.github.com/users/vickychijwani/following{/other_user}","gists_url":"https://api.github.com/users/vickychijwani/gists{/gist_id}","starred_url":"https://api.github.com/users/vickychijwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickychijwani/subscriptions","organizations_url":"https://api.github.com/users/vickychijwani/orgs","repos_url":"https://api.github.com/users/vickychijwani/repos","events_url":"https://api.github.com/users/vickychijwani/events{/privacy}","received_events_url":"https://api.github.com/users/vickychijwani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vickychijwani/quill/labels/bug","name":"bug","color":"c70000"},{"url":"https://api.github.com/repos/vickychijwani/quill/labels/high-priority","name":"high-priority","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/vickychijwani/quill/milestones/1","html_url":"https://github.com/vickychijwani/quill/milestones/1.0","labels_url":"https://api.github.com/repos/vickychijwani/quill/milestones/1/labels","id":981682,"number":1,"title":"1.0","description":"","creator":{"login":"vickychijwani","id":439616,"avatar_url":"https://avatars.githubusercontent.com/u/439616?v=3","gravatar_id":"","url":"https://api.github.com/users/vickychijwani","html_url":"https://github.com/vickychijwani","followers_url":"https://api.github.com/users/vickychijwani/followers","following_url":"https://api.github.com/users/vickychijwani/following{/other_user}","gists_url":"https://api.github.com/users/vickychijwani/gists{/gist_id}","starred_url":"https://api.github.com/users/vickychijwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vickychijwani/subscriptions","organizations_url":"https://api.github.com/users/vickychijwani/orgs","repos_url":"https://api.github.com/users/vickychijwani/repos","events_url":"https://api.github.com/users/vickychijwani/events{/privacy}","received_events_url":"https://api.github.com/users/vickychijwani/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":26,"state":"open","created_at":"2015-02-16T17:42:34Z","updated_at":"2015-05-17T19:44:49Z","due_on":"2015-05-30T18:30:00Z","closed_at":null},"comments":0,"created_at":"2015-05-10T21:07:56Z","updated_at":"2015-05-17T19:44:49Z","closed_at":"2015-05-17T19:44:49Z","body":"The reason is that when the post is created, it has a status of `LOCAL_NEW`, and then the status changes to `PUBLISHED`, so it cannot be created on the server when a network connection is available later.\r\n\r\nThe [post state machine](/wiki/State-machine-for-posts) will need to be updated to accommodate this case. Current thoughts are to have 2 orthogonal fields:\r\n\r\n- `status`: must be `DRAFT` or `PUBLISHED` *only*\r\n- `pendingActions`: can be one or more of: `CREATE`, `EDIT` (there are only 2 actions now, but more may be added later, like `DELETE`)"}}