{"action":"created","issue":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/53","labels_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/53/comments","events_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/53/events","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/pull/53","id":48820774,"number":53,"title":"Adds ability for users to have multiple roles.","user":{"login":"ben-github","id":2636492,"avatar_url":"https://avatars.githubusercontent.com/u/2636492?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-github","html_url":"https://github.com/ben-github","followers_url":"https://api.github.com/users/ben-github/followers","following_url":"https://api.github.com/users/ben-github/following{/other_user}","gists_url":"https://api.github.com/users/ben-github/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-github/subscriptions","organizations_url":"https://api.github.com/users/ben-github/orgs","repos_url":"https://api.github.com/users/ben-github/repos","events_url":"https://api.github.com/users/ben-github/events{/privacy}","received_events_url":"https://api.github.com/users/ben-github/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":21,"created_at":"2014-11-14T18:09:53Z","updated_at":"2015-01-12T00:25:24Z","closed_at":"2015-01-12T00:25:24Z","pull_request":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/pulls/53","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/pull/53","diff_url":"https://github.com/dpgaspar/Flask-AppBuilder/pull/53.diff","patch_url":"https://github.com/dpgaspar/Flask-AppBuilder/pull/53.patch"},"body":"Adds new mapping table to link users with multiple roles. Tested and works, however, because it changes the ab_user table (removes the role_id column) and needs another table for role mapping, it breaks FAB when used with already existing database.\r\n\r\nThis is not ready to be merged in yet, but I did a pull request to keep comments and code in a central place. Hopefully I can add migration stuff and then we can do a merge if everything looks good. \r\n\r\nMigration should be easy (drop column, add mapping table and do insert based on user's role_id) but I'm not sure where / how to put that. "},"comment":{"url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/comments/69519597","html_url":"https://github.com/dpgaspar/Flask-AppBuilder/pull/53#issuecomment-69519597","issue_url":"https://api.github.com/repos/dpgaspar/Flask-AppBuilder/issues/53","id":69519597,"user":{"login":"ben-github","id":2636492,"avatar_url":"https://avatars.githubusercontent.com/u/2636492?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-github","html_url":"https://github.com/ben-github","followers_url":"https://api.github.com/users/ben-github/followers","following_url":"https://api.github.com/users/ben-github/following{/other_user}","gists_url":"https://api.github.com/users/ben-github/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-github/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-github/subscriptions","organizations_url":"https://api.github.com/users/ben-github/orgs","repos_url":"https://api.github.com/users/ben-github/repos","events_url":"https://api.github.com/users/ben-github/events{/privacy}","received_events_url":"https://api.github.com/users/ben-github/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T00:25:24Z","updated_at":"2015-01-12T00:25:24Z","body":"Ok, I'll start poking around. Closing this pull request."}}