diff --git a/CHANGELOG.md b/CHANGELOG.md index 18f7dfd..6ccdb1b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,10 +9,12 @@ how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured here. -## Unreleased +## 2.2.0 - 2024-11-18 ### Updated +- Updated the `FileEventV2` model to all existing fields at this time. For example, the recently added `responseControls` response object is now available on the model. +- Updated `EventQuery` objects to allow filtering by any string by removing the requirement that filter terms and values must match explicitly defined fields. This allows end users to filter by fields recently added to the file event response without requiring an SDK update. - `client.actors.v1.get_actor_by_name` now defaults to `prefer_parent=True`. Previously, it defaulted to `False`. ## 2.1.0 - 2024-09-30 diff --git a/src/_incydr_sdk/__version__.py b/src/_incydr_sdk/__version__.py index bb7f74a..894b573 100644 --- a/src/_incydr_sdk/__version__.py +++ b/src/_incydr_sdk/__version__.py @@ -1,4 +1,4 @@ # SPDX-FileCopyrightText: 2022-present Code42 Software # # SPDX-License-Identifier: MIT -__version__ = "2.1.0" +__version__ = "2.2.0" diff --git a/src/_incydr_sdk/file_events/models/event.py b/src/_incydr_sdk/file_events/models/event.py index 3d200ba..92af44d 100644 --- a/src/_incydr_sdk/file_events/models/event.py +++ b/src/_incydr_sdk/file_events/models/event.py @@ -745,6 +745,9 @@ class Git(Model): class FileEventV2(ResponseModel): """ + New fields are often being made available on the event response and this model definition may not contain the most recent additions. + See the response definition for the [File Event Search API](https://developer.code42.com/api/#tag/File-Events/operation/searchEvents) for the most up to date information on what data is available. + **Fields**: * **timestamp**: - The date and time that the Code42 service on the device detected the event. This timestamp is based on the device’s system clock and reported in Coordinated Universal Time (UTC). diff --git a/tests/queries/test_event_query.py b/tests/queries/test_event_query.py index 4f419b0..5f756a0 100644 --- a/tests/queries/test_event_query.py +++ b/tests/queries/test_event_query.py @@ -132,7 +132,6 @@ def test_event_query_is_when_no_values_raises_error(): assert e.value.args[0] == "equals() requires at least one value." -# TODO @pytest.mark.skip( reason="11-13-2024 - Removing strict filter term requirements to avoid breaking on new fields" )