{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/fbctf/pulls/comments/83979417","pull_request_review_id":4787195,"id":83979417,"diff_hunk":"@@ -0,0 +1,115 @@\n+var $ = require('jquery');\n+\n+function isFilterSet(filterName) {\n+  return document.cookie.search(filterName) >= 0;\n+}\n+\n+module.exports = {\n+  getFilterName: function(filterSelector, filters) {\n+    for (var key in filters) {","path":"src/static/js/filter.js","position":9,"original_position":9,"commit_id":"ddc7d8ba5312a5838e7169dddf146979da4033df","original_commit_id":"ddc7d8ba5312a5838e7169dddf146979da4033df","user":{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false},"body":"I could use ```Object.keys``` and then iterate through those...","created_at":"2016-10-19T00:35:51Z","updated_at":"2016-10-19T00:35:51Z","html_url":"https://github.com/facebook/fbctf/pull/278#discussion_r83979417","pull_request_url":"https://api.github.com/repos/facebook/fbctf/pulls/278","_links":{"self":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/comments/83979417"},"html":{"href":"https://github.com/facebook/fbctf/pull/278#discussion_r83979417"},"pull_request":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/278"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/fbctf/pulls/278","id":89600980,"html_url":"https://github.com/facebook/fbctf/pull/278","diff_url":"https://github.com/facebook/fbctf/pull/278.diff","patch_url":"https://github.com/facebook/fbctf/pull/278.patch","issue_url":"https://api.github.com/repos/facebook/fbctf/issues/278","number":278,"state":"open","locked":false,"title":"Persistent filters on refresh, added new cookies","user":{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false},"body":"Implementation for #241, this pull request adds a new javascript module, ```filter.js```, that persist the values of the filters module in a set of cookies.","created_at":"2016-10-17T10:53:57Z","updated_at":"2016-10-19T00:35:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bbf6e1dbed2052ae67e88f30344b8c3fda4fc74","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/facebook/fbctf/pulls/278/commits","review_comments_url":"https://api.github.com/repos/facebook/fbctf/pulls/278/comments","review_comment_url":"https://api.github.com/repos/facebook/fbctf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/fbctf/issues/278/comments","statuses_url":"https://api.github.com/repos/facebook/fbctf/statuses/ddc7d8ba5312a5838e7169dddf146979da4033df","head":{"label":"javuto:filter_fix","ref":"filter_fix","sha":"ddc7d8ba5312a5838e7169dddf146979da4033df","user":{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false},"repo":{"id":58561472,"name":"fbctf","full_name":"javuto/fbctf","owner":{"login":"javuto","id":1271349,"avatar_url":"https://avatars.githubusercontent.com/u/1271349?v=3","gravatar_id":"","url":"https://api.github.com/users/javuto","html_url":"https://github.com/javuto","followers_url":"https://api.github.com/users/javuto/followers","following_url":"https://api.github.com/users/javuto/following{/other_user}","gists_url":"https://api.github.com/users/javuto/gists{/gist_id}","starred_url":"https://api.github.com/users/javuto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javuto/subscriptions","organizations_url":"https://api.github.com/users/javuto/orgs","repos_url":"https://api.github.com/users/javuto/repos","events_url":"https://api.github.com/users/javuto/events{/privacy}","received_events_url":"https://api.github.com/users/javuto/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javuto/fbctf","description":"Platform to host Capture the Flag competitions","fork":true,"url":"https://api.github.com/repos/javuto/fbctf","forks_url":"https://api.github.com/repos/javuto/fbctf/forks","keys_url":"https://api.github.com/repos/javuto/fbctf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javuto/fbctf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javuto/fbctf/teams","hooks_url":"https://api.github.com/repos/javuto/fbctf/hooks","issue_events_url":"https://api.github.com/repos/javuto/fbctf/issues/events{/number}","events_url":"https://api.github.com/repos/javuto/fbctf/events","assignees_url":"https://api.github.com/repos/javuto/fbctf/assignees{/user}","branches_url":"https://api.github.com/repos/javuto/fbctf/branches{/branch}","tags_url":"https://api.github.com/repos/javuto/fbctf/tags","blobs_url":"https://api.github.com/repos/javuto/fbctf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javuto/fbctf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javuto/fbctf/git/refs{/sha}","trees_url":"https://api.github.com/repos/javuto/fbctf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javuto/fbctf/statuses/{sha}","languages_url":"https://api.github.com/repos/javuto/fbctf/languages","stargazers_url":"https://api.github.com/repos/javuto/fbctf/stargazers","contributors_url":"https://api.github.com/repos/javuto/fbctf/contributors","subscribers_url":"https://api.github.com/repos/javuto/fbctf/subscribers","subscription_url":"https://api.github.com/repos/javuto/fbctf/subscription","commits_url":"https://api.github.com/repos/javuto/fbctf/commits{/sha}","git_commits_url":"https://api.github.com/repos/javuto/fbctf/git/commits{/sha}","comments_url":"https://api.github.com/repos/javuto/fbctf/comments{/number}","issue_comment_url":"https://api.github.com/repos/javuto/fbctf/issues/comments{/number}","contents_url":"https://api.github.com/repos/javuto/fbctf/contents/{+path}","compare_url":"https://api.github.com/repos/javuto/fbctf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javuto/fbctf/merges","archive_url":"https://api.github.com/repos/javuto/fbctf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javuto/fbctf/downloads","issues_url":"https://api.github.com/repos/javuto/fbctf/issues{/number}","pulls_url":"https://api.github.com/repos/javuto/fbctf/pulls{/number}","milestones_url":"https://api.github.com/repos/javuto/fbctf/milestones{/number}","notifications_url":"https://api.github.com/repos/javuto/fbctf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javuto/fbctf/labels{/name}","releases_url":"https://api.github.com/repos/javuto/fbctf/releases{/id}","deployments_url":"https://api.github.com/repos/javuto/fbctf/deployments","created_at":"2016-05-11T16:21:40Z","updated_at":"2016-05-14T13:40:54Z","pushed_at":"2016-10-17T10:52:01Z","git_url":"git://github.com/javuto/fbctf.git","ssh_url":"git@github.com:javuto/fbctf.git","clone_url":"https://github.com/javuto/fbctf.git","svn_url":"https://github.com/javuto/fbctf","homepage":null,"size":17425,"stargazers_count":2,"watchers_count":2,"language":"Hack","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":2,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"e13f0b4da6850c3ccf169add8c317f0c1534557b","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":53877810,"name":"fbctf","full_name":"facebook/fbctf","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/fbctf","description":"Platform to host Capture the Flag competitions","fork":false,"url":"https://api.github.com/repos/facebook/fbctf","forks_url":"https://api.github.com/repos/facebook/fbctf/forks","keys_url":"https://api.github.com/repos/facebook/fbctf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/fbctf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/fbctf/teams","hooks_url":"https://api.github.com/repos/facebook/fbctf/hooks","issue_events_url":"https://api.github.com/repos/facebook/fbctf/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/fbctf/events","assignees_url":"https://api.github.com/repos/facebook/fbctf/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/fbctf/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/fbctf/tags","blobs_url":"https://api.github.com/repos/facebook/fbctf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/fbctf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/fbctf/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/fbctf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/fbctf/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/fbctf/languages","stargazers_url":"https://api.github.com/repos/facebook/fbctf/stargazers","contributors_url":"https://api.github.com/repos/facebook/fbctf/contributors","subscribers_url":"https://api.github.com/repos/facebook/fbctf/subscribers","subscription_url":"https://api.github.com/repos/facebook/fbctf/subscription","commits_url":"https://api.github.com/repos/facebook/fbctf/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/fbctf/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/fbctf/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/fbctf/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/fbctf/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/fbctf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/fbctf/merges","archive_url":"https://api.github.com/repos/facebook/fbctf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/fbctf/downloads","issues_url":"https://api.github.com/repos/facebook/fbctf/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/fbctf/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/fbctf/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/fbctf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/fbctf/labels{/name}","releases_url":"https://api.github.com/repos/facebook/fbctf/releases{/id}","deployments_url":"https://api.github.com/repos/facebook/fbctf/deployments","created_at":"2016-03-14T17:42:04Z","updated_at":"2016-10-18T20:08:50Z","pushed_at":"2016-10-17T13:33:56Z","git_url":"git://github.com/facebook/fbctf.git","ssh_url":"git@github.com:facebook/fbctf.git","clone_url":"https://github.com/facebook/fbctf.git","svn_url":"https://github.com/facebook/fbctf","homepage":null,"size":17745,"stargazers_count":4564,"watchers_count":4564,"language":"Hack","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":838,"mirror_url":null,"open_issues_count":92,"forks":838,"open_issues":92,"watchers":4564,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/278"},"html":{"href":"https://github.com/facebook/fbctf/pull/278"},"issue":{"href":"https://api.github.com/repos/facebook/fbctf/issues/278"},"comments":{"href":"https://api.github.com/repos/facebook/fbctf/issues/278/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/278/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/fbctf/pulls/278/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/fbctf/statuses/ddc7d8ba5312a5838e7169dddf146979da4033df"}}}}
{"actor":{"display_login":"javuto"}}