Skip to content

Increase page size from 100 to 1000 #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/extensions/httpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def get_paginated(
client: Client, url: str, page_size: int = 100, **kwargs: str | int
client: Client, url: str, page_size: int = 1000, **kwargs: str | int
) -> Iterator[dict]:
"""Paginate over Turn BQ API.

Expand Down
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/requests/chats.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_chats_by_updated_at(
}

chats_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

chats = concatenate(chats_generator)
Expand Down
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/requests/contacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_contacts_by_updated_at(
}

contacts_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

contacts = concatenate(contacts_generator)
Expand Down
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/requests/flow_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def get_flow_results_by_updated_at(
}

flow_results_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

flow_results = concatenate(flow_results_generator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_flow_results_data_packages_by_updated_at(
}

flow_results_data_packages_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

flow_results_data_packages = concatenate(
Expand Down
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/requests/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_messages_by_updated_at(
}

messages_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

messages = concatenate(messages_generator)
Expand Down
2 changes: 1 addition & 1 deletion rdw_ingestion_tools/api/turn_bq/requests/statuses.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def get_statuses_by_updated_at(
}

status_generator = get_paginated(
self.client, url, page_size=100, **params
self.client, url, page_size=1000, **params
)

status = concatenate(status_generator)
Expand Down