{"action":"created","comment":{"url":"https://api.github.com/repos/apinf/platform/pulls/comments/103648024","pull_request_review_id":24439751,"id":103648024,"diff_hunk":"@@ -0,0 +1,39 @@\n+import { Template } from 'meteor/templating';\n+import { ReactiveVar } from 'meteor/reactive-var';\n+import { FlowRouter } from 'meteor/kadira:flow-router';\n+import { TAPi18n } from 'meteor/tap:i18n';\n+\n+Template.apiFilteredBy.onCreated(function () {\n+  const instance = this;\n+\n+  instance.selectedOption = new ReactiveVar();\n+\n+  instance.autorun(() => {\n+    const selectedFilterOption = FlowRouter.getQueryParam('lifecycle');\n+\n+    if (selectedFilterOption) {\n+      // Get translation for selected option\n+      const option = TAPi18n.__(`schemas.apis.lifecycleStatus.options.${selectedFilterOption}`);\n+      // Save option\n+      instance.selectedOption.set(option);\n+    } else {\n+      // Set option as undefined to hide text\n+      instance.selectedOption.set(undefined);\n+    }\n+  });\n+});\n+\n+Template.apiFilteredBy.helpers({\n+  selectedOption () {\n+    const instance = Template.instance();\n+\n+    return instance.selectedOption.get();\n+  },\n+});\n+\n+Template.apiFilteredBy.events({\n+  'click .clear-all': () => {","path":"api_filter/client/filtered_by/filtered_by.js","position":35,"original_position":35,"commit_id":"0b6d3bc0da63d7fffc422f4b239a5c6ae3430e83","original_commit_id":"0b6d3bc0da63d7fffc422f4b239a5c6ae3430e83","user":{"login":"brylie","id":17307,"avatar_url":"https://avatars2.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"body":"> a unique id must be on the entire site\r\n\r\nWhat do you mean?","created_at":"2017-03-01T10:03:34Z","updated_at":"2017-03-01T10:03:34Z","html_url":"https://github.com/apinf/platform/pull/2202#discussion_r103648024","pull_request_url":"https://api.github.com/repos/apinf/platform/pulls/2202","_links":{"self":{"href":"https://api.github.com/repos/apinf/platform/pulls/comments/103648024"},"html":{"href":"https://github.com/apinf/platform/pull/2202#discussion_r103648024"},"pull_request":{"href":"https://api.github.com/repos/apinf/platform/pulls/2202"}}},"pull_request":{"url":"https://api.github.com/repos/apinf/platform/pulls/2202","id":108316355,"html_url":"https://github.com/apinf/platform/pull/2202","diff_url":"https://github.com/apinf/platform/pull/2202.diff","patch_url":"https://github.com/apinf/platform/pull/2202.patch","issue_url":"https://api.github.com/repos/apinf/platform/issues/2202","number":2202,"state":"open","locked":false,"title":"Feature/filter api via labels","user":{"login":"marla-singer","id":20643403,"avatar_url":"https://avatars3.githubusercontent.com/u/20643403?v=3","gravatar_id":"","url":"https://api.github.com/users/marla-singer","html_url":"https://github.com/marla-singer","followers_url":"https://api.github.com/users/marla-singer/followers","following_url":"https://api.github.com/users/marla-singer/following{/other_user}","gists_url":"https://api.github.com/users/marla-singer/gists{/gist_id}","starred_url":"https://api.github.com/users/marla-singer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marla-singer/subscriptions","organizations_url":"https://api.github.com/users/marla-singer/orgs","repos_url":"https://api.github.com/users/marla-singer/repos","events_url":"https://api.github.com/users/marla-singer/events{/privacy}","received_events_url":"https://api.github.com/users/marla-singer/received_events","type":"User","site_admin":false},"body":"Closes #2133 \r\n- Delete `Unknown` label if lifecycle isn't set\r\n- Return the feature with text \"filtered by\" again","created_at":"2017-02-28T12:04:09Z","updated_at":"2017-03-01T10:03:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78d870006285d3a91870bf08e41c1ed502a8b6d8","assignee":{"login":"brylie","id":17307,"avatar_url":"https://avatars2.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false},"assignees":[{"login":"brylie","id":17307,"avatar_url":"https://avatars2.githubusercontent.com/u/17307?v=3","gravatar_id":"","url":"https://api.github.com/users/brylie","html_url":"https://github.com/brylie","followers_url":"https://api.github.com/users/brylie/followers","following_url":"https://api.github.com/users/brylie/following{/other_user}","gists_url":"https://api.github.com/users/brylie/gists{/gist_id}","starred_url":"https://api.github.com/users/brylie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brylie/subscriptions","organizations_url":"https://api.github.com/users/brylie/orgs","repos_url":"https://api.github.com/users/brylie/repos","events_url":"https://api.github.com/users/brylie/events{/privacy}","received_events_url":"https://api.github.com/users/brylie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/apinf/platform/milestones/37","html_url":"https://github.com/apinf/platform/milestone/37","labels_url":"https://api.github.com/repos/apinf/platform/milestones/37/labels","id":2333674,"number":37,"title":"Sprint 37","description":"APInf Sprint 37: Feb 20, 2017 - Mar 3, 2017","creator":{"login":"Nazarah","id":17976243,"avatar_url":"https://avatars0.githubusercontent.com/u/17976243?v=3","gravatar_id":"","url":"https://api.github.com/users/Nazarah","html_url":"https://github.com/Nazarah","followers_url":"https://api.github.com/users/Nazarah/followers","following_url":"https://api.github.com/users/Nazarah/following{/other_user}","gists_url":"https://api.github.com/users/Nazarah/gists{/gist_id}","starred_url":"https://api.github.com/users/Nazarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nazarah/subscriptions","organizations_url":"https://api.github.com/users/Nazarah/orgs","repos_url":"https://api.github.com/users/Nazarah/repos","events_url":"https://api.github.com/users/Nazarah/events{/privacy}","received_events_url":"https://api.github.com/users/Nazarah/received_events","type":"User","site_admin":false},"open_issues":22,"closed_issues":19,"state":"open","created_at":"2017-02-20T07:14:01Z","updated_at":"2017-02-28T13:22:46Z","due_on":"2017-03-03T08:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/apinf/platform/pulls/2202/commits","review_comments_url":"https://api.github.com/repos/apinf/platform/pulls/2202/comments","review_comment_url":"https://api.github.com/repos/apinf/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apinf/platform/issues/2202/comments","statuses_url":"https://api.github.com/repos/apinf/platform/statuses/0b6d3bc0da63d7fffc422f4b239a5c6ae3430e83","head":{"label":"apinf:feature/filter-api-via-labels","ref":"feature/filter-api-via-labels","sha":"0b6d3bc0da63d7fffc422f4b239a5c6ae3430e83","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars3.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"platform","full_name":"apinf/platform","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars3.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/platform","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/platform","forks_url":"https://api.github.com/repos/apinf/platform/forks","keys_url":"https://api.github.com/repos/apinf/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/platform/teams","hooks_url":"https://api.github.com/repos/apinf/platform/hooks","issue_events_url":"https://api.github.com/repos/apinf/platform/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/platform/events","assignees_url":"https://api.github.com/repos/apinf/platform/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/platform/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/platform/tags","blobs_url":"https://api.github.com/repos/apinf/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/platform/languages","stargazers_url":"https://api.github.com/repos/apinf/platform/stargazers","contributors_url":"https://api.github.com/repos/apinf/platform/contributors","subscribers_url":"https://api.github.com/repos/apinf/platform/subscribers","subscription_url":"https://api.github.com/repos/apinf/platform/subscription","commits_url":"https://api.github.com/repos/apinf/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/platform/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/platform/merges","archive_url":"https://api.github.com/repos/apinf/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/platform/downloads","issues_url":"https://api.github.com/repos/apinf/platform/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/platform/labels{/name}","releases_url":"https://api.github.com/repos/apinf/platform/releases{/id}","deployments_url":"https://api.github.com/repos/apinf/platform/deployments","created_at":"2015-03-04T08:33:18Z","updated_at":"2017-02-21T19:08:28Z","pushed_at":"2017-03-01T10:00:48Z","git_url":"git://github.com/apinf/platform.git","ssh_url":"git@github.com:apinf/platform.git","clone_url":"https://github.com/apinf/platform.git","svn_url":"https://github.com/apinf/platform","homepage":"http://apinf.org/docs/","size":21656,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":484,"forks":17,"open_issues":484,"watchers":28,"default_branch":"develop"}},"base":{"label":"apinf:develop","ref":"develop","sha":"85870ff2071cc2bbfbf6d2228e4059607197c4d8","user":{"login":"apinf","id":9882661,"avatar_url":"https://avatars3.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"repo":{"id":31646449,"name":"platform","full_name":"apinf/platform","owner":{"login":"apinf","id":9882661,"avatar_url":"https://avatars3.githubusercontent.com/u/9882661?v=3","gravatar_id":"","url":"https://api.github.com/users/apinf","html_url":"https://github.com/apinf","followers_url":"https://api.github.com/users/apinf/followers","following_url":"https://api.github.com/users/apinf/following{/other_user}","gists_url":"https://api.github.com/users/apinf/gists{/gist_id}","starred_url":"https://api.github.com/users/apinf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apinf/subscriptions","organizations_url":"https://api.github.com/users/apinf/orgs","repos_url":"https://api.github.com/users/apinf/repos","events_url":"https://api.github.com/users/apinf/events{/privacy}","received_events_url":"https://api.github.com/users/apinf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apinf/platform","description":"Dashboard component for the open-source API management platform API Umbrella.","fork":false,"url":"https://api.github.com/repos/apinf/platform","forks_url":"https://api.github.com/repos/apinf/platform/forks","keys_url":"https://api.github.com/repos/apinf/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apinf/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apinf/platform/teams","hooks_url":"https://api.github.com/repos/apinf/platform/hooks","issue_events_url":"https://api.github.com/repos/apinf/platform/issues/events{/number}","events_url":"https://api.github.com/repos/apinf/platform/events","assignees_url":"https://api.github.com/repos/apinf/platform/assignees{/user}","branches_url":"https://api.github.com/repos/apinf/platform/branches{/branch}","tags_url":"https://api.github.com/repos/apinf/platform/tags","blobs_url":"https://api.github.com/repos/apinf/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apinf/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apinf/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/apinf/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apinf/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/apinf/platform/languages","stargazers_url":"https://api.github.com/repos/apinf/platform/stargazers","contributors_url":"https://api.github.com/repos/apinf/platform/contributors","subscribers_url":"https://api.github.com/repos/apinf/platform/subscribers","subscription_url":"https://api.github.com/repos/apinf/platform/subscription","commits_url":"https://api.github.com/repos/apinf/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/apinf/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/apinf/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/apinf/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/apinf/platform/contents/{+path}","compare_url":"https://api.github.com/repos/apinf/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apinf/platform/merges","archive_url":"https://api.github.com/repos/apinf/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apinf/platform/downloads","issues_url":"https://api.github.com/repos/apinf/platform/issues{/number}","pulls_url":"https://api.github.com/repos/apinf/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/apinf/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/apinf/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apinf/platform/labels{/name}","releases_url":"https://api.github.com/repos/apinf/platform/releases{/id}","deployments_url":"https://api.github.com/repos/apinf/platform/deployments","created_at":"2015-03-04T08:33:18Z","updated_at":"2017-02-21T19:08:28Z","pushed_at":"2017-03-01T10:00:48Z","git_url":"git://github.com/apinf/platform.git","ssh_url":"git@github.com:apinf/platform.git","clone_url":"https://github.com/apinf/platform.git","svn_url":"https://github.com/apinf/platform","homepage":"http://apinf.org/docs/","size":21656,"stargazers_count":28,"watchers_count":28,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":484,"forks":17,"open_issues":484,"watchers":28,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/apinf/platform/pulls/2202"},"html":{"href":"https://github.com/apinf/platform/pull/2202"},"issue":{"href":"https://api.github.com/repos/apinf/platform/issues/2202"},"comments":{"href":"https://api.github.com/repos/apinf/platform/issues/2202/comments"},"review_comments":{"href":"https://api.github.com/repos/apinf/platform/pulls/2202/comments"},"review_comment":{"href":"https://api.github.com/repos/apinf/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apinf/platform/pulls/2202/commits"},"statuses":{"href":"https://api.github.com/repos/apinf/platform/statuses/0b6d3bc0da63d7fffc422f4b239a5c6ae3430e83"}}}}
{"actor":{"display_login":"brylie"}}