From 27ef427ed3813573818cf9c2c7134b8f5c33ed6c Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Tue, 12 Nov 2024 14:29:46 -0800 Subject: [PATCH 1/5] feat(be): Made search query a bit faster --- .../repository/ForestClientRepository.java | 135 ++++++++++-------- 1 file changed, 77 insertions(+), 58 deletions(-) diff --git a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java index 7428a464b1..0606bef66d 100644 --- a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java +++ b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java @@ -62,53 +62,62 @@ Flux findClientByIncorporationOrName( @Query(""" SELECT - c.client_number, - c.CLIENT_ACRONYM as client_acronym, - c.client_name, - c.legal_first_name as client_first_name, - dba.doing_business_as_name as doing_business_as, - c.client_identification, - c.legal_middle_name as client_middle_name, - cl.city as city, - ctc.description as client_type, - csc.description as client_status, - ( - CASE WHEN c.client_number = :value THEN 112 ELSE 0 END + - CASE WHEN c.CLIENT_ACRONYM = :value THEN 111 ELSE 0 END + - (UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value)+10) + - (UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value)+9) + - (UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value)+7) + - CASE WHEN c.client_identification = :value THEN 106 ELSE 0 END + - UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) - ) AS score - FROM the.forest_client c - LEFT JOIN the.CLIENT_DOING_BUSINESS_AS dba ON c.client_number = dba.client_number - LEFT JOIN the.CLIENT_TYPE_CODE ctc ON c.client_type_code = ctc.client_type_code - LEFT JOIN the.CLIENT_LOCATION cl ON c.client_number = cl.client_number - LEFT JOIN the.CLIENT_STATUS_CODE csc ON c.client_status_code = csc.client_status_code - WHERE - ( - c.client_number = :value - OR c.CLIENT_ACRONYM = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name,:value) >= 90 - OR c.client_name LIKE '%' || :value || '%' - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name,:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name,:value) >= 90 - OR dba.doing_business_as_name LIKE '%' || :value || '%' - OR c.client_identification = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name,:value) >= 90 - OR c.legal_middle_name LIKE '%' || :value || '%' - OR (c.client_type_code = 'I' AND ( - UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.legal_first_name || ' ', '') || COALESCE(c.legal_middle_name || ' ', '') || COALESCE(c.client_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.legal_first_name || ' ', '') || COALESCE(c.client_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.client_name || ' ', '') || COALESCE(c.legal_middle_name || ' ', '') || COALESCE(c.legal_first_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.client_name || ' ', '') || COALESCE(c.legal_first_name, '')),:value) >= 90 + c.client_number, + c.CLIENT_ACRONYM AS client_acronym, + c.client_name, + c.legal_first_name AS client_first_name, + dba.doing_business_as_name AS doing_business_as, + c.client_identification, + c.legal_middle_name AS client_middle_name, + cl.city AS city, + ctc.description AS client_type, + csc.description AS client_status, + ( + CASE WHEN c.client_number = :value THEN 112 ELSE 0 END + + CASE WHEN c.CLIENT_ACRONYM = :value THEN 111 ELSE 0 END + + (UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name || ' ' || c.legal_first_name, :value) + 10) + + (UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) + 7) + + CASE WHEN c.client_identification = :value THEN 106 ELSE 0 END + + UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) + ) AS score + FROM the.forest_client c + LEFT JOIN the.CLIENT_DOING_BUSINESS_AS dba ON c.client_number = dba.client_number + LEFT JOIN the.CLIENT_TYPE_CODE ctc ON c.client_type_code = ctc.client_type_code + LEFT JOIN the.CLIENT_LOCATION cl ON c.client_number = cl.client_number + LEFT JOIN the.CLIENT_STATUS_CODE csc ON c.client_status_code = csc.client_status_code + WHERE + ( + c.client_number = :value + OR c.CLIENT_ACRONYM = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 + OR c.client_name LIKE '%' || :value || '%' + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 + OR dba.doing_business_as_name LIKE '%' || :value || '%' + OR c.client_identification = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 + OR c.legal_middle_name LIKE '%' || :value || '%' + OR ( + c.client_type_code = 'I' AND ( + UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.client_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.client_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value + ) >= 90 + ) + ) ) - ) - ) AND - cl.CLIENT_LOCN_CODE = '00' - ORDER BY score DESC - OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY""") + AND cl.CLIENT_LOCN_CODE = '00' + ORDER BY score DESC + OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY + """) Flux findByPredictiveSearch(String value, int limit, long offset); @Query(""" @@ -123,23 +132,33 @@ Flux findClientByIncorporationOrName( ( c.client_number = :value OR c.CLIENT_ACRONYM = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name,:value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 OR c.client_name LIKE '%' || :value || '%' - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name,:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name,:value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 OR dba.doing_business_as_name LIKE '%' || :value || '%' OR c.client_identification = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name,:value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 OR c.legal_middle_name LIKE '%' || :value || '%' - OR (c.client_type_code = 'I' AND ( - UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.legal_first_name || ' ', '') || COALESCE(c.legal_middle_name || ' ', '') || COALESCE(c.client_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.legal_first_name || ' ', '') || COALESCE(c.client_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.client_name || ' ', '') || COALESCE(c.legal_middle_name || ' ', '') || COALESCE(c.legal_first_name, '')),:value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(TRIM(COALESCE(c.client_name || ' ', '') || COALESCE(c.legal_first_name, '')),:value) >= 90 - ) + OR ( + c.client_type_code = 'I' AND ( + UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.client_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.client_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value + ) >= 90 + ) ) - ) AND - cl.CLIENT_LOCN_CODE = '00'""") + ) + AND cl.CLIENT_LOCN_CODE = '00' + """) Mono countByPredictiveSearch(String value); @Query(""" From f08aca480e67c1cd4ac5328fb5bef844f25576de Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Sun, 17 Nov 2024 13:44:50 -0800 Subject: [PATCH 2/5] fix(be): Code reviews --- .../repository/ForestClientRepository.java | 174 ++++++++++-------- 1 file changed, 102 insertions(+), 72 deletions(-) diff --git a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java index 0606bef66d..499820ee68 100644 --- a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java +++ b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java @@ -62,59 +62,75 @@ Flux findClientByIncorporationOrName( @Query(""" SELECT - c.client_number, - c.CLIENT_ACRONYM AS client_acronym, - c.client_name, - c.legal_first_name AS client_first_name, - dba.doing_business_as_name AS doing_business_as, - c.client_identification, - c.legal_middle_name AS client_middle_name, - cl.city AS city, - ctc.description AS client_type, - csc.description AS client_status, - ( - CASE WHEN c.client_number = :value THEN 112 ELSE 0 END + - CASE WHEN c.CLIENT_ACRONYM = :value THEN 111 ELSE 0 END + - (UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name || ' ' || c.legal_first_name, :value) + 10) + - (UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) + 7) + - CASE WHEN c.client_identification = :value THEN 106 ELSE 0 END + - UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) - ) AS score + c.client_number, + c.CLIENT_ACRONYM AS client_acronym, + c.client_name, + c.legal_first_name AS client_first_name, + dba.doing_business_as_name AS doing_business_as, + c.client_identification, + c.legal_middle_name AS client_middle_name, + cl.city AS city, + ctc.description AS client_type, + csc.description AS client_status, + ( + CASE WHEN c.client_number = :value THEN 112 ELSE 0 END + + CASE WHEN c.CLIENT_ACRONYM = :value THEN 111 ELSE 0 END + + (UTL_MATCH.JARO_WINKLER_SIMILARITY( + c.client_name || ' ' || c.legal_first_name, :value + ) + 10) + + (UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) + 7) + + CASE WHEN c.client_identification = :value THEN 106 ELSE 0 END + + UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) + ) AS score FROM the.forest_client c LEFT JOIN the.CLIENT_DOING_BUSINESS_AS dba ON c.client_number = dba.client_number LEFT JOIN the.CLIENT_TYPE_CODE ctc ON c.client_type_code = ctc.client_type_code LEFT JOIN the.CLIENT_LOCATION cl ON c.client_number = cl.client_number LEFT JOIN the.CLIENT_STATUS_CODE csc ON c.client_status_code = csc.client_status_code WHERE - ( - c.client_number = :value - OR c.CLIENT_ACRONYM = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 - OR c.client_name LIKE '%' || :value || '%' - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 - OR dba.doing_business_as_name LIKE '%' || :value || '%' - OR c.client_identification = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 - OR c.legal_middle_name LIKE '%' || :value || '%' - OR ( - c.client_type_code = 'I' AND ( - UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.client_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.client_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value - ) >= 90 + ( + c.client_number = :value + OR c.CLIENT_ACRONYM = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 + OR c.client_name LIKE '%' || :value || '%' + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 + OR dba.doing_business_as_name LIKE '%' || :value || '%' + OR c.client_identification = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 + OR c.legal_middle_name LIKE '%' || :value || '%' + OR ( + c.client_type_code = 'I' AND ( + UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.legal_first_name, '') || ' ' || + COALESCE(c.legal_middle_name, '') || + COALESCE(c.client_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.legal_first_name, '') || ' ' || + COALESCE(c.client_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.client_name, '') || ' ' || + COALESCE(c.legal_middle_name, '') || + COALESCE(c.legal_first_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.client_name, '') || ' ' || + COALESCE(c.legal_first_name, '') + ), :value + ) >= 90 + ) ) ) - ) - AND cl.CLIENT_LOCN_CODE = '00' + AND cl.CLIENT_LOCN_CODE = '00' ORDER BY score DESC OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY """) @@ -129,35 +145,49 @@ Flux findClientByIncorporationOrName( LEFT JOIN the.CLIENT_LOCATION cl ON c.client_number = cl.client_number LEFT JOIN the.CLIENT_STATUS_CODE csc ON c.client_status_code = csc.client_status_code WHERE - ( - c.client_number = :value - OR c.CLIENT_ACRONYM = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 - OR c.client_name LIKE '%' || :value || '%' - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 - OR dba.doing_business_as_name LIKE '%' || :value || '%' - OR c.client_identification = :value - OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 - OR c.legal_middle_name LIKE '%' || :value || '%' - OR ( - c.client_type_code = 'I' AND ( - UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.client_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.legal_first_name, '') || ' ' || COALESCE(c.client_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_middle_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value - ) >= 90 - OR UTL_MATCH.JARO_WINKLER_SIMILARITY( - TRIM(COALESCE(c.client_name, '') || ' ' || COALESCE(c.legal_first_name, '')), :value - ) >= 90 + ( + c.client_number = :value + OR c.CLIENT_ACRONYM = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.client_name, :value) >= 90 + OR c.client_name LIKE '%' || :value || '%' + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_first_name, :value) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(dba.doing_business_as_name, :value) >= 90 + OR dba.doing_business_as_name LIKE '%' || :value || '%' + OR c.client_identification = :value + OR UTL_MATCH.JARO_WINKLER_SIMILARITY(c.legal_middle_name, :value) >= 90 + OR c.legal_middle_name LIKE '%' || :value || '%' + OR ( + c.client_type_code = 'I' AND ( + UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.legal_first_name, '') || ' ' || + COALESCE(c.legal_middle_name, '') || + COALESCE(c.client_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.legal_first_name, '') || ' ' || + COALESCE(c.client_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.client_name, '') || ' ' || + COALESCE(c.legal_middle_name, '') || + COALESCE(c.legal_first_name, '') + ), :value + ) >= 90 + OR UTL_MATCH.JARO_WINKLER_SIMILARITY( + TRIM( + COALESCE(c.client_name, '') || ' ' || + COALESCE(c.legal_first_name, '') + ), :value + ) >= 90 + ) ) ) - ) - AND cl.CLIENT_LOCN_CODE = '00' + AND cl.CLIENT_LOCN_CODE = '00' """) Mono countByPredictiveSearch(String value); From 7d3ac21ddfe6c2c97eb226e5dd322eb008a681da Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Sun, 17 Nov 2024 13:52:11 -0800 Subject: [PATCH 3/5] fix(be): Code reviews --- .../ca/bc/gov/app/repository/ForestClientRepository.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java index 499820ee68..d23343c824 100644 --- a/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java +++ b/legacy/src/main/java/ca/bc/gov/app/repository/ForestClientRepository.java @@ -132,8 +132,7 @@ Flux findClientByIncorporationOrName( ) AND cl.CLIENT_LOCN_CODE = '00' ORDER BY score DESC - OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY - """) + OFFSET :offset ROWS FETCH NEXT :limit ROWS ONLY""") Flux findByPredictiveSearch(String value, int limit, long offset); @Query(""" @@ -187,8 +186,7 @@ Flux findClientByIncorporationOrName( ) ) ) - AND cl.CLIENT_LOCN_CODE = '00' - """) + AND cl.CLIENT_LOCN_CODE = '00'""") Mono countByPredictiveSearch(String value); @Query(""" From d0569a2e8d3d264926b398c32a8f628d770581cc Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Wed, 20 Nov 2024 09:37:26 -0800 Subject: [PATCH 4/5] Added test when name part is the contatenation --- .../app/controller/ClientSearchControllerIntegrationTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java b/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java index 5d816ef7ce..ac28640689 100644 --- a/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java +++ b/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java @@ -574,7 +574,8 @@ private static Stream byPredictive() { Arguments.of("darbie", 0, 4, "00000145", "DARBIE BLIND (MINYX)"), Arguments.of("pietro", null, null, StringUtils.EMPTY, StringUtils.EMPTY), Arguments.of("pietro", 0, 5, StringUtils.EMPTY, StringUtils.EMPTY), - Arguments.of("pietro", 4, 10, StringUtils.EMPTY, StringUtils.EMPTY) + Arguments.of("pietro", 4, 10, StringUtils.EMPTY, StringUtils.EMPTY), + Arguments.of("matelda", null, null, "00000137", "MATELDA LINDHE") ); } From 36a6c5cf5ee93f973afe78e38edcc4e94377ad88 Mon Sep 17 00:00:00 2001 From: Maria Martinez Date: Wed, 20 Nov 2024 09:44:27 -0800 Subject: [PATCH 5/5] no message --- .../app/controller/ClientSearchControllerIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java b/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java index ac28640689..8489dfd236 100644 --- a/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java +++ b/legacy/src/test/java/ca/bc/gov/app/controller/ClientSearchControllerIntegrationTest.java @@ -575,7 +575,7 @@ private static Stream byPredictive() { Arguments.of("pietro", null, null, StringUtils.EMPTY, StringUtils.EMPTY), Arguments.of("pietro", 0, 5, StringUtils.EMPTY, StringUtils.EMPTY), Arguments.of("pietro", 4, 10, StringUtils.EMPTY, StringUtils.EMPTY), - Arguments.of("matelda", null, null, "00000137", "MATELDA LINDHE") + Arguments.of("matelda", null, null, "00000137", "MATELDA LINDHE (JABBERTYPE)") ); }