{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-testing/issues/51","labels_url":"https://api.github.com/repos/strongloop/loopback-testing/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-testing/issues/51/comments","events_url":"https://api.github.com/repos/strongloop/loopback-testing/issues/51/events","html_url":"https://github.com/strongloop/loopback-testing/pull/51","id":66294368,"number":51,"title":"use findorCreate to create roles","user":{"login":"ningsuhen","id":6159372,"avatar_url":"https://avatars.githubusercontent.com/u/6159372?v=3","gravatar_id":"","url":"https://api.github.com/users/ningsuhen","html_url":"https://github.com/ningsuhen","followers_url":"https://api.github.com/users/ningsuhen/followers","following_url":"https://api.github.com/users/ningsuhen/following{/other_user}","gists_url":"https://api.github.com/users/ningsuhen/gists{/gist_id}","starred_url":"https://api.github.com/users/ningsuhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ningsuhen/subscriptions","organizations_url":"https://api.github.com/users/ningsuhen/orgs","repos_url":"https://api.github.com/users/ningsuhen/repos","events_url":"https://api.github.com/users/ningsuhen/events{/privacy}","received_events_url":"https://api.github.com/users/ningsuhen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-testing/labels/%23community%20contribution","name":"#community contribution","color":"D4AF37"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T08:58:23Z","updated_at":"2015-04-04T08:58:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/strongloop/loopback-testing/pulls/51","html_url":"https://github.com/strongloop/loopback-testing/pull/51","diff_url":"https://github.com/strongloop/loopback-testing/pull/51.diff","patch_url":"https://github.com/strongloop/loopback-testing/pull/51.patch"},"body":"The Role creation helper creates a new/duplicate role everytime even if it is of the same name. However, this is not very helpful. Role names should be unique. Also, in a system where there are pre-created roles like 'admin', I think that findOrCreate works better. Please merge this if you think this is a legit argument."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-testing/issues/comments/89531404","html_url":"https://github.com/strongloop/loopback-testing/pull/51#issuecomment-89531404","issue_url":"https://api.github.com/repos/strongloop/loopback-testing/issues/51","id":89531404,"user":{"login":"slnode","id":3865961,"avatar_url":"https://avatars.githubusercontent.com/u/3865961?v=3","gravatar_id":"","url":"https://api.github.com/users/slnode","html_url":"https://github.com/slnode","followers_url":"https://api.github.com/users/slnode/followers","following_url":"https://api.github.com/users/slnode/following{/other_user}","gists_url":"https://api.github.com/users/slnode/gists{/gist_id}","starred_url":"https://api.github.com/users/slnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slnode/subscriptions","organizations_url":"https://api.github.com/users/slnode/orgs","repos_url":"https://api.github.com/users/slnode/repos","events_url":"https://api.github.com/users/slnode/events{/privacy}","received_events_url":"https://api.github.com/users/slnode/received_events","type":"User","site_admin":false},"created_at":"2015-04-04T08:58:24Z","updated_at":"2015-04-04T08:58:24Z","body":"Can one of the admins verify this patch? To accept patch and trigger a build add comment \".*ok\\W+to\\W+test.*\""}}