{"action":"created","issue":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/2093","repository_url":"https://api.github.com/repos/medic/medic-webapp","labels_url":"https://api.github.com/repos/medic/medic-webapp/issues/2093/labels{/name}","comments_url":"https://api.github.com/repos/medic/medic-webapp/issues/2093/comments","events_url":"https://api.github.com/repos/medic/medic-webapp/issues/2093/events","html_url":"https://github.com/medic/medic-webapp/issues/2093","id":141217263,"number":2093,"title":"Reports do not sort correctly when created after list has loaded","user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/medic/medic-webapp/labels/3%20-%20Code%20Review","name":"3 - Code Review","color":"fad8c7"},{"url":"https://api.github.com/repos/medic/medic-webapp/labels/Bug","name":"Bug","color":"c10c02"}],"state":"open","locked":false,"assignee":{"login":"garethbowen","id":2064938,"avatar_url":"https://avatars.githubusercontent.com/u/2064938?v=3","gravatar_id":"","url":"https://api.github.com/users/garethbowen","html_url":"https://github.com/garethbowen","followers_url":"https://api.github.com/users/garethbowen/followers","following_url":"https://api.github.com/users/garethbowen/following{/other_user}","gists_url":"https://api.github.com/users/garethbowen/gists{/gist_id}","starred_url":"https://api.github.com/users/garethbowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garethbowen/subscriptions","organizations_url":"https://api.github.com/users/garethbowen/orgs","repos_url":"https://api.github.com/users/garethbowen/repos","events_url":"https://api.github.com/users/garethbowen/events{/privacy}","received_events_url":"https://api.github.com/users/garethbowen/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/medic/medic-webapp/milestones/47","html_url":"https://github.com/medic/medic-webapp/milestones/Iteration%202016-11:%20Field%20Test%20Feedback,%20Release%20Preparation","labels_url":"https://api.github.com/repos/medic/medic-webapp/milestones/47/labels","id":1626905,"number":47,"title":"Iteration 2016-11: Field Test Feedback, Release Preparation","description":"","creator":{"login":"browndav","id":763977,"avatar_url":"https://avatars.githubusercontent.com/u/763977?v=3","gravatar_id":"","url":"https://api.github.com/users/browndav","html_url":"https://github.com/browndav","followers_url":"https://api.github.com/users/browndav/followers","following_url":"https://api.github.com/users/browndav/following{/other_user}","gists_url":"https://api.github.com/users/browndav/gists{/gist_id}","starred_url":"https://api.github.com/users/browndav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/browndav/subscriptions","organizations_url":"https://api.github.com/users/browndav/orgs","repos_url":"https://api.github.com/users/browndav/repos","events_url":"https://api.github.com/users/browndav/events{/privacy}","received_events_url":"https://api.github.com/users/browndav/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":36,"state":"open","created_at":"2016-03-07T17:40:27Z","updated_at":"2016-03-16T09:47:47Z","due_on":"2016-03-21T07:00:00Z","closed_at":null},"comments":1,"created_at":"2016-03-16T09:32:32Z","updated_at":"2016-03-16T09:58:50Z","closed_at":null,"body":"# Steps to recreate\r\n\r\n1. go to _History_ tab\r\n2. create a report via Contact > Assess Patient\r\n3. go to _History_ tab\r\n4. observe reports are in wrong order:\r\n<img width=\"1280\" alt=\"screen shot 2016-03-16 at 12 29 59\" src=\"https://cloud.githubusercontent.com/assets/191496/13807610/0a9a5358-eb73-11e5-9503-b9221cba65a9.png\">\r\n\r\n5. refresh the page and observe reports are now sorted correctly:\r\n<img width=\"1280\" alt=\"screen shot 2016-03-16 at 12 30 07\" src=\"https://cloud.githubusercontent.com/assets/191496/13807614/0e96c7c0-eb73-11e5-8047-23a828c08029.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/medic/medic-webapp/issues/comments/197236982","html_url":"https://github.com/medic/medic-webapp/issues/2093#issuecomment-197236982","issue_url":"https://api.github.com/repos/medic/medic-webapp/issues/2093","id":197236982,"user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T09:58:50Z","updated_at":"2016-03-16T09:58:50Z","body":"Incorporates the fix from #2078, but fixes the bugs introduced by it :-)"}}