From 6c4332d6635d9a32b5b6bc347cb921db7e907a5e Mon Sep 17 00:00:00 2001 From: "Chidozie Ononiwu (His Righteousness)" <31145988+chidozieononiwu@users.noreply.github.com> Date: Fri, 10 Mar 2023 14:37:54 -0800 Subject: [PATCH] Extend APIView Search to support pullrequest in general search (#5586) --- .../APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs index 977b3cceb32..034bb3a47d2 100644 --- a/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs +++ b/src/dotnet/APIView/APIViewWeb/Repositories/CosmosReviewRepository.cs @@ -217,6 +217,7 @@ public async Task> GetReviewFirstLevelPropertiesAsync(string queryStringBuilder.Append($" OR CONTAINS(r.Name, {query}, true)"); queryStringBuilder.Append($" OR CONTAINS(r.ServiceName, {query}, true)"); queryStringBuilder.Append($" OR CONTAINS(r.PackageDisplayName, {query}, true)"); + queryStringBuilder.Append($" OR ENDSWITH(ARRAY_SLICE(r.Revisions, -1)[0].Label, {query}, true)"); } queryStringBuilder.Append($")"); }