{"action":"created","issue":{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/324","labels_url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/324/comments","events_url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/324/events","html_url":"https://github.com/ozwillo/ozwillo-portal/issues/324","id":118076764,"number":324,"title":"Selection or creation of an organization when installing an app is not taken into account","user":{"login":"bobeal","id":175382,"avatar_url":"https://avatars.githubusercontent.com/u/175382?v=3","gravatar_id":"","url":"https://api.github.com/users/bobeal","html_url":"https://github.com/bobeal","followers_url":"https://api.github.com/users/bobeal/followers","following_url":"https://api.github.com/users/bobeal/following{/other_user}","gists_url":"https://api.github.com/users/bobeal/gists{/gist_id}","starred_url":"https://api.github.com/users/bobeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobeal/subscriptions","organizations_url":"https://api.github.com/users/bobeal/orgs","repos_url":"https://api.github.com/users/bobeal/repos","events_url":"https://api.github.com/users/bobeal/events{/privacy}","received_events_url":"https://api.github.com/users/bobeal/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/labels/app%20store","name":"app store","color":"eb6420"},{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/labels/high%20priority","name":"high priority","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/milestones/31","html_url":"https://github.com/ozwillo/ozwillo-portal/milestones/1.33","labels_url":"https://api.github.com/repos/ozwillo/ozwillo-portal/milestones/31/labels","id":1404790,"number":31,"title":"1.33","description":"","creator":{"login":"MLE-Astek","id":15086612,"avatar_url":"https://avatars.githubusercontent.com/u/15086612?v=3","gravatar_id":"","url":"https://api.github.com/users/MLE-Astek","html_url":"https://github.com/MLE-Astek","followers_url":"https://api.github.com/users/MLE-Astek/followers","following_url":"https://api.github.com/users/MLE-Astek/following{/other_user}","gists_url":"https://api.github.com/users/MLE-Astek/gists{/gist_id}","starred_url":"https://api.github.com/users/MLE-Astek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MLE-Astek/subscriptions","organizations_url":"https://api.github.com/users/MLE-Astek/orgs","repos_url":"https://api.github.com/users/MLE-Astek/repos","events_url":"https://api.github.com/users/MLE-Astek/events{/privacy}","received_events_url":"https://api.github.com/users/MLE-Astek/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2015-11-10T15:49:22Z","updated_at":"2015-11-24T16:56:02Z","due_on":"2015-11-23T23:00:00Z","closed_at":null},"comments":4,"created_at":"2015-11-20T16:30:48Z","updated_at":"2015-11-25T15:34:26Z","closed_at":null,"body":"As reported by @xmasclaux : \r\n\r\n> For an account who are admin of at least 2 organizations, \r\n> when I install a new app it'll be suscribed for the first organization of the form field (\"vos organisations\") > even if I choose another one or create a new one.\r\n> Tested in prod with differents accounts and apps : flux demat, simplewiki"},"comment":{"url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/comments/159642746","html_url":"https://github.com/ozwillo/ozwillo-portal/issues/324#issuecomment-159642746","issue_url":"https://api.github.com/repos/ozwillo/ozwillo-portal/issues/324","id":159642746,"user":{"login":"bobeal","id":175382,"avatar_url":"https://avatars.githubusercontent.com/u/175382?v=3","gravatar_id":"","url":"https://api.github.com/users/bobeal","html_url":"https://github.com/bobeal","followers_url":"https://api.github.com/users/bobeal/followers","following_url":"https://api.github.com/users/bobeal/following{/other_user}","gists_url":"https://api.github.com/users/bobeal/gists{/gist_id}","starred_url":"https://api.github.com/users/bobeal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobeal/subscriptions","organizations_url":"https://api.github.com/users/bobeal/orgs","repos_url":"https://api.github.com/users/bobeal/repos","events_url":"https://api.github.com/users/bobeal/events{/privacy}","received_events_url":"https://api.github.com/users/bobeal/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T15:34:26Z","updated_at":"2015-11-25T15:34:26Z","body":"That somehow explains the uncommented hack I removed in toggleType (which was also causing a bug when toggling between new and existing organizations).\r\n\r\nTo be honest, I've refactored this part of the process while working on the integration of the new design (which will be available next week) and I don't have time to dig into this problem this week. So I would prefer let it like that until the new design is available.\r\n"}}