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-bug/created-date-and-utils-star #119

Closed fivetran-joemarkiewicz closed 10 months ago

fivetran-joemarkiewicz commented 10 months ago

PR Overview

This PR will address the following Issue/Feature: Issue #117 and Feature #116

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

Since we are changing the created_at field to now be created_date, this will result in a breaking change that customers will need to take into account.

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

🚨 Breaking Changes 🚨

Feature Updates

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":

dbt_utils.star() validaton

Created At -> Created Date Validation

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?

🌟
fivetran-joemarkiewicz commented 10 months ago

also for the created_at -> created_date part, is that something we should apply to other tables as well?

@fivetran-jamie great call out here! I hadn't thought about the need to update this in other places since the contact model was the only one the original issue was created within. However, when thinking about the issue as a whole I could see this happening within the company, deal, and ticket models in addition to the contact since we do a similar renaming. After reviewing them I felt it was best to take your advice and make the updates in this PR to account for those future possible issues. Please see my updates for the changes.

Additionally, when reviewing this slack thread I felt it would be an impactful and easy addition to the HubSpot package to introduce variables to disable the property history models. I introduced this variable for all but the ticket model since your PR is working heavily with this model. I would prefer we highlight that history model. Especially since tickets are disabled by default for now.