Skip to content

Commit 75e0ccc

Browse files
authored
Update maxSearchQueryLength to 200 (#680)
* feat: 3x maxSearchQueryLength * fix: update maxSearchQueryLength to 200 chars * fix: update http request unmarshaling tests * feat: add changelog entry
1 parent 49634fb commit 75e0ccc

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
3535

3636
# Changelog
3737

38+
## v28.3.12
39+
40+
- #680 - CHAIN-1116 | Update pool search `maxSearchQueryLength`
41+
3842
## v28.3.11
3943

4044
- #676 - BE-751 | Include token metadata into quote response

pkg/api/v1beta1/pools/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
const (
16-
maxSearchQueryLength = 50
16+
maxSearchQueryLength = 200
1717
maxDenoms = 8
1818
)
1919

pkg/api/v1beta1/pools/http_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func TestGetPoolsRequestFilter_UnmarshalHTTPRequest(t *testing.T) {
219219
{
220220
name: "Invalid Search ( too long )",
221221
queryParams: map[string]string{
222-
queryFilterSearch: "TestGetPoolsRequestFilter_UnmarshalHTTPRequest/Invalid_Search_(_too_long_)",
222+
queryFilterSearch: "TestGetPoolsRequestFilter_UnmarshalHTTPRequest/Invalid_Search_(_too_long_very_long_search_query_that_exceeds_the_max_length_of_200_characters_lore_ipsum_dolor_sit_amet_consectetur_adipiscing_elit_sed_do_eiusmod_tempor_incididunt_ut",
223223
},
224224
expectError: true,
225225
},

0 commit comments

Comments
 (0)