@@ -225,17 +225,20 @@ def get_cases_by_customers_action_and_case_search(
225
225
offset : int = 0 ,
226
226
) -> tuple [list [Case ], int ]:
227
227
"""
228
- Retrieve a list of cases filtered by customers, action, and matching names or internal ids.
228
+ Return cases by customers, action, and matching names or internal ids, plus the total
229
+ number of cases matching the filter criteria. A limit and offset can be applied to the
230
+ query for pagination purposes.
229
231
230
232
Args:
231
233
customers (list[Customer] | None): A list of customer objects to filter cases by.
232
234
action (str | None): The action string to filter cases by.
233
235
case_search (str | None): The case search string to filter cases by.
234
- limit (int | None, default=30 ): The maximum number of cases to return.
235
- offset (int, default=0): The offset to start returning cases by .
236
+ limit (int | None, default=50 ): The maximum number of cases to return.
237
+ offset (int, default=0): The offset number of cases for the query .
236
238
Returns:
237
- tuple[list[Case], int]: A list of filtered cases sorted by creation time and truncated
238
- by the limit parameter, and the total number of samples before truncation.
239
+ list[Case]: A list of filtered cases sorted by creation time and truncated
240
+ by the limit parameter.
241
+ int: The total number of cases returned before truncation.
239
242
"""
240
243
filter_functions : list [Callable ] = [
241
244
CaseFilter .BY_CUSTOMER_ENTRY_IDS ,
@@ -635,11 +638,11 @@ def get_samples_by_customers_and_pattern(
635
638
Args:
636
639
customers (list[Customer] | None): A list of customer objects to filter cases by.
637
640
pattern (str | None): The sample internal id or name pattern to search for.
638
- limit (int | None, default=30 ): The maximum number of cases to return.
639
- offset (int, default=0): The offset to start returning cases by .
641
+ limit (int | None, default=50 ): The maximum number of samples to return.
642
+ offset (int, default=0): The offset number of samples for the query .
640
643
Returns:
641
- tuple[ list[Sample], int] : A list of filtered samples truncated by the limit parameter
642
- and the total number of samples before truncation.
644
+ list[Sample]: A list of filtered samples truncated by the limit parameter.
645
+ int: The total number of samples returned before truncation.
643
646
"""
644
647
samples : Query = self ._get_query (table = Sample )
645
648
filter_functions : list [SampleFilter ] = []
0 commit comments