Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 25cb892

Browse files
fix: TA GQL term filtering (#1167)
1 parent cfb316b commit 25cb892

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphql_api/tests/test_test_analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def test_test_results_pagination_asc(
468468
def test_test_analytics_term_filter(self, repository, store_in_redis, mock_storage):
469469
test_results = generate_test_results(
470470
repoid=repository.repoid,
471-
term=rows[0]["name"],
471+
term=rows[0]["name"][2:],
472472
ordering=TestResultsOrderingParameter.UPDATED_AT,
473473
ordering_direction=OrderingDirection.DESC,
474474
measurement_interval=MeasurementInterval.INTERVAL_30_DAY,

graphql_api/types/test_analytics/test_analytics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def generate_test_results(
198198
)
199199

200200
if term:
201-
table = table.filter(pl.col("name").str.starts_with(term))
201+
table = table.filter(pl.col("name").str.contains(term))
202202

203203
if testsuites:
204204
table = table.filter(

0 commit comments

Comments
 (0)