Skip to content

Commit

Permalink
refactor(tree-details boots/tests): alter response
Browse files Browse the repository at this point in the history
Part of #731
Part of #700
  • Loading branch information
murilx committed Jan 15, 2025
1 parent 8d12fd6 commit 163bc3f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion backend/kernelCI_app/helpers/treeDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def get_current_row_data(current_row: dict) -> dict:
"status": current_row_data["test_status"],
"duration": current_row_data["test_duration"],
"path": current_row_data["test_path"],
"startTime": current_row_data["test_start_time"],
"start_time": current_row_data["test_start_time"],
"hardware": current_row[tmp_test_env_comp_key],
}

Expand Down
2 changes: 1 addition & 1 deletion backend/kernelCI_app/typeModels/treeDetails.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class TestHistory(BaseModel):
status: Optional[str]
duration: Optional[Union[int, float]]
path: Optional[str]
startTime: Optional[Union[datetime, str]]
start_time: Optional[Union[datetime, str]]
hardware: Optional[Union[str, List[str]]]


Expand Down
2 changes: 1 addition & 1 deletion backend/kernelCI_app/views/treeDetailsBootsView.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ def get(self, request, commit_hash: str | None):

return Response(
{
"bootHistory": self.bootHistory,
"boots": self.bootHistory,
}
)
2 changes: 1 addition & 1 deletion backend/kernelCI_app/views/treeDetailsTestsView.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,6 @@ def get(self, request, commit_hash: str | None):

return Response(
{
"testHistory": self.testHistory,
"tests": self.testHistory,
}
)

0 comments on commit 163bc3f

Please sign in to comment.