{"action":"opened","number":2826,"pull_request":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826","id":65897612,"html_url":"https://github.com/RocketChat/Rocket.Chat/pull/2826","diff_url":"https://github.com/RocketChat/Rocket.Chat/pull/2826.diff","patch_url":"https://github.com/RocketChat/Rocket.Chat/pull/2826.patch","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2826","number":2826,"state":"open","locked":false,"title":"Feature to add maximum channel members for an @all message to send no…","user":{"login":"lochiiconnectivity","id":4155305,"avatar_url":"https://avatars.githubusercontent.com/u/4155305?v=3","gravatar_id":"","url":"https://api.github.com/users/lochiiconnectivity","html_url":"https://github.com/lochiiconnectivity","followers_url":"https://api.github.com/users/lochiiconnectivity/followers","following_url":"https://api.github.com/users/lochiiconnectivity/following{/other_user}","gists_url":"https://api.github.com/users/lochiiconnectivity/gists{/gist_id}","starred_url":"https://api.github.com/users/lochiiconnectivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lochiiconnectivity/subscriptions","organizations_url":"https://api.github.com/users/lochiiconnectivity/orgs","repos_url":"https://api.github.com/users/lochiiconnectivity/repos","events_url":"https://api.github.com/users/lochiiconnectivity/events{/privacy}","received_events_url":"https://api.github.com/users/lochiiconnectivity/received_events","type":"User","site_admin":false},"body":"<!-- INSTRUCTION: Keep the line below to notify all core developers about this new PR -->\r\n@RocketChat/core \r\n\r\n<!-- INSTRUCTION: Inform the issue number that this PR closes, or remove the line below -->\r\nCloses #2825\r\n\r\n<!-- INSTRUCTION: Tell us more about your PR with screen shots if you can -->\r\n\r\nThis PR limits notifications to @all on large channels, it introduces a new setting (Message_MaxAll) which, if nonzero, acts as the upper limit of channel members to at which @all notifications for a channel are sent. \r\n\r\nUse case : we have hundreds of users in our #general , a misplaced @all here will result in a flood of notifications and potentially push messages to mobile clients. ","created_at":"2016-04-10T01:10:47Z","updated_at":"2016-04-10T01:10:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826/commits","review_comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826/comments","review_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2826/comments","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/e3d1359a75f386b6c7ced246a5945efd6b2effb4","head":{"label":"lochiiconnectivity:feature-maxall","ref":"feature-maxall","sha":"e3d1359a75f386b6c7ced246a5945efd6b2effb4","user":{"login":"lochiiconnectivity","id":4155305,"avatar_url":"https://avatars.githubusercontent.com/u/4155305?v=3","gravatar_id":"","url":"https://api.github.com/users/lochiiconnectivity","html_url":"https://github.com/lochiiconnectivity","followers_url":"https://api.github.com/users/lochiiconnectivity/followers","following_url":"https://api.github.com/users/lochiiconnectivity/following{/other_user}","gists_url":"https://api.github.com/users/lochiiconnectivity/gists{/gist_id}","starred_url":"https://api.github.com/users/lochiiconnectivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lochiiconnectivity/subscriptions","organizations_url":"https://api.github.com/users/lochiiconnectivity/orgs","repos_url":"https://api.github.com/users/lochiiconnectivity/repos","events_url":"https://api.github.com/users/lochiiconnectivity/events{/privacy}","received_events_url":"https://api.github.com/users/lochiiconnectivity/received_events","type":"User","site_admin":false},"repo":{"id":55869112,"name":"Rocket.Chat","full_name":"lochiiconnectivity/Rocket.Chat","owner":{"login":"lochiiconnectivity","id":4155305,"avatar_url":"https://avatars.githubusercontent.com/u/4155305?v=3","gravatar_id":"","url":"https://api.github.com/users/lochiiconnectivity","html_url":"https://github.com/lochiiconnectivity","followers_url":"https://api.github.com/users/lochiiconnectivity/followers","following_url":"https://api.github.com/users/lochiiconnectivity/following{/other_user}","gists_url":"https://api.github.com/users/lochiiconnectivity/gists{/gist_id}","starred_url":"https://api.github.com/users/lochiiconnectivity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lochiiconnectivity/subscriptions","organizations_url":"https://api.github.com/users/lochiiconnectivity/orgs","repos_url":"https://api.github.com/users/lochiiconnectivity/repos","events_url":"https://api.github.com/users/lochiiconnectivity/events{/privacy}","received_events_url":"https://api.github.com/users/lochiiconnectivity/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lochiiconnectivity/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":true,"url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat","forks_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/lochiiconnectivity/Rocket.Chat/deployments","created_at":"2016-04-09T22:08:02Z","updated_at":"2016-04-09T22:08:07Z","pushed_at":"2016-04-10T01:03:57Z","git_url":"git://github.com/lochiiconnectivity/Rocket.Chat.git","ssh_url":"git@github.com:lochiiconnectivity/Rocket.Chat.git","clone_url":"https://github.com/lochiiconnectivity/Rocket.Chat.git","svn_url":"https://github.com/lochiiconnectivity/Rocket.Chat","homepage":"https://rocket.chat/","size":31212,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"RocketChat:develop","ref":"develop","sha":"3bd2d95f4264024f4d3d3e1d318d4ed2ebff98c9","user":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"repo":{"id":35866694,"name":"Rocket.Chat","full_name":"RocketChat/Rocket.Chat","owner":{"login":"RocketChat","id":12508788,"avatar_url":"https://avatars.githubusercontent.com/u/12508788?v=3","gravatar_id":"","url":"https://api.github.com/users/RocketChat","html_url":"https://github.com/RocketChat","followers_url":"https://api.github.com/users/RocketChat/followers","following_url":"https://api.github.com/users/RocketChat/following{/other_user}","gists_url":"https://api.github.com/users/RocketChat/gists{/gist_id}","starred_url":"https://api.github.com/users/RocketChat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RocketChat/subscriptions","organizations_url":"https://api.github.com/users/RocketChat/orgs","repos_url":"https://api.github.com/users/RocketChat/repos","events_url":"https://api.github.com/users/RocketChat/events{/privacy}","received_events_url":"https://api.github.com/users/RocketChat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RocketChat/Rocket.Chat","description":"Have your own Slack like online chat, built with Meteor.","fork":false,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat","forks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/forks","keys_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/teams","hooks_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/hooks","issue_events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/events{/number}","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/events","assignees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/assignees{/user}","branches_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/branches{/branch}","tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/tags","blobs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/refs{/sha}","trees_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/{sha}","languages_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/languages","stargazers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/stargazers","contributors_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contributors","subscribers_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscribers","subscription_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/subscription","commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/commits{/sha}","git_commits_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/git/commits{/sha}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/comments{/number}","issue_comment_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments{/number}","contents_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/contents/{+path}","compare_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/merges","archive_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/downloads","issues_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues{/number}","pulls_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls{/number}","milestones_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones{/number}","notifications_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels{/name}","releases_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/releases{/id}","deployments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/deployments","created_at":"2015-05-19T07:36:09Z","updated_at":"2016-04-09T23:09:53Z","pushed_at":"2016-04-09T12:47:27Z","git_url":"git://github.com/RocketChat/Rocket.Chat.git","ssh_url":"git@github.com:RocketChat/Rocket.Chat.git","clone_url":"https://github.com/RocketChat/Rocket.Chat.git","svn_url":"https://github.com/RocketChat/Rocket.Chat","homepage":"https://rocket.chat/","size":42862,"stargazers_count":6747,"watchers_count":6747,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1310,"mirror_url":null,"open_issues_count":638,"forks":1310,"open_issues":638,"watchers":6747,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826"},"html":{"href":"https://github.com/RocketChat/Rocket.Chat/pull/2826"},"issue":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2826"},"comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/2826/comments"},"review_comments":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826/comments"},"review_comment":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/pulls/2826/commits"},"statuses":{"href":"https://api.github.com/repos/RocketChat/Rocket.Chat/statuses/e3d1359a75f386b6c7ced246a5945efd6b2effb4"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":50,"deletions":20,"changed_files":23}}