Skip to content

Commit

Permalink
fix(treeDetails): skip processing if test_id is None
Browse files Browse the repository at this point in the history
Added a check in `TreeDetails` view to skip processing rows where
`test_id` is `None`. This prevents unnecessary processing and
potential errors when `test_id` is not present in the row data.
  • Loading branch information
WilsonNet committed Jan 15, 2025
1 parent 62cb2be commit 7e0ad8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/kernelCI_app/views/treeDetailsView.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def _sanitize_rows(self, rows):
if row_data["build_id"] is not None:
self._process_builds(row_data)

if row_data["test_id"] is None:
continue

if is_test_boots_test(row_data):
self._process_boots_test(row_data)
else:
Expand Down

0 comments on commit 7e0ad8f

Please sign in to comment.