Skip to content

Commit c060726

Browse files
authored
feat: Change output name to search_results (#19)
1 parent 3c7b80c commit c060726

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

listeners/functions/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def search_step_callback(
5454
for sample in samples
5555
]
5656

57-
complete(outputs={"search_result": results})
57+
complete(outputs={"search_results": results})
5858
except Exception as e:
5959
if isinstance(e, SlackResponseError):
6060
logger.error(f"Failed to fetch or parse sample data. Error details: {str(e)}", exc_info=e)

manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@
9090
}
9191
},
9292
"output_parameters": {
93-
"search_result": {
93+
"search_results": {
9494
"type": "slack#/types/search_results",
9595
"title": "Search Result",
9696
"description": "An array containing the search results based on the inputs",
9797
"is_required": true,
98-
"name": "search_result"
98+
"name": "search_results"
9999
}
100100
}
101101
}

tests/listeners/functions/test_search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def test_search_step_callback_success(self, mock_fetch_sample_data):
6565
call_args = self.mock_complete.call_args
6666
outputs = call_args.kwargs["outputs"]
6767

68-
assert outputs["search_result"] == self.mock_sample_data["samples"]
68+
assert outputs["search_results"] == self.mock_sample_data["samples"]
6969

7070
self.mock_ack.assert_called_once()
7171
self.mock_fail.assert_not_called()
@@ -117,7 +117,7 @@ def test_search_step_callback_no_filters(self, mock_fetch_sample_data):
117117
self.mock_complete.assert_called_once()
118118
call_args = self.mock_complete.call_args
119119
outputs = call_args.kwargs["outputs"]
120-
assert outputs["search_result"] == []
120+
assert outputs["search_results"] == []
121121

122122
self.mock_ack.assert_called_once()
123123

0 commit comments

Comments
 (0)