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

Commit c55e955

Browse files
authored
fix: Default for test suites and flags (#975)
1 parent 8bb7f9c commit c55e955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql_api/types/test_analytics/test_analytics.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def get_test_suites(
285285
if term:
286286
testsuites = testsuites.filter(pl.col("testsuite").str.starts_with(term))
287287

288-
return testsuites.to_series().to_list()
288+
return testsuites.to_series().drop_nulls().to_list() or []
289289

290290

291291
def get_flags(repoid: int, term: str | None = None, interval: int = 30) -> list[str]:
@@ -300,7 +300,7 @@ def get_flags(repoid: int, term: str | None = None, interval: int = 30) -> list[
300300
if term:
301301
flags = flags.filter(pl.col("flags").str.starts_with(term))
302302

303-
return flags.to_series().to_list()
303+
return flags.to_series().drop_nulls().to_list() or []
304304

305305

306306
class TestResultsOrdering(TypedDict):

0 commit comments

Comments
 (0)