Skip to content

Commit 5a000cf

Browse files
authored
reduce page_size from py42 default (500) to 100 (#381)
* reduce page_size from py42 default (500) to 100 * changelog * style * bump version
1 parent 1969575 commit 5a000cf

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
The intended audience of this file is for py42 consumers -- as such, changes that don't affect
99
how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here.
1010

11+
## 1.14.4 - 2022-07-21
12+
13+
### Changed
14+
15+
- Reduced the `page_size` in Device API calls from 500 to 100 to reduce possibility of timeouts when including backup usage in `code42 devices list`.
16+
1117
## 1.14.3 - 2022-07-06
1218

1319
### Fixed

src/code42cli/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.14.3"
1+
__version__ = "1.14.4"

src/code42cli/cmds/devices.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,10 @@ def _get_device_dataframe(
432432
sdk, columns, active=None, org_uid=None, include_backup_usage=False
433433
):
434434
devices_generator = sdk.devices.get_all(
435-
active=active, include_backup_usage=include_backup_usage, org_uid=org_uid
435+
active=active,
436+
include_backup_usage=include_backup_usage,
437+
org_uid=org_uid,
438+
page_size=100,
436439
)
437440
devices_list = []
438441
if include_backup_usage:

0 commit comments

Comments
 (0)