{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/remo/pulls/comments/30621894","id":30621894,"diff_hunk":"@@ -523,6 +538,16 @@ function send_query(newquery) {\n         extra_q += '&campaign__name__iexact=' + initiative;\n     }\n \n+    if (attendance) {\n+        var attendance_range = ATTENDANCE_LEVEL[attendance];\n+        if (attendance_range[0]) {\n+            extra_q += '&estimated_attendance__gte=' + attendance_range[0];\n+        }\n+        if (attendance_range[1]) {","path":"remo/events/static/events/js/events_list.js","position":66,"original_position":66,"commit_id":"5c0850c6cd63f784d3a6276596cecd496cc385b2","original_commit_id":"5c0850c6cd63f784d3a6276596cecd496cc385b2","user":{"login":"johngian","id":835321,"avatar_url":"https://avatars.githubusercontent.com/u/835321?v=3","gravatar_id":"","url":"https://api.github.com/users/johngian","html_url":"https://github.com/johngian","followers_url":"https://api.github.com/users/johngian/followers","following_url":"https://api.github.com/users/johngian/following{/other_user}","gists_url":"https://api.github.com/users/johngian/gists{/gist_id}","starred_url":"https://api.github.com/users/johngian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngian/subscriptions","organizations_url":"https://api.github.com/users/johngian/orgs","repos_url":"https://api.github.com/users/johngian/repos","events_url":"https://api.github.com/users/johngian/events{/privacy}","received_events_url":"https://api.github.com/users/johngian/received_events","type":"User","site_admin":false},"body":"You need both checks in order to get the range. I suggest we keep this as it is.","created_at":"2015-05-19T17:07:09Z","updated_at":"2015-05-19T17:07:09Z","html_url":"https://github.com/mozilla/remo/pull/1035#discussion_r30621894","pull_request_url":"https://api.github.com/repos/mozilla/remo/pulls/1035","_links":{"self":{"href":"https://api.github.com/repos/mozilla/remo/pulls/comments/30621894"},"html":{"href":"https://github.com/mozilla/remo/pull/1035#discussion_r30621894"},"pull_request":{"href":"https://api.github.com/repos/mozilla/remo/pulls/1035"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/remo/pulls/1035","id":35737119,"html_url":"https://github.com/mozilla/remo/pull/1035","diff_url":"https://github.com/mozilla/remo/pull/1035.diff","patch_url":"https://github.com/mozilla/remo/pull/1035.patch","issue_url":"https://api.github.com/repos/mozilla/remo/issues/1035","number":1035,"state":"open","locked":false,"title":"[Fix bug 1129482] Add attendance filter in events advanced search.","user":{"login":"johngian","id":835321,"avatar_url":"https://avatars.githubusercontent.com/u/835321?v=3","gravatar_id":"","url":"https://api.github.com/users/johngian","html_url":"https://github.com/johngian","followers_url":"https://api.github.com/users/johngian/followers","following_url":"https://api.github.com/users/johngian/following{/other_user}","gists_url":"https://api.github.com/users/johngian/gists{/gist_id}","starred_url":"https://api.github.com/users/johngian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngian/subscriptions","organizations_url":"https://api.github.com/users/johngian/orgs","repos_url":"https://api.github.com/users/johngian/repos","events_url":"https://api.github.com/users/johngian/events{/privacy}","received_events_url":"https://api.github.com/users/johngian/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-19T14:38:50Z","updated_at":"2015-05-19T17:07:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"659e0f956a0ed746f6e80696db716cd8d25dc12e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/remo/pulls/1035/commits","review_comments_url":"https://api.github.com/repos/mozilla/remo/pulls/1035/comments","review_comment_url":"https://api.github.com/repos/mozilla/remo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/remo/issues/1035/comments","statuses_url":"https://api.github.com/repos/mozilla/remo/statuses/5c0850c6cd63f784d3a6276596cecd496cc385b2","head":{"label":"johngian:fix-1129482","ref":"fix-1129482","sha":"5c0850c6cd63f784d3a6276596cecd496cc385b2","user":{"login":"johngian","id":835321,"avatar_url":"https://avatars.githubusercontent.com/u/835321?v=3","gravatar_id":"","url":"https://api.github.com/users/johngian","html_url":"https://github.com/johngian","followers_url":"https://api.github.com/users/johngian/followers","following_url":"https://api.github.com/users/johngian/following{/other_user}","gists_url":"https://api.github.com/users/johngian/gists{/gist_id}","starred_url":"https://api.github.com/users/johngian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngian/subscriptions","organizations_url":"https://api.github.com/users/johngian/orgs","repos_url":"https://api.github.com/users/johngian/repos","events_url":"https://api.github.com/users/johngian/events{/privacy}","received_events_url":"https://api.github.com/users/johngian/received_events","type":"User","site_admin":false},"repo":{"id":7097431,"name":"remo","full_name":"johngian/remo","owner":{"login":"johngian","id":835321,"avatar_url":"https://avatars.githubusercontent.com/u/835321?v=3","gravatar_id":"","url":"https://api.github.com/users/johngian","html_url":"https://github.com/johngian","followers_url":"https://api.github.com/users/johngian/followers","following_url":"https://api.github.com/users/johngian/following{/other_user}","gists_url":"https://api.github.com/users/johngian/gists{/gist_id}","starred_url":"https://api.github.com/users/johngian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngian/subscriptions","organizations_url":"https://api.github.com/users/johngian/orgs","repos_url":"https://api.github.com/users/johngian/repos","events_url":"https://api.github.com/users/johngian/events{/privacy}","received_events_url":"https://api.github.com/users/johngian/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johngian/remo","description":"Mozilla Reps","fork":true,"url":"https://api.github.com/repos/johngian/remo","forks_url":"https://api.github.com/repos/johngian/remo/forks","keys_url":"https://api.github.com/repos/johngian/remo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johngian/remo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johngian/remo/teams","hooks_url":"https://api.github.com/repos/johngian/remo/hooks","issue_events_url":"https://api.github.com/repos/johngian/remo/issues/events{/number}","events_url":"https://api.github.com/repos/johngian/remo/events","assignees_url":"https://api.github.com/repos/johngian/remo/assignees{/user}","branches_url":"https://api.github.com/repos/johngian/remo/branches{/branch}","tags_url":"https://api.github.com/repos/johngian/remo/tags","blobs_url":"https://api.github.com/repos/johngian/remo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johngian/remo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johngian/remo/git/refs{/sha}","trees_url":"https://api.github.com/repos/johngian/remo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johngian/remo/statuses/{sha}","languages_url":"https://api.github.com/repos/johngian/remo/languages","stargazers_url":"https://api.github.com/repos/johngian/remo/stargazers","contributors_url":"https://api.github.com/repos/johngian/remo/contributors","subscribers_url":"https://api.github.com/repos/johngian/remo/subscribers","subscription_url":"https://api.github.com/repos/johngian/remo/subscription","commits_url":"https://api.github.com/repos/johngian/remo/commits{/sha}","git_commits_url":"https://api.github.com/repos/johngian/remo/git/commits{/sha}","comments_url":"https://api.github.com/repos/johngian/remo/comments{/number}","issue_comment_url":"https://api.github.com/repos/johngian/remo/issues/comments{/number}","contents_url":"https://api.github.com/repos/johngian/remo/contents/{+path}","compare_url":"https://api.github.com/repos/johngian/remo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johngian/remo/merges","archive_url":"https://api.github.com/repos/johngian/remo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johngian/remo/downloads","issues_url":"https://api.github.com/repos/johngian/remo/issues{/number}","pulls_url":"https://api.github.com/repos/johngian/remo/pulls{/number}","milestones_url":"https://api.github.com/repos/johngian/remo/milestones{/number}","notifications_url":"https://api.github.com/repos/johngian/remo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johngian/remo/labels{/name}","releases_url":"https://api.github.com/repos/johngian/remo/releases{/id}","created_at":"2012-12-10T17:27:40Z","updated_at":"2015-04-09T09:08:50Z","pushed_at":"2015-05-19T14:38:14Z","git_url":"git://github.com/johngian/remo.git","ssh_url":"git@github.com:johngian/remo.git","clone_url":"https://github.com/johngian/remo.git","svn_url":"https://github.com/johngian/remo","homepage":"http://reps.mozilla.org","size":19067,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"dbcd28bc8bb3ec32f5f72e8439e519fb6e7396ec","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":3167000,"name":"remo","full_name":"mozilla/remo","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/remo","description":"Mozilla Reps","fork":false,"url":"https://api.github.com/repos/mozilla/remo","forks_url":"https://api.github.com/repos/mozilla/remo/forks","keys_url":"https://api.github.com/repos/mozilla/remo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/remo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/remo/teams","hooks_url":"https://api.github.com/repos/mozilla/remo/hooks","issue_events_url":"https://api.github.com/repos/mozilla/remo/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/remo/events","assignees_url":"https://api.github.com/repos/mozilla/remo/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/remo/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/remo/tags","blobs_url":"https://api.github.com/repos/mozilla/remo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/remo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/remo/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/remo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/remo/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/remo/languages","stargazers_url":"https://api.github.com/repos/mozilla/remo/stargazers","contributors_url":"https://api.github.com/repos/mozilla/remo/contributors","subscribers_url":"https://api.github.com/repos/mozilla/remo/subscribers","subscription_url":"https://api.github.com/repos/mozilla/remo/subscription","commits_url":"https://api.github.com/repos/mozilla/remo/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/remo/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/remo/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/remo/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/remo/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/remo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/remo/merges","archive_url":"https://api.github.com/repos/mozilla/remo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/remo/downloads","issues_url":"https://api.github.com/repos/mozilla/remo/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/remo/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/remo/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/remo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/remo/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/remo/releases{/id}","created_at":"2012-01-12T23:41:29Z","updated_at":"2015-05-05T08:06:26Z","pushed_at":"2015-05-19T14:47:32Z","git_url":"git://github.com/mozilla/remo.git","ssh_url":"git@github.com:mozilla/remo.git","clone_url":"https://github.com/mozilla/remo.git","svn_url":"https://github.com/mozilla/remo","homepage":"http://reps.mozilla.org","size":22401,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":70,"mirror_url":null,"open_issues_count":8,"forks":70,"open_issues":8,"watchers":33,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/remo/pulls/1035"},"html":{"href":"https://github.com/mozilla/remo/pull/1035"},"issue":{"href":"https://api.github.com/repos/mozilla/remo/issues/1035"},"comments":{"href":"https://api.github.com/repos/mozilla/remo/issues/1035/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/remo/pulls/1035/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/remo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/remo/pulls/1035/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/remo/statuses/5c0850c6cd63f784d3a6276596cecd496cc385b2"}}}}