{"action":"created","issue":{"url":"https://api.github.com/repos/intercom/intercom-rails/issues/199","repository_url":"https://api.github.com/repos/intercom/intercom-rails","labels_url":"https://api.github.com/repos/intercom/intercom-rails/issues/199/labels{/name}","comments_url":"https://api.github.com/repos/intercom/intercom-rails/issues/199/comments","events_url":"https://api.github.com/repos/intercom/intercom-rails/issues/199/events","html_url":"https://github.com/intercom/intercom-rails/issues/199","id":158962739,"number":199,"title":"Import task does not clear the `companies` of an User.","user":{"login":"lucasmazza","id":80978,"avatar_url":"https://avatars.githubusercontent.com/u/80978?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasmazza","html_url":"https://github.com/lucasmazza","followers_url":"https://api.github.com/users/lucasmazza/followers","following_url":"https://api.github.com/users/lucasmazza/following{/other_user}","gists_url":"https://api.github.com/users/lucasmazza/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasmazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasmazza/subscriptions","organizations_url":"https://api.github.com/users/lucasmazza/orgs","repos_url":"https://api.github.com/users/lucasmazza/repos","events_url":"https://api.github.com/users/lucasmazza/events{/privacy}","received_events_url":"https://api.github.com/users/lucasmazza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-07T16:06:50Z","updated_at":"2016-06-10T19:01:44Z","closed_at":"2016-06-09T20:15:08Z","body":"## Version info\r\n  - intercom-rails version: `0.2.34`\r\n  - Rails version: `5.0.0.rc1`\r\n\r\n## Expected behavior\r\n\r\nWhen a user on my system is removed from all its companies associations, it's matching profile on Intercom still belongs to the last company that was associated with the user.\r\n\r\n## Actual behavior\r\n\r\nThe import task doesn't clear the `companies` list on Intercom due a `companies.present?` guard at https://github.com/intercom/intercom-rails/blob/34b1baab23d75170aa305c37976219fe8efd82ab/lib/intercom-rails/import.rb#L105. \r\n\r\nIf this guard is no longer relevant I can send a PR removing it.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/intercom/intercom-rails/issues/comments/225268179","html_url":"https://github.com/intercom/intercom-rails/issues/199#issuecomment-225268179","issue_url":"https://api.github.com/repos/intercom/intercom-rails/issues/199","id":225268179,"user":{"login":"lucasmazza","id":80978,"avatar_url":"https://avatars.githubusercontent.com/u/80978?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasmazza","html_url":"https://github.com/lucasmazza","followers_url":"https://api.github.com/users/lucasmazza/followers","following_url":"https://api.github.com/users/lucasmazza/following{/other_user}","gists_url":"https://api.github.com/users/lucasmazza/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasmazza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasmazza/subscriptions","organizations_url":"https://api.github.com/users/lucasmazza/orgs","repos_url":"https://api.github.com/users/lucasmazza/repos","events_url":"https://api.github.com/users/lucasmazza/events{/privacy}","received_events_url":"https://api.github.com/users/lucasmazza/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T19:01:44Z","updated_at":"2016-06-10T19:01:44Z","body":"@eugeneius I've deployed the latest version and looks like the fix wasn't enough to help on our use case - the users aren't being updated as expected. I talked with Marshall through the in app chat on Intercom and he mentioned about possibly this being a server side issue on the Intercom API."}}
{"actor":{"display_login":"lucasmazza"}}