fivetran / dbt_shopify_source

Fivetran's Shopify source dbt package
https://fivetran.github.io/dbt_shopify_source/
Apache License 2.0
29 stars 22 forks source link

Feature/shopify api updates #70

Closed fivetran-joemarkiewicz closed 1 year ago

fivetran-joemarkiewicz commented 1 year ago

PR Overview

This PR will address the following Issue/Feature: Issue #60, Issue #67, and Issue #66

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

This will be a breaking change due to the removal of fields from the staging models. Customers who previously relied on these fields will no longer be able to leverage them. This was done to be in line with the connector API updates for Shopify.

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

model field removed
stg_shopify__customer lifetime_duration
stg_shopify__order_line fulfillment_service
stg_shopify__order_line destination_location_* fields
stg_shopify__order_line origin_location_* fields
stg_shopify__order total_price_usd
stg_shopify__order processing_method

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

Not much validation was needed for these changes. I used the release notes as the basis for what fields were being deprecated. I then removed these fields from the staging models, macros, and yml documentation. Ran the models and confirmed the fields were no longer present. No further validation was necessary per my opinion.

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-reneeli commented 1 year ago

Hi @fivetran-joemarkiewicz just reviewed, please see the below:

  1. I'm wondering if not all deprecated fields were removed. For example, I noticed fulfillment_service is still in product_variant, though that field in product_variant object is no longer provided in their API. Do we need to remove it in that corresponding model and its ymls as well? I mean, I do still see it in the schema that was provided, but that schema also still has fulfillment_service in order_line, which was removed.

  2. Still on topic of product_variant, I see that this issue mentioned that title also needs to be removed.

  3. The changelog mentions shopify_using_shop_metafields added to the readme but I'm not seeing it? Nor do I see a Adding Metafields section

fivetran-joemarkiewicz commented 1 year ago

Hey @fivetran-reneeli thanks for reviewing, see my responses below:

I'm wondering if not all deprecated fields were removed. For example, I noticed fulfillment_service is still in product_variant, though that field in product_variant object is no longer provided in their API. Do we need to remove it in that corresponding model and its ymls as well?

Still on topic of product_variant, I see that this https://github.com/fivetran/dbt_shopify/issues/60 mentioned that title also needs to be removed.

The changelog mentions shopify_using_shop_metafields added to the readme but I'm not seeing it? Nor do I see a Adding Metafields section

fivetran-reneeli commented 1 year ago

Thanks for clarifying Joe! Just had one more comment ^

fivetran-joemarkiewicz commented 1 year ago

Thanks @fivetran-reneeli! Just updated and marked for re-review.

fivetran-reneeli commented 1 year ago

You might need to regen docs again but other than that, looks good pending buildkite 👍