fivetran / dbt_shopify

Fivetran's Shopify dbt package
https://fivetran.github.io/dbt_shopify/
Apache License 2.0
52 stars 40 forks source link

feature/shopify-api-updates #61

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 and Issue #67

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

This is not technically a breaking change, but due to the upstream changes in the source, this is considered breaking.

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

These changes are made breaking due to changes in the source.

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
model field removed
shopify__customer lifetime_duration
shopify__customer_emails lifetime_duration
shopify__order_lines fulfillment_service
shopify__order_lines destination_location_* fields
shopify__order_lines origin_location_* fields
shopify__orders total_price_usd
shopify__orders processing_method

Documentation Updates

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 from the source package and then made similar adjustments to this package. I then ran the models and confirmed the fields were no longer present and that no errors resulted from the removal of the upstream fields in the downstream models. 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
  1. See notes in the shopify source PR

  2. Also, should we remove variant_fulfillment_service from shopify__order_lines and shopify__inventory_levels , if that fulfillment_services field gets removed from the upstream product_variant model.

  3. Finally, I'm noticing no models are showing up under files changed, for the ones with fields that are supposed to be removed. But I don't see the to-be removed fields in those models on this branch anyways... I must be missing something? image

fivetran-joemarkiewicz commented 1 year ago
  1. See notes in the shopify source PR
  1. Also, should we remove variant_fulfillment_service from shopify__order_lines and shopify__inventory_levels , if that fulfillment_services field gets removed from the upstream product_variant model.
  1. Finally, I'm noticing no models are showing up under files changed, for the ones with fields that are supposed to be removed. But I don't see the to-be removed fields in those models on this branch anyways... I must be missing something?
fivetran-reneeli commented 1 year ago

Thanks for explaining!

One last thing is I still don't see the shopify_using_shop_metafields bit in the readme

fivetran-joemarkiewicz commented 1 year ago

Thanks for explaining!

One last thing is I still don't see the shopify_using_shop_metafields bit in the readme

@fivetran-reneeli the metafield section is here

fivetran-reneeli commented 1 year ago

Got it! Ok, looks good to go