fivetran / dbt_hubspot

Data models for Hubspot built using dbt.
https://fivetran.github.io/dbt_hubspot/
Apache License 2.0
33 stars 39 forks source link

Merged deals #135

Closed fivetran-reneeli closed 8 months ago

fivetran-reneeli commented 8 months ago

PR Overview

This PR will address the following Issue/Feature: https://github.com/fivetran/dbt_hubspot/issues/134

This PR will result in the following new package version: 0.16.0

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

We are adding logic to merge stale deals into the correct active deals based on the merged_deal table. This consists of 1. removing stale deals from the final deal models and 2. addition of a new field that lists all the merged deals per each active deal.

In addition we are adding back unique tests that we previously removed in #118 , using the dbt unique test config

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

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?

:dancer:
fivetran-reneeli commented 8 months ago
  1. should we add the same unique test logic here since there is a is_ticket_deleted field

  2. see my other comments

fivetran-reneeli commented 8 months ago
fivetran-joemarkiewicz commented 8 months ago

@fivetran-reneeli additionally I am now seeing a large number of test failures when running dbt test. Do you see these on your end as well?

image

fivetran-reneeli commented 8 months ago

Hi @fivetran-joemarkiewicz , I tried dbt test again and now I'm seeing the tests all pass, and compiling as expected...

image