{"action":"created","comment":{"url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/comments/107554120","pull_request_review_id":28534516,"id":107554120,"diff_hunk":"@@ -116,6 +100,17 @@ private static bool GetIncludePrerelease(IOwinContext context)\n             return includePrerelease;\n         }\n \n+        private static bool GetIncludeSemver2(IOwinContext context)\n+        {\n+            System.Version semVerLevel;\n+            if (System.Version.TryParse(context.Request.Query[\"semVerLevel\"], out semVerLevel))\n+            {\n+                return semVerLevel.CompareTo(new System.Version(\"2.0.0\")) >= 0;","path":"src/NuGet.Services.BasicSearch/ServiceEndpoints.cs","position":79,"original_position":79,"commit_id":"3fac5a44b9d69826997bc2fcd304c291a374f0ef","original_commit_id":"3fac5a44b9d69826997bc2fcd304c291a374f0ef","user":{"login":"ryuyu","id":11051729,"avatar_url":"https://avatars1.githubusercontent.com/u/11051729?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuyu","html_url":"https://github.com/ryuyu","followers_url":"https://api.github.com/users/ryuyu/followers","following_url":"https://api.github.com/users/ryuyu/following{/other_user}","gists_url":"https://api.github.com/users/ryuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuyu/subscriptions","organizations_url":"https://api.github.com/users/ryuyu/orgs","repos_url":"https://api.github.com/users/ryuyu/repos","events_url":"https://api.github.com/users/ryuyu/events{/privacy}","received_events_url":"https://api.github.com/users/ryuyu/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-03-22T23:02:09Z","updated_at":"2017-03-22T23:02:09Z","html_url":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142#discussion_r107554120","pull_request_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/comments/107554120"},"html":{"href":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142#discussion_r107554120"},"pull_request":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142","id":111857069,"html_url":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142","diff_url":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142.diff","patch_url":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142.patch","issue_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/142","number":142,"state":"open","locked":false,"title":"Adding support for filtering Semver2 in BasicSearch","user":{"login":"ryuyu","id":11051729,"avatar_url":"https://avatars1.githubusercontent.com/u/11051729?v=3","gravatar_id":"","url":"https://api.github.com/users/ryuyu","html_url":"https://github.com/ryuyu","followers_url":"https://api.github.com/users/ryuyu/followers","following_url":"https://api.github.com/users/ryuyu/following{/other_user}","gists_url":"https://api.github.com/users/ryuyu/gists{/gist_id}","starred_url":"https://api.github.com/users/ryuyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryuyu/subscriptions","organizations_url":"https://api.github.com/users/ryuyu/orgs","repos_url":"https://api.github.com/users/ryuyu/repos","events_url":"https://api.github.com/users/ryuyu/events{/privacy}","received_events_url":"https://api.github.com/users/ryuyu/received_events","type":"User","site_admin":false},"body":"This PR does the following:\r\n1. Add support for a new bit filter based on a new field in the index, semverLevel\r\n2. Adds new query parameter for filtering based on said filter\r\n3. Removes ranking and find endpoints.\r\n\r\nTests are not included here and will be included in a followup.\r\n\r\n@joelverhagen @xavierdecoster @skofman1","created_at":"2017-03-21T19:10:52Z","updated_at":"2017-03-22T23:02:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8965c6eaf25b49296a95b785de655e6f47bbb2e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142/commits","review_comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142/comments","review_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/142/comments","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/statuses/3fac5a44b9d69826997bc2fcd304c291a374f0ef","head":{"label":"NuGet:ryuyu-addSemver2-BasicSearch","ref":"ryuyu-addSemver2-BasicSearch","sha":"3fac5a44b9d69826997bc2fcd304c291a374f0ef","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars1.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":16930969,"name":"NuGet.Services.Metadata","full_name":"NuGet/NuGet.Services.Metadata","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars1.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.Services.Metadata","description":"NuGet's Metadata Service","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata","forks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/releases{/id}","deployments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/deployments","created_at":"2014-02-18T00:00:53Z","updated_at":"2016-12-13T12:09:38Z","pushed_at":"2017-03-22T19:02:21Z","git_url":"git://github.com/NuGet/NuGet.Services.Metadata.git","ssh_url":"git@github.com:NuGet/NuGet.Services.Metadata.git","clone_url":"https://github.com/NuGet/NuGet.Services.Metadata.git","svn_url":"https://github.com/NuGet/NuGet.Services.Metadata","homepage":null,"size":10083,"stargazers_count":13,"watchers_count":13,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":13,"default_branch":"master"}},"base":{"label":"NuGet:dev","ref":"dev","sha":"110389edb476ba4e78495b3558182e9087023ad2","user":{"login":"NuGet","id":968310,"avatar_url":"https://avatars1.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"repo":{"id":16930969,"name":"NuGet.Services.Metadata","full_name":"NuGet/NuGet.Services.Metadata","owner":{"login":"NuGet","id":968310,"avatar_url":"https://avatars1.githubusercontent.com/u/968310?v=3","gravatar_id":"","url":"https://api.github.com/users/NuGet","html_url":"https://github.com/NuGet","followers_url":"https://api.github.com/users/NuGet/followers","following_url":"https://api.github.com/users/NuGet/following{/other_user}","gists_url":"https://api.github.com/users/NuGet/gists{/gist_id}","starred_url":"https://api.github.com/users/NuGet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NuGet/subscriptions","organizations_url":"https://api.github.com/users/NuGet/orgs","repos_url":"https://api.github.com/users/NuGet/repos","events_url":"https://api.github.com/users/NuGet/events{/privacy}","received_events_url":"https://api.github.com/users/NuGet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NuGet/NuGet.Services.Metadata","description":"NuGet's Metadata Service","fork":false,"url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata","forks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/forks","keys_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/teams","hooks_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/hooks","issue_events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/events{/number}","events_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/events","assignees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/assignees{/user}","branches_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/branches{/branch}","tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/tags","blobs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/refs{/sha}","trees_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/statuses/{sha}","languages_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/languages","stargazers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/stargazers","contributors_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/contributors","subscribers_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/subscribers","subscription_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/subscription","commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/commits{/sha}","git_commits_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/git/commits{/sha}","comments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/comments{/number}","issue_comment_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/comments{/number}","contents_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/contents/{+path}","compare_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/merges","archive_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/downloads","issues_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues{/number}","pulls_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls{/number}","milestones_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/milestones{/number}","notifications_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/labels{/name}","releases_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/releases{/id}","deployments_url":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/deployments","created_at":"2014-02-18T00:00:53Z","updated_at":"2016-12-13T12:09:38Z","pushed_at":"2017-03-22T19:02:21Z","git_url":"git://github.com/NuGet/NuGet.Services.Metadata.git","ssh_url":"git@github.com:NuGet/NuGet.Services.Metadata.git","clone_url":"https://github.com/NuGet/NuGet.Services.Metadata.git","svn_url":"https://github.com/NuGet/NuGet.Services.Metadata","homepage":null,"size":10083,"stargazers_count":13,"watchers_count":13,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142"},"html":{"href":"https://github.com/NuGet/NuGet.Services.Metadata/pull/142"},"issue":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/142"},"comments":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/NuGet/NuGet.Services.Metadata/statuses/3fac5a44b9d69826997bc2fcd304c291a374f0ef"}}}}
{"actor":{"display_login":"ryuyu"}}