{"action":"created","comment":{"url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/comments/241555297","pull_request_review_id":184860653,"id":241555297,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MTU1NTI5Nw==","diff_hunk":"@@ -5,10 +5,10 @@\n  */\n const ACTIVE_CLASS = 'visible';\n const sort = {\n-\tALPHABETICAL_ASCENDING: (a, b) => a.dataset.name > b.dataset.name ? 1 : -1,\n-\tALPHABETICAL_DESCENDING: (a, b) => a.dataset.name < b.dataset.name ? 1 : -1,\n-\tDIFFICULTY_ASCENDING: (a, b) => a.dataset.difficulty > b.dataset.difficulty ? 1 : -1,\n-\tDIFFICULTY_DESCENDING: (a, b) => a.dataset.difficulty < b.dataset.difficulty ? 1 : -1\n+\tALPHABETICAL_ASC: (a, b) => a.dataset.name > b.dataset.name ? 1 : -1,","path":"src/js/index.js","position":8,"original_position":8,"commit_id":"1cd4f5ebc91c2b7534b59ef3a979f897e4c8f1f5","original_commit_id":"1cd4f5ebc91c2b7534b59ef3a979f897e4c8f1f5","user":{"login":"vikaspotluri123","id":4383564,"node_id":"MDQ6VXNlcjQzODM1NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4383564?v=4","gravatar_id":"","url":"https://api.github.com/users/vikaspotluri123","html_url":"https://github.com/vikaspotluri123","followers_url":"https://api.github.com/users/vikaspotluri123/followers","following_url":"https://api.github.com/users/vikaspotluri123/following{/other_user}","gists_url":"https://api.github.com/users/vikaspotluri123/gists{/gist_id}","starred_url":"https://api.github.com/users/vikaspotluri123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vikaspotluri123/subscriptions","organizations_url":"https://api.github.com/users/vikaspotluri123/orgs","repos_url":"https://api.github.com/users/vikaspotluri123/repos","events_url":"https://api.github.com/users/vikaspotluri123/events{/privacy}","received_events_url":"https://api.github.com/users/vikaspotluri123/received_events","type":"User","site_admin":false},"body":"Does this need to be uppercase?","created_at":"2018-12-13T20:45:53Z","updated_at":"2018-12-13T20:51:18Z","html_url":"https://github.com/swapagarwal/swag-for-dev/pull/197#discussion_r241555297","pull_request_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/comments/241555297"},"html":{"href":"https://github.com/swapagarwal/swag-for-dev/pull/197#discussion_r241555297"},"pull_request":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197"}}},"pull_request":{"url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197","id":235937069,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1OTM3MDY5","html_url":"https://github.com/swapagarwal/swag-for-dev/pull/197","diff_url":"https://github.com/swapagarwal/swag-for-dev/pull/197.diff","patch_url":"https://github.com/swapagarwal/swag-for-dev/pull/197.patch","issue_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/197","number":197,"state":"open","locked":false,"title":"Add support for filtering difficulty and sorting via URL Query Params","user":{"login":"plibither8","id":31861755,"node_id":"MDQ6VXNlcjMxODYxNzU1","avatar_url":"https://avatars1.githubusercontent.com/u/31861755?v=4","gravatar_id":"","url":"https://api.github.com/users/plibither8","html_url":"https://github.com/plibither8","followers_url":"https://api.github.com/users/plibither8/followers","following_url":"https://api.github.com/users/plibither8/following{/other_user}","gists_url":"https://api.github.com/users/plibither8/gists{/gist_id}","starred_url":"https://api.github.com/users/plibither8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plibither8/subscriptions","organizations_url":"https://api.github.com/users/plibither8/orgs","repos_url":"https://api.github.com/users/plibither8/repos","events_url":"https://api.github.com/users/plibither8/events{/privacy}","received_events_url":"https://api.github.com/users/plibither8/received_events","type":"User","site_admin":false},"body":"This PR implements and closes #183: something which I too was wanting to suggest for quite some time.\r\n\r\nI have coded this in quite a hurry so it might seem sloppy. There is more work to be put into this PR, IMHO.\r\n\r\n**Summary**:\r\n\r\n* Created a main `parameters` Object that holds `action`, `getValue` and `setValue` methods for the parameters specified in the Object. Currently, they are: `tags`, `difficulty` and `sort`.\r\n\r\n* New function `updateUrl` which is called in the `handleTags` function. It updates the URL whenever there is a change in the input of either of the three parameters.\r\n\r\n*NB: I might not be available that often to reply or maintain this PR and other related issues due to exams. Please feel free to directly commit to this PR when need be :smile:*","created_at":"2018-12-04T19:48:11Z","updated_at":"2018-12-13T20:51:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40d2e81589ccbe98a7f0c879199624ed9725b467","assignee":null,"assignees":[],"requested_reviewers":[{"login":"swapagarwal","id":2833845,"node_id":"MDQ6VXNlcjI4MzM4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2833845?v=4","gravatar_id":"","url":"https://api.github.com/users/swapagarwal","html_url":"https://github.com/swapagarwal","followers_url":"https://api.github.com/users/swapagarwal/followers","following_url":"https://api.github.com/users/swapagarwal/following{/other_user}","gists_url":"https://api.github.com/users/swapagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/swapagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapagarwal/subscriptions","organizations_url":"https://api.github.com/users/swapagarwal/orgs","repos_url":"https://api.github.com/users/swapagarwal/repos","events_url":"https://api.github.com/users/swapagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/swapagarwal/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":840500352,"node_id":"MDU6TGFiZWw4NDA1MDAzNTI=","url":"https://api.github.com/repos/swapagarwal/swag-for-dev/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197/commits","review_comments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197/comments","review_comment_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/197/comments","statuses_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/statuses/1cd4f5ebc91c2b7534b59ef3a979f897e4c8f1f5","head":{"label":"swapagarwal:plibither8/feat/difficulty-sort-url-params","ref":"plibither8/feat/difficulty-sort-url-params","sha":"1cd4f5ebc91c2b7534b59ef3a979f897e4c8f1f5","user":{"login":"swapagarwal","id":2833845,"node_id":"MDQ6VXNlcjI4MzM4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2833845?v=4","gravatar_id":"","url":"https://api.github.com/users/swapagarwal","html_url":"https://github.com/swapagarwal","followers_url":"https://api.github.com/users/swapagarwal/followers","following_url":"https://api.github.com/users/swapagarwal/following{/other_user}","gists_url":"https://api.github.com/users/swapagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/swapagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapagarwal/subscriptions","organizations_url":"https://api.github.com/users/swapagarwal/orgs","repos_url":"https://api.github.com/users/swapagarwal/repos","events_url":"https://api.github.com/users/swapagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/swapagarwal/received_events","type":"User","site_admin":false},"repo":{"id":121921584,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE5MjE1ODQ=","name":"swag-for-dev","full_name":"swapagarwal/swag-for-dev","private":false,"owner":{"login":"swapagarwal","id":2833845,"node_id":"MDQ6VXNlcjI4MzM4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2833845?v=4","gravatar_id":"","url":"https://api.github.com/users/swapagarwal","html_url":"https://github.com/swapagarwal","followers_url":"https://api.github.com/users/swapagarwal/followers","following_url":"https://api.github.com/users/swapagarwal/following{/other_user}","gists_url":"https://api.github.com/users/swapagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/swapagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapagarwal/subscriptions","organizations_url":"https://api.github.com/users/swapagarwal/orgs","repos_url":"https://api.github.com/users/swapagarwal/repos","events_url":"https://api.github.com/users/swapagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/swapagarwal/received_events","type":"User","site_admin":false},"html_url":"https://github.com/swapagarwal/swag-for-dev","description":"😎 swag opportunities for developers","fork":false,"url":"https://api.github.com/repos/swapagarwal/swag-for-dev","forks_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/forks","keys_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/teams","hooks_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/hooks","issue_events_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/events{/number}","events_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/events","assignees_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/assignees{/user}","branches_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/branches{/branch}","tags_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/tags","blobs_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/languages","stargazers_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/stargazers","contributors_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/contributors","subscribers_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/subscribers","subscription_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/subscription","commits_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/contents/{+path}","compare_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/merges","archive_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/downloads","issues_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues{/number}","pulls_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/labels{/name}","releases_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/releases{/id}","deployments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/deployments","created_at":"2018-02-18T05:29:31Z","updated_at":"2018-12-13T20:40:37Z","pushed_at":"2018-12-13T20:36:01Z","git_url":"git://github.com/swapagarwal/swag-for-dev.git","ssh_url":"git@github.com:swapagarwal/swag-for-dev.git","clone_url":"https://github.com/swapagarwal/swag-for-dev.git","svn_url":"https://github.com/swapagarwal/swag-for-dev","homepage":"http://devswag.io","size":485,"stargazers_count":3236,"watchers_count":3236,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":134,"mirror_url":null,"archived":false,"open_issues_count":57,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":134,"open_issues":57,"watchers":3236,"default_branch":"master"}},"base":{"label":"swapagarwal:master","ref":"master","sha":"93d189365c0911b7cd6fc14ee2b99b4b486aa7e4","user":{"login":"swapagarwal","id":2833845,"node_id":"MDQ6VXNlcjI4MzM4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2833845?v=4","gravatar_id":"","url":"https://api.github.com/users/swapagarwal","html_url":"https://github.com/swapagarwal","followers_url":"https://api.github.com/users/swapagarwal/followers","following_url":"https://api.github.com/users/swapagarwal/following{/other_user}","gists_url":"https://api.github.com/users/swapagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/swapagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapagarwal/subscriptions","organizations_url":"https://api.github.com/users/swapagarwal/orgs","repos_url":"https://api.github.com/users/swapagarwal/repos","events_url":"https://api.github.com/users/swapagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/swapagarwal/received_events","type":"User","site_admin":false},"repo":{"id":121921584,"node_id":"MDEwOlJlcG9zaXRvcnkxMjE5MjE1ODQ=","name":"swag-for-dev","full_name":"swapagarwal/swag-for-dev","private":false,"owner":{"login":"swapagarwal","id":2833845,"node_id":"MDQ6VXNlcjI4MzM4NDU=","avatar_url":"https://avatars1.githubusercontent.com/u/2833845?v=4","gravatar_id":"","url":"https://api.github.com/users/swapagarwal","html_url":"https://github.com/swapagarwal","followers_url":"https://api.github.com/users/swapagarwal/followers","following_url":"https://api.github.com/users/swapagarwal/following{/other_user}","gists_url":"https://api.github.com/users/swapagarwal/gists{/gist_id}","starred_url":"https://api.github.com/users/swapagarwal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swapagarwal/subscriptions","organizations_url":"https://api.github.com/users/swapagarwal/orgs","repos_url":"https://api.github.com/users/swapagarwal/repos","events_url":"https://api.github.com/users/swapagarwal/events{/privacy}","received_events_url":"https://api.github.com/users/swapagarwal/received_events","type":"User","site_admin":false},"html_url":"https://github.com/swapagarwal/swag-for-dev","description":"😎 swag opportunities for developers","fork":false,"url":"https://api.github.com/repos/swapagarwal/swag-for-dev","forks_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/forks","keys_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/teams","hooks_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/hooks","issue_events_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/events{/number}","events_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/events","assignees_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/assignees{/user}","branches_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/branches{/branch}","tags_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/tags","blobs_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/refs{/sha}","trees_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/statuses/{sha}","languages_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/languages","stargazers_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/stargazers","contributors_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/contributors","subscribers_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/subscribers","subscription_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/subscription","commits_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/commits{/sha}","git_commits_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/git/commits{/sha}","comments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/comments{/number}","issue_comment_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/comments{/number}","contents_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/contents/{+path}","compare_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/merges","archive_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/downloads","issues_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues{/number}","pulls_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls{/number}","milestones_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/milestones{/number}","notifications_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/labels{/name}","releases_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/releases{/id}","deployments_url":"https://api.github.com/repos/swapagarwal/swag-for-dev/deployments","created_at":"2018-02-18T05:29:31Z","updated_at":"2018-12-13T20:40:37Z","pushed_at":"2018-12-13T20:36:01Z","git_url":"git://github.com/swapagarwal/swag-for-dev.git","ssh_url":"git@github.com:swapagarwal/swag-for-dev.git","clone_url":"https://github.com/swapagarwal/swag-for-dev.git","svn_url":"https://github.com/swapagarwal/swag-for-dev","homepage":"http://devswag.io","size":485,"stargazers_count":3236,"watchers_count":3236,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":134,"mirror_url":null,"archived":false,"open_issues_count":57,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":134,"open_issues":57,"watchers":3236,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197"},"html":{"href":"https://github.com/swapagarwal/swag-for-dev/pull/197"},"issue":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/197"},"comments":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/issues/197/comments"},"review_comments":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197/comments"},"review_comment":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/pulls/197/commits"},"statuses":{"href":"https://api.github.com/repos/swapagarwal/swag-for-dev/statuses/1cd4f5ebc91c2b7534b59ef3a979f897e4c8f1f5"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"vikaspotluri123"}}