Skip to content

Releases: fivetran/dbt_hubspot_source

v0.9.0 dbt_hubspot_source

30 Mar 16:51
e5326f9
Compare
Choose a tag to compare

🚨 Breaking Changes 🚨

In November 2022, the Fivetran Hubspot connector switched to v3 of the Hubspot CRM API, which deprecated the CONTACT_MERGE_AUDIT table and stored merged contacts in a field in the CONTACT table. This has not been rolled out to BigQuery warehouses yet. BigQuery connectors with the CONTACT_MERGE_AUDIT table enabled will continue to sync this table until the new CONTACT.property_hs_calculated_merged_vids field and API version becomes available to them.

This release introduces breaking changes around how contacts are merged in order to align with the above connector changes. It is, however, backwards-compatible.

PR #98 applies the following changes:

  • Updates logic around the recently deprecated CONTACT_MERGE_AUDIT table.
    • The package now brings in the new property_hs_calculated_merged_vids field (and removes the property_hs_ prefix) for all customers, including those on BigQuery (the field will just be null).
    • Backwards-compatibility: the package will only reference the old CONTACT_MERGE_AUDIT table and create stg_hubspot__contact_merge_audit if hubspot_contact_merge_audit_enabled is explicitly set to true in your root dbt_project.yml file.

Bug Fixes

  • The CONTACT, COMPANY, DEAL, and TICKET staging models have been updated to ensure users enabling the hubspot__pass_through_all_columns will have all required columns. (PR #100)

Under the Hood

  • Updates seed data to test new merging paradigm. (PR #98)
  • Ensures that all timestamp fields are explicitly cast as timestamps without timezone, as recent API changes also introduced inconsistent timestamp formats. (PR #98)
  • Creation of the get_macro_columns macro to help perform a check when enabling the hubspot__pass_through_all_columns to ensure the required fields are captured regardless of their existence in the source table. (PR #100)
  • Creation of the all_passthrough_column_check macro to help ensure that the operation to bring in all fields for the CONTACT, COMPANY, DEAL, and TICKET staging models is performed only if additional fields from the required are present in the source. (PR #100)

See the transform package CHANGELOG for updates made to end models in dbt_hubspot v0.9.0.

v0.8.0...v0.9.0

dbt_hubspot_source 0.8.0

11 Jan 20:27
00c17a7
Compare
Choose a tag to compare

Happy International Thank You Day -- THANK YOU all for your continued contributions and making our packages better everyday! 🥳

🚨 Breaking Changes 🚨:

PR #96 incorporates the following updates:

  • The is_deleted field has been renamed within the below models:

    • stg_hubspot__company ( is_company_deleted)
    • stg_hubspot__deal (is_deal_deleted)
    • stg_hubspot__ticket (is_ticket_deleted)
  • The _fivetran_deleted field has been renamed within the below models:

    • stg_husbpot__contact_list_member (is_contact_list_member_deleted)
    • stg_hubspot__contact_list (is_contact_list_deleted)
    • stg_hubspot__contact (is_contact_deleted)
    • stg_hubspot__deal_pipeline_stage (is_deal_pipeline_stage_deleted)
    • stg_hubspot__deal_pipeline (is_deal_pipeline_deleted)
    • stg_hubspot__ticket_pipeline_stage (is_ticket_pipeline_stage_deleted)
    • stg_hubspot__ticket_pipeline (is_ticket_pipeline_deleted)
  • Filtering deleted records with the methods where not coalesce(is_deleted, false) or where not coalesce(_fivetran_deleted, false) has been removed from the above models. Instead, the new is_<model>_deleted flags will now offer customers flexibility to filter models for deleted records as necessary.

Under the Hood

  • stg*.yml documentation has been updated such that all is_<model>_deleted fields point to the is_deleted definition rather than respective is_deleted and _fivetran_deleted since the two fields are equivalent and in order to maintain consistency. (PR #96).

dbt_hubspot_source v0.7.0

03 Jan 22:20
cc36e15
Compare
Choose a tag to compare

🚨 Breaking Changes 🚨:

PR #89 includes the following breaking changes:

  • Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically {{ dbt_utils.<macro> }} have been updated to {{ dbt.<macro> }} for the below macros:
    • any_value
    • bool_or
    • cast_bool_to_text
    • concat
    • date_trunc
    • dateadd
    • datediff
    • escape_single_quotes
    • except
    • hash
    • intersect
    • last_day
    • length
    • listagg
    • position
    • replace
    • right
    • safe_cast
    • split_part
    • string_literal
    • type_bigint
    • type_float
    • type_int
    • type_numeric
    • type_string
    • type_timestamp
    • array_append
    • array_concat
    • array_construct
  • For current_timestamp and current_timestamp_in_utc macros, the dispatch AND the macro names have been updated to the below, respectively:
    • dbt.current_timestamp_backcompat
    • dbt.current_timestamp_in_utc_backcompat
  • Dependencies on fivetran/fivetran_utils have been upgraded, previously [">=0.3.0", "<0.4.0"] now [">=0.4.0", "<0.5.0"].

🎉 Features

  • 🧱 Databricks compatibility! (PR #91)

dbt_hubspot_source v0.6.4

13 Oct 21:29
f5612dc
Compare
Choose a tag to compare

PR #88 incorporates the following updates:

🔧 Fixes

dbt_hubspot_source v0.6.3

19 Sep 22:11
dbb51e2
Compare
Choose a tag to compare

Happy Monday!

This release of dbt_hubspot_source package includes the following updates:

Fixes

  • Fixes a bug in the models stg_hubspot__engagement_meeting.sql and stg_hubspot__engagement_meeting_tmp.sql where the fivetran_utils.enabled_vars macro was referencing the wrong variable (hubspot_engagement_email_enabled) from the vars list in the dbt_project.yml.
  • Also updates src_hubspot.yml variable to hubspot_engagement_meeting_enabled. This was preventing users from disabling these enagagement_meeting models in their projects. (#85)

Contributors

dbt_hubspot_source v0.6.2

26 Aug 22:07
198a840
Compare
Choose a tag to compare

Fixes

  • Removes the fivetran_utils.enabled_vars macro from the configuration blocks of models dependent on hubspot_service_enabled, hubspot_contact_merge_audit_enabled, and hubspot_ticket_deal_enabled. This macro assumes its arguments to be true by default, which these variables are not. This produces conflicts if you do not provide explicit values for these variables in your root dbt_project.yml file.

dbt_hubspot_source v0.6.1

26 Aug 20:49
580d909
Compare
Choose a tag to compare

Fixes

  • Removes default variable configs in the dbt_project.yml for hubspot_service_enabled, hubspot_contact_merge_audit_enabled, and hubspot_ticket_deal_enabled. Otherwise it will conflict with enable configs in the source tables.
  • Toggle default enable in the src.yml to false for hubspot_service_enabled, hubspot_contact_merge_audit_enabled, and hubspot_ticket_deal_enabled.

dbt_hubspot_source v0.6.0

24 Aug 22:41
5819a3a
Compare
Choose a tag to compare

🎉 Documentation and Feature Updates

  • Updated README documentation updates for easier navigation and setup of the dbt package
  • Included hubspot_[source_table_name]_identifier variable for additional flexibility within the package when source tables are named differently.
  • Adds hubspot_ticket_deal_enabled variable (default value=False) to disable modelling and testing of the ticket_deal source table. If there are no associations between tickets and deals in your Hubspot environment, this table will not exist (#79).

Fixes

  • Consistently renames property_dealname, property_closedate, and property_createdate to deal_name, closed_at, and created_at, respectively, in the deals staging model. Previously, if hubspot__pass_through_all_columns = true, only the prefix property_ was removed from the names of these fields, while they were completely renamed to deal_name, closed_at, and created_at if hubspot__pass_through_all_columns = false (#79).
  • Bypass freshness tests for when a source is disabled by adding an enable/disable config to the source yml (#77)
    Notice: You must have dbt v1.1.0 or greater for the config to work.

Contributors

dbt_hubspot_source v0.5.7

25 Jul 13:56
3888cde
Compare
Choose a tag to compare

Happy Monday 🛌

This release of the dbt_hubspot_source package includes the following updates:

Fixes

  • Spelling correction of variable names within the README. (#73)

Contributors

dbt_hubspot_source v0.5.6

27 May 15:35
53e5806
Compare
Choose a tag to compare

Happy Tuesday 🌮

This release of the dbt_hubspot_source package includes the following updates:

Bug Fixes

  • The below staging tables contain a where clause to filter out soft deletes. However, this where clause was conducted in the first CTE of the staging model before the fill_staging_columns macro. Therefore, if the field doesn't exist, the dbt run would fail. These updates have moved the CTE to the final one to avoid this error. (#68)
    • stg_hubspot__company, stg_hubspot__contact, stg_hubspot__contact_list, stg_hubspot__deal, stg_hubspot__deal_pipeline, stg_hubspot__deal_pipeline_stage, stg_hubspot__ticket, and stg_hubspot__contact_list.

Contributors