@@ -397,6 +397,7 @@ globalDefNameCompletionSearch mayCaller mayUserFilter (Query query) limit = do
397397 let filters = case mayUserFilter of
398398 Just userId -> [sql | AND p.owner_user_id = #{userId} |]
399399 Nothing -> mempty
400+ Logging. logInfoText (" globalDefNameCompletionSearch: " <> tShow (" caller" :: Text , mayCaller , " limit" :: Text , limit ))
400401 queryListRows @ (Name , TermOrTypeTag )
401402 [sql |
402403 WITH results(name, tag) AS (
@@ -454,6 +455,7 @@ scopedDefinitionTokenSearch mayCaller projectId rootBranchHashId limit searchTok
454455 then Nothing
455456 else Just $ searchTokensToTsQuery returnTokens
456457 let orderClause = tokenSearchOrderClause False names mayReturnTokensText
458+ Logging. logInfoText (" scopedDefinitionTokenSearch: Performing scoped definition token search:" <> tShow (" caller" :: Text , mayCaller , " projectId" :: Text , projectId , " limit" :: Text , limit , " searchTokens" :: Text , searchTokens , " preferredArity" :: Text , preferredArity ))
457459 rows <-
458460 queryListRows @ (Name , Hasql. Jsonb )
459461 [sql |
@@ -497,7 +499,7 @@ globalDefinitionTokenSearch mayCaller mayUserFilter limit searchTokens preferred
497499 then Nothing
498500 else Just $ searchTokensToTsQuery returnTokens
499501 let orderClause = tokenSearchOrderClause True names mayReturnTokensText
500- Logging. logInfoText (" NEEDLE : Performing global definition token search:" <> tShow (" caller" :: Text , mayCaller , " limit" :: Text , limit , " searchTokens" :: Text , searchTokens , " preferredArity" :: Text , preferredArity ))
502+ Logging. logInfoText (" globalDefinitionTokenSearch : Performing global definition token search:" <> tShow (" caller" :: Text , mayCaller , " limit" :: Text , limit , " searchTokens" :: Text , searchTokens , " preferredArity" :: Text , preferredArity ))
501503 rows <-
502504 queryListRows @ (ProjectId , ReleaseId , Name , Hasql. Jsonb )
503505 [sql |
@@ -578,6 +580,7 @@ definitionNameSearch mayCaller mayFilter limit (Query query) = do
578580-- | Perform a fuzzy trigram search on definition names
579581scopedDefinitionNameSearch :: Maybe UserId -> ProjectId -> BranchHashId -> Limit -> Query -> Transaction e [(Name , TermOrTypeSummary )]
580582scopedDefinitionNameSearch mayCaller projectId rootBranchHashId limit (Query query) = do
583+ Logging. logInfoText (" scopedDefinitionNameSearch: Performing scoped definition name search:" <> tShow (" caller" :: Text , mayCaller , " projectId" :: Text , projectId , " limit" :: Text , limit , " query" :: Text , query ))
581584 rows <-
582585 queryListRows @ (Name , Hasql. Jsonb )
583586 [sql |
@@ -617,7 +620,7 @@ globalDefinitionNameSearch mayCaller mayUserFilter limit (Query query) = do
617620 Just userId -> [sql | AND p.owner_user_id = #{userId} |]
618621 Nothing -> mempty
619622
620- Logging. logInfoText (" NEEDLE : Performing global definition token search:" <> tShow (" caller" :: Text , mayCaller , " limit" :: Text , limit ))
623+ Logging. logInfoText (" globalDefinitionNameSearch : Performing global definition token search:" <> tShow (" caller" :: Text , mayCaller , " limit" :: Text , limit ))
621624 rows <-
622625 queryListRows @ (ProjectId , ReleaseId , Name , Hasql. Jsonb )
623626 [sql |
0 commit comments