diff --git a/CHANGELOG.md b/CHANGELOG.md index 0eaff4a8e..79ebe4bf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 The intended audience of this file is for py42 consumers -- as such, changes that don't affect how a consumer would use the library (e.g. adding unit tests, updating documentation, etc) are not captured here. +## 0.5.1 - 2020-04-27 + +### Fixed + +- Issue that prevented version 0.5.0 from updating its dependencies properly. + +- Issue that prevented the `add` and `bulk add` functionality of `departing-employee` and `high-risk-employee` from successfully adding users to lists when specifying optional fields. + ## 0.5.0 - 2020-04-24 ### Changed diff --git a/setup.py b/setup.py index 8a61aed10..8e68b342f 100644 --- a/setup.py +++ b/setup.py @@ -21,10 +21,10 @@ package_dir={"": "src"}, python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4", install_requires=[ - "c42eventextractor", + "c42eventextractor==0.2.7", "keyring==18.0.1", "keyrings.alt==3.2.0", - "py42", + "py42>=1.0.0", ], license="MIT", include_package_data=True, diff --git a/src/code42cli/__version__.py b/src/code42cli/__version__.py index 3d187266f..dd9b22ccc 100644 --- a/src/code42cli/__version__.py +++ b/src/code42cli/__version__.py @@ -1 +1 @@ -__version__ = "0.5.0" +__version__ = "0.5.1" diff --git a/src/code42cli/cmds/detectionlists/departing_employee.py b/src/code42cli/cmds/detectionlists/departing_employee.py index 19d73ef1a..c5c6dbf8a 100644 --- a/src/code42cli/cmds/detectionlists/departing_employee.py +++ b/src/code42cli/cmds/detectionlists/departing_employee.py @@ -33,8 +33,8 @@ def add_departing_employee( notes: (str): Notes about the employee. """ user_id = get_user_id(sdk, username) - update_user(sdk, user_id, cloud_alias, notes=notes) sdk.detectionlists.departing_employee.add(user_id, departure_date) + update_user(sdk, user_id, cloud_alias, notes=notes) def remove_departing_employee(sdk, profile, username): diff --git a/src/code42cli/cmds/detectionlists/high_risk_employee.py b/src/code42cli/cmds/detectionlists/high_risk_employee.py index 2bd6d0d01..c5fe1211b 100644 --- a/src/code42cli/cmds/detectionlists/high_risk_employee.py +++ b/src/code42cli/cmds/detectionlists/high_risk_employee.py @@ -45,6 +45,7 @@ def add_risk_tags(sdk, profile, username, risk_tag): user_id = get_user_id(sdk, username) sdk.detectionlists.add_user_risk_tags(user_id, risk_tag) + def remove_risk_tags(sdk, profile, username, risk_tag): risk_tag = _handle_list_args(risk_tag) user_id = get_user_id(sdk, username) @@ -64,8 +65,8 @@ def add_high_risk_employee(sdk, profile, username, cloud_alias=None, risk_tag=No """ risk_tag = _handle_list_args(risk_tag) user_id = get_user_id(sdk, username) - update_user(sdk, user_id, cloud_alias, risk_tag, notes) sdk.detectionlists.high_risk_employee.add(user_id) + update_user(sdk, user_id, cloud_alias, risk_tag, notes) def remove_high_risk_employee(sdk, profile, username):