{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6762","repository_url":"https://api.github.com/repos/HabitRPG/habitrpg","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6762/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6762/comments","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6762/events","html_url":"https://github.com/HabitRPG/habitrpg/pull/6762","id":135925749,"number":6762,"title":"Add automatic note to Guilds with 5000+ members: Fix #6706","user":{"login":"khipkin","id":5641207,"avatar_url":"https://avatars.githubusercontent.com/u/5641207?v=3","gravatar_id":"","url":"https://api.github.com/users/khipkin","html_url":"https://github.com/khipkin","followers_url":"https://api.github.com/users/khipkin/followers","following_url":"https://api.github.com/users/khipkin/following{/other_user}","gists_url":"https://api.github.com/users/khipkin/gists{/gist_id}","starred_url":"https://api.github.com/users/khipkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khipkin/subscriptions","organizations_url":"https://api.github.com/users/khipkin/orgs","repos_url":"https://api.github.com/users/khipkin/repos","events_url":"https://api.github.com/users/khipkin/events{/privacy}","received_events_url":"https://api.github.com/users/khipkin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HabitRPG/habitrpg/labels/status:%20READY%20FOR%20REVIEW","name":"status: READY FOR REVIEW","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-24T01:55:47Z","updated_at":"2016-04-30T17:38:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/6762","html_url":"https://github.com/HabitRPG/habitrpg/pull/6762","diff_url":"https://github.com/HabitRPG/habitrpg/pull/6762.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/6762.patch"},"body":"This addresses issue #6706.\r\n\r\nAdds an info alert to the top of the guild page if the guild has >5000 members that says:\r\n\"Note: This Guild is now too large to support notifications! Be sure to check back every day to see new messages.\"\r\n\r\n@Alys suggested that the `5000` value should be pulled into a variable to be referenced throughout this code change, but I don't know if it's possible to reference a single variable across js and jade files.\r\n\r\nAlso, the use of `ng-if` is probably overkill.  Should I use `bo-if` instead?\r\n\r\n---\r\n\r\nTo test this change, I created two guilds in my local database:\r\n![image](https://cloud.githubusercontent.com/assets/5641207/13273111/134ca25e-da6f-11e5-83c7-2698ab63dbae.png)\r\n\r\nOne of these guilds should have the note about notifications, and the other should not.\r\n\r\nThe large guild:\r\n![image](https://cloud.githubusercontent.com/assets/5641207/13273133/38a640fa-da6f-11e5-821d-51ff59f1e042.png)\r\n\r\nThe small guild:\r\n![image](https://cloud.githubusercontent.com/assets/5641207/13273144/4e5a82e4-da6f-11e5-9190-553b897bb539.png)\r\n\r\n---\r\n\r\nIs there a way I could automate these tests?\r\n\r\n---\r\n\r\nMy Habitica User ID is f9c89bba-abf8-4f20-a974-cf1550ff603f"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments/215982876","html_url":"https://github.com/HabitRPG/habitrpg/pull/6762#issuecomment-215982876","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/6762","id":215982876,"user":{"login":"paglias","id":589911,"avatar_url":"https://avatars.githubusercontent.com/u/589911?v=3","gravatar_id":"","url":"https://api.github.com/users/paglias","html_url":"https://github.com/paglias","followers_url":"https://api.github.com/users/paglias/followers","following_url":"https://api.github.com/users/paglias/following{/other_user}","gists_url":"https://api.github.com/users/paglias/gists{/gist_id}","starred_url":"https://api.github.com/users/paglias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paglias/subscriptions","organizations_url":"https://api.github.com/users/paglias/orgs","repos_url":"https://api.github.com/users/paglias/repos","events_url":"https://api.github.com/users/paglias/events{/privacy}","received_events_url":"https://api.github.com/users/paglias/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T17:38:55Z","updated_at":"2016-04-30T17:38:55Z","body":"can we put this on hold for a few weeks until v3 is out?"}}