fivetran / dbt_hubspot_source

Data models for Hubspot built using dbt.
https://fivetran.github.io/dbt_hubspot_source/
Apache License 2.0
31 stars 30 forks source link

feature/email-event-filter #104

Closed fivetran-joemarkiewicz closed 1 year ago

fivetran-joemarkiewicz commented 1 year ago

PR Overview

This PR will address the following Issue/Feature: dbt_hubspot feature identified within FR #96

This PR will result in the following new package version: v0.9.1

This update is only adding a variable to a staging model to filter out specified email events. This variable is true by default and will not filter out records for existing package users. If users want to take advantage of the variable, they may set the hubspot_using_filtered_events variable to false. As such, this is not a breaking change.

Please detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:

This PR adds the hubspot_using_filtered_events variable (true by default) to the stg_hubspot__email_event model. When this variable is set to true (default behavior) there is no change to the model as it currently is built. However, if this variable is set to false it will remove the designated filtered email events per the is_filtered_event field. This is crucial for customers leveraging the filtered email event feature within HubSpot and ensure the downstream reports are not factoring in events that do not wish to include.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

Before marking this PR as “ready for review” the following have been applied:

Detailed Validation

Please acknowledge that the following validation checks have been performed prior to marking this PR as “ready for review”:

I tested this package by performing the following steps:

Standard Updates

Please acknowledge that your PR contains the following standard updates:

dbt Docs

Please acknowledge that after the above were all completed the below were applied to your branch:

If you had to summarize this PR in an emoji, which would it be?

📧