fivetran / dbt_stripe_source

Fivetran's Stripe source dbt package
https://fivetran.github.io/dbt_stripe_source/
Apache License 2.0
8 stars 27 forks source link

Contributor/fee test update #65

Closed fivetran-joemarkiewicz closed 1 year ago

fivetran-joemarkiewicz commented 1 year ago

PR Overview

This PR will address the following Issue/Feature: #63

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

This is only changing the uniqueness test of the stg_stripe__fee model. Additionally, as this model is not used in any downstream transformations, I feel extra confident that this will not result in 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 is an extension of the contributor PR #64

This PR includes a new field index being added to the stg_stripe__fee model. This field was already included in the get_fee_columns macro and the seed files. As such, this was a relatively easy addition to the staging model. This field was primarily added to ensure we can appropriately test the unique combination of columns for the fee staging model. As a fee can have multiple indexes, we need to account for this accordingly within our package.

Additionally, you can see in our own Stripe ERD that index is included in the composite PK. As such, we should account for this accordingly. image

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

In addition to running the compile, run, and test commands, I also tested these changes along with the current live version of the dbt_stripe package to ensure there would be no downstream impacts. As the stg_stripe__fee model is not connected to any downstream models, I am very confident this will not caused any issues. Additionally, I was able to verify from the docs and our own ERD that index should in fact be counted towards the uniqueness of the fee staging model.

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?

🐾