Skip to content

Commit e643f6d

Browse files
authored
Merge branch 'main' into cchen-wo
2 parents 578e411 + c060726 commit e643f6d

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
@@ -91,12 +91,12 @@
9191
}
9292
},
9393
"output_parameters": {
94-
"search_result": {
94+
"search_results": {
9595
"type": "slack#/types/search_results",
9696
"title": "Search Result",
9797
"description": "An array containing the search results based on the inputs",
9898
"is_required": true,
99-
"name": "search_result"
99+
"name": "search_results"
100100
}
101101
}
102102
}

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)