Skip to content

Commit 2e9a9f4

Browse files
authored
Merge pull request #137 from code42/chore/prep-2.2.0-release
prep 2.2.0 release
2 parents 979e22d + 9418de7 commit 2e9a9f4

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
how a consumer would use the library or CLI tool (e.g. adding unit tests, updating documentation, etc) are not captured
1010
here.
1111

12-
## Unreleased
12+
## 2.2.0 - 2024-11-18
1313

1414
### Updated
1515

16+
- 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.
17+
- 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.
1618
- `client.actors.v1.get_actor_by_name` now defaults to `prefer_parent=True`. Previously, it defaulted to `False`.
1719

1820
## 2.1.0 - 2024-09-30

src/_incydr_sdk/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# SPDX-FileCopyrightText: 2022-present Code42 Software <integrations@code42.com>
22
#
33
# SPDX-License-Identifier: MIT
4-
__version__ = "2.1.0"
4+
__version__ = "2.2.0"

src/_incydr_sdk/file_events/models/event.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,6 +745,9 @@ class Git(Model):
745745

746746
class FileEventV2(ResponseModel):
747747
"""
748+
New fields are often being made available on the event response and this model definition may not contain the most recent additions.
749+
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.
750+
748751
**Fields**:
749752
750753
* **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).

tests/queries/test_event_query.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def test_event_query_is_when_no_values_raises_error():
132132
assert e.value.args[0] == "equals() requires at least one value."
133133

134134

135-
# TODO
136135
@pytest.mark.skip(
137136
reason="11-13-2024 - Removing strict filter term requirements to avoid breaking on new fields"
138137
)

0 commit comments

Comments
 (0)