{"action":"created","issue":{"url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/69","labels_url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/69/comments","events_url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/69/events","html_url":"https://github.com/ecohealthalliance/mantle/pull/69","id":96305980,"number":69,"title":"Users can join an organization","user":{"login":"nathanathan","id":710024,"avatar_url":"https://avatars.githubusercontent.com/u/710024?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanathan","html_url":"https://github.com/nathanathan","followers_url":"https://api.github.com/users/nathanathan/followers","following_url":"https://api.github.com/users/nathanathan/following{/other_user}","gists_url":"https://api.github.com/users/nathanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanathan/subscriptions","organizations_url":"https://api.github.com/users/nathanathan/orgs","repos_url":"https://api.github.com/users/nathanathan/repos","events_url":"https://api.github.com/users/nathanathan/events{/privacy}","received_events_url":"https://api.github.com/users/nathanathan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-21T12:38:46Z","updated_at":"2015-07-21T14:58:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ecohealthalliance/mantle/pulls/69","html_url":"https://github.com/ecohealthalliance/mantle/pull/69","diff_url":"https://github.com/ecohealthalliance/mantle/pull/69.diff","patch_url":"https://github.com/ecohealthalliance/mantle/pull/69.patch"},"body":"Notes:\r\n * Org membership is tracked in the user profile to simplify user profile the subscription.\r\n * The roles package is not used because it cannot make use of an index to find the users that belong to an arbitrary org, so viewing an org page would require scanning all the user profiles.\r\n * This won't work with old user accounts because the memberOfOrgs property has to be an array."},"comment":{"url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/comments/123359431","html_url":"https://github.com/ecohealthalliance/mantle/pull/69#issuecomment-123359431","issue_url":"https://api.github.com/repos/ecohealthalliance/mantle/issues/69","id":123359431,"user":{"login":"nathanathan","id":710024,"avatar_url":"https://avatars.githubusercontent.com/u/710024?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanathan","html_url":"https://github.com/nathanathan","followers_url":"https://api.github.com/users/nathanathan/followers","following_url":"https://api.github.com/users/nathanathan/following{/other_user}","gists_url":"https://api.github.com/users/nathanathan/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanathan/subscriptions","organizations_url":"https://api.github.com/users/nathanathan/orgs","repos_url":"https://api.github.com/users/nathanathan/repos","events_url":"https://api.github.com/users/nathanathan/events{/privacy}","received_events_url":"https://api.github.com/users/nathanathan/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T14:58:06Z","updated_at":"2015-07-21T14:58:06Z","body":"It probably could use an index if the roles aren't group specific, but when the group name is part of the query field, you would need an index for each group name. See also: http://alanning.github.io/meteor-roles/classes/Roles.html#method_getUsersInRole"}}