Skip to content
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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/_incydr_sdk/__version__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2022-present Code42 Software <integrations@code42.com>
#
# SPDX-License-Identifier: MIT
__version__ = "2.1.0"
__version__ = "2.2.0"
3 changes: 3 additions & 0 deletions src/_incydr_sdk/file_events/models/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 0 additions & 1 deletion tests/queries/test_event_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
Loading