Skip to content

Commit

Permalink
Merge pull request #102 from fivetran/bug/audit-user-activity-test-grain
Browse files Browse the repository at this point in the history
fix grain of user audit activity model
  • Loading branch information
fivetran-jamie authored Dec 7, 2023
2 parents 617aaeb + 8ad1cfb commit b70b8a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# dbt_fivetran_log v1.3.1

## Bug Fixes
[PR #102](https://github.com/fivetran/dbt_fivetran_log/pull/102) applies the following update:
- Adjusts the uniqueness test on the recently introduced `fivetran_platform__audit_user_activity` model to test on `log_id` and `occurred_at`.
- Previously, the `log_id` was erroneously considered the primary key of this model.

# dbt_fivetran_log v1.3.0

## 🚨 Breaking Changes 🚨
Expand Down
10 changes: 6 additions & 4 deletions models/fivetran_platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ models:
Each record represents a user-triggered action in your Fivetran instance.This model is intended for audit-trail purposes, as it can be very helpful
when trying to trace a user action to a [log event](https://fivetran.com/docs/logs#logeventlist) such as a schema change, sync frequency update,
manual update, broken connection, etc.
tests:
- dbt_utils.unique_combination_of_columns:
combination_of_columns:
- log_id
- occurred_at
columns:
- name: date_day
description: Date on which the user action occurred.
Expand Down Expand Up @@ -323,7 +328,4 @@ models:
- name: message_data
description: The details of the event in JSON format.
- name: log_id
description: Unique ID of the log record.
tests:
- unique
- not_null
description: Unique ID of the log record.

0 comments on commit b70b8a2

Please sign in to comment.