{"action":"created","issue":{"url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/116","repository_url":"https://api.github.com/repos/uktrade/data-hub-prototype","labels_url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/116/labels{/name}","comments_url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/116/comments","events_url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/116/events","html_url":"https://github.com/uktrade/data-hub-prototype/issues/116","id":179470282,"number":116,"title":"Archive DIT created company creates duplicates","user":{"login":"ztolley","id":56056,"avatar_url":"https://avatars.githubusercontent.com/u/56056?v=3","gravatar_id":"","url":"https://api.github.com/users/ztolley","html_url":"https://github.com/ztolley","followers_url":"https://api.github.com/users/ztolley/followers","following_url":"https://api.github.com/users/ztolley/following{/other_user}","gists_url":"https://api.github.com/users/ztolley/gists{/gist_id}","starred_url":"https://api.github.com/users/ztolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ztolley/subscriptions","organizations_url":"https://api.github.com/users/ztolley/orgs","repos_url":"https://api.github.com/users/ztolley/repos","events_url":"https://api.github.com/users/ztolley/events{/privacy}","received_events_url":"https://api.github.com/users/ztolley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-27T11:43:52Z","updated_at":"2016-09-28T13:12:58Z","closed_at":null,"body":"![pasted_image_at_2016_09_27_10_19_am](https://cloud.githubusercontent.com/assets/56056/18871981/f3ac5fc0-84af-11e6-955f-b720e10d44a7.png)\r\n\r\nWhen you create a DIT company (Not CH) and archive it, a duplicate company is created in the index.\r\n\r\nDon't know if a duplicate is in the DB or not"},"comment":{"url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/comments/250162329","html_url":"https://github.com/uktrade/data-hub-prototype/issues/116#issuecomment-250162329","issue_url":"https://api.github.com/repos/uktrade/data-hub-prototype/issues/116","id":250162329,"user":{"login":"ztolley","id":56056,"avatar_url":"https://avatars.githubusercontent.com/u/56056?v=3","gravatar_id":"","url":"https://api.github.com/users/ztolley","html_url":"https://github.com/ztolley","followers_url":"https://api.github.com/users/ztolley/followers","following_url":"https://api.github.com/users/ztolley/following{/other_user}","gists_url":"https://api.github.com/users/ztolley/gists{/gist_id}","starred_url":"https://api.github.com/users/ztolley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ztolley/subscriptions","organizations_url":"https://api.github.com/users/ztolley/orgs","repos_url":"https://api.github.com/users/ztolley/repos","events_url":"https://api.github.com/users/ztolley/events{/privacy}","received_events_url":"https://api.github.com/users/ztolley/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T13:12:58Z","updated_at":"2016-09-28T13:12:58Z","body":"Turns out the issue was Any changes to a company was being duplicated in the index as the id field wasn't indexed."}}
{"actor":{"display_login":"ztolley"}}