Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/public disabled models #154

Merged
merged 9 commits into from
Feb 5, 2025
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 .quickstart/quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@ public_models: [
"hubspot__companies",
"hubspot__deal_stages",
"hubspot__deals",
"hubspot__engagements"
"hubspot__engagements",
"hubspot__daily_ticket_history",
"hubspot__tickets"
]
23 changes: 21 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
# dbt_hubspot version.version
# dbt_hubspot v0.21.0
This release includes the following updates:

## Breaking Changes
- For Quickstart users, the models `hubspot__daily_ticket_history` and `hubspot__tickets` are now available within the Quickstart UI and are enabled by default. ([#154](https://github.com/fivetran/dbt_hubspot/pull/154))

## Documentation
- Added Quickstart model counts to README. ([#152](https://github.com/fivetran/dbt_hubspot/pull/152))
- Corrected references to connectors and connections in the README. ([#152](https://github.com/fivetran/dbt_hubspot/pull/152))

## Under the hood
- Added `hubspot__daily_ticket_history` and `hubspot__tickets` models to the `public_models` list in `quickstart.yml`. ([#154](https://github.com/fivetran/dbt_hubspot/pull/154))


# dbt_hubspot v0.21.0-a1
[PR #154](https://github.com/fivetran/dbt_hubspot/pull/154) includes the following updates:

## Documentation
- Added Quickstart model counts to README. ([#152](https://github.com/fivetran/dbt_hubspot/pull/152))
- Corrected references to connectors and connections in the README. ([#152](https://github.com/fivetran/dbt_hubspot/pull/152))

## Under the hood
- Added `hubspot__daily_ticket_history` and `hubspot__tickets` models to the `public_models` list in `quickstart.yml`.
- This pre-release tests models that are disabled by default for compatibility with quickstart.

# dbt_hubspot v0.20.0
[PR #150](https://github.com/fivetran/dbt_hubspot/pull/150) includes the following updates:

Expand Down Expand Up @@ -472,4 +491,4 @@ PR [#84](https://github.com/fivetran/dbt_hubspot/pull/84) incorporates the follo
- Please note, if you are installing a version of `dbt_utils` in your `packages.yml` that is not in the range above then you will encounter a package dependency error.

# dbt_hubspot v0.1.0 -> v0.4.1
Refer to the relevant release notes on the Github repository for specific details for the previous releases. Thank you!
Refer to the relevant release notes on the Github repository for specific details for the previous releases. Thank you!
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<p align="center">
# HubSpot Transformation dbt Package ([Docs](https://fivetran.github.io/dbt_hubspot/))

<p align="left">
<a alt="License"
href="https://github.com/fivetran/dbt_hubspot/blob/main/LICENSE">
<img src="https://img.shields.io/badge/License-Apache%202.0-blue.svg" /></a>
Expand All @@ -13,7 +15,6 @@
<img src="https://img.shields.io/badge/Fivetran_Quickstart_Compatible%3F-yes-green.svg" /></a>
</p>

# HubSpot Transformation dbt Package ([Docs](https://fivetran.github.io/dbt_hubspot/))
## What does this dbt package do?
- Produces modeled tables that leverage HubSpot data from [Fivetran's connector](https://fivetran.com/docs/applications/hubspot) in the format described by [this ERD](https://fivetran.com/docs/applications/hubspot#schemainformation) and build off the output of our [HubSpot source package](https://github.com/fivetran/dbt_hubspot_source).
- Enables you to better understand your HubSpot email and engagement performance. The package achieves this by performing the following:
Expand Down Expand Up @@ -41,8 +42,9 @@ The following table provides a detailed list of all tables materialized within t
| [hubspot__email_event_*](https://fivetran.github.io/dbt_hubspot/#!/model/model.hubspot.hubspot__email_event_bounce) | Each record represents an email event in Hubspot, joined with relevant tables to make them analysis-ready. |
| [hubspot__email_sends](https://fivetran.github.io/dbt_hubspot/#!/model/model.hubspot.hubspot__email_sends) | Each record represents a sent email in Hubspot, enriched with metrics about opens, clicks, and other email activity. |
| [hubspot__engagement_*](https://fivetran.github.io/dbt_hubspot/#!/model/model.hubspot.hubspot__engagement_calls) | Each record represents an engagement event in Hubspot, joined with relevant tables to make them analysis-ready. |

### Materialized Models
Each Quickstart transformation job run materializes 129 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
Each Quickstart transformation job run materializes 131 models if all components of this data model are enabled. This count includes all staging, intermediate, and final models materialized as `view`, `table`, or `incremental`.
<!--section-end-->

## How do I use the dbt package?
Expand Down Expand Up @@ -77,7 +79,7 @@ Include the following hubspot package version in your `packages.yml` file:
```yaml
packages:
- package: fivetran/hubspot
version: [">=0.20.0", "<0.21.0"] # we recommend using ranges to capture non-breaking changes automatically
version: [">=0.21.0", "<0.22.0"] # we recommend using ranges to capture non-breaking changes automatically

```
Do **NOT** include the `hubspot_source` package in this file. The transformation package itself has a dependency on it and will install the source package as well.
Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'hubspot'
version: '0.20.0'
version: '0.21.0'

config-version: 2
require-dbt-version: [">=1.3.0", "<2.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

47 changes: 10 additions & 37 deletions docs/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'hubspot_integration_tests'
version: '0.20.0'
version: '0.21.0'

profile: 'integration_tests'
config-version: 2
Expand All @@ -14,6 +14,7 @@ vars:
# hubspot__company_pass_through_columns:
# - name: "property_hs_all-funky-a9384-syntax"
# alias: "funky_field"

# hubspot_service_enabled: true # enable when generating docs
# hubspot_deal_enabled: true # enable when generating docs
# hubspot_contact_enabled: true # enable when generating docs
Expand All @@ -23,7 +24,8 @@ vars:
# hubspot_contact_merge_audit_enabled: true # enable when generating docs
# hubspot_using_all_email_events: true # enable when generating docs
# hubspot_merged_deal_enabled: true # enable when generating docs
# hubspot_ticket_deal_enabled: true # enable when generating docs
# hubspot_ticket_deal_enabled: true # enable when generating docs

hubspot_company_property_history_identifier: "company_property_history_data"
hubspot_company_identifier: "company_data"
hubspot_contact_identifier: "contact_data"
Expand Down Expand Up @@ -214,6 +216,7 @@ seeds:
+column_types:
property_closed_date: timestamp
property_createdate: timestamp
change_source_id: "{{ 'varchar(100)' if target.type in ('redshift','postgres') else 'string'}}"
ticket_property_history_data:
+column_types:
timestamp_instant: timestamp
Expand Down