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/product inventory api update #94

Merged
merged 14 commits into from
Jan 7, 2025

Conversation

fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Dec 20, 2024

PR Overview

This PR will address the following Issue/Feature:

This PR will result in the following new package version:

  • v0.15.0 breaking due to schema changes

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

  • Due to length, see changelog here.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates)
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

  • See internal validation

If you had to summarize this PR in an emoji, which would it be?

💃

@fivetran-catfritz fivetran-catfritz self-assigned this Dec 20, 2024
packages.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fivetran-catfritz great work on this PR! I have just a few small comments and also waiting on a final response from eng regarding one last change and testing on a connector with updates. This will be ready for approval after these small changes are provided and we can test on an up to date connector.

CHANGELOG.md Outdated
Comment on lines 7 to 8
- `unit_cost_amount`
- `unit_cost_currency_code`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should explicitly callout that these are replacing what used to be just cost. Can you be sure to call this out in the CHANGELOG.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If that's still the case given the Height ticket and this maybe being different now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

CHANGELOG.md Outdated
- Additionally, new columns were added in the upstream package. For more details, see the [dbt_shopify_source v0.14.0 release notes](https://github.com/fivetran/dbt_shopify_source/releases/tag/v0.14.0).

## Documentation
- Marked the following columns as deprecated in the documentation. These will be removed in a future release:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also mention that these will be null following the connector update and the customer will expect as such until we full remove them from the package.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Copy link
Contributor Author

@fivetran-catfritz fivetran-catfritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @fivetran-joemarkiewicz! Made the changes, and it's ready for re-review.

CHANGELOG.md Outdated
Comment on lines 7 to 8
- `unit_cost_amount`
- `unit_cost_currency_code`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

CHANGELOG.md Outdated
- Additionally, new columns were added in the upstream package. For more details, see the [dbt_shopify_source v0.14.0 release notes](https://github.com/fivetran/dbt_shopify_source/releases/tag/v0.14.0).

## Documentation
- Marked the following columns as deprecated in the documentation. These will be removed in a future release:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fivetran-catfritz thanks for these updates! I have a few final documentation change requests, but nothing to stop the approval of this PR. I do have some requests in the source, but once that is resolve this should be good to go. Approved the transform!

CHANGELOG.md Outdated
Comment on lines 27 to 48
## Documentation
- Marked the following columns as deprecated in the documentation. These columns will return `null` values following the connector update, and customers should expect this behavior until the columns are fully removed in a future release.
- `shopify__inventory_levels`:
- `available_quantity`
- `is_shipping_required`
- `variant_fulfillment_service`
- `variant_grams`
- `variant_inventory_management`
- `variant_option_1`
- `variant_option_2`
- `variant_option_3`
- `variant_weight`
- `variant_weight_unit`
- `shopify__order_lines`:
- `variant_fulfillment_service`
- `variant_grams`
- `variant_inventory_management`
- `variant_option_1`
- `variant_option_2`
- `variant_option_3`
- `variant_weight`
- `variant_weight_unit`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These deprecated columns should be highlighted in the breaking change notes as well since they will no only populate null values. We can probably keep the same wording as you have here, but I would prefer we include this in the breaking change notes so customers make sure to be aware of these deprecations.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

CHANGELOG.md Outdated
Comment on lines 6 to 9
- `shopify__inventory_levels`:
- `cost` replaced with:
- `unit_cost_amount`
- `unit_cost_currency_code`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we actually have the cost removal be it's own entry. This way we really call attention to this as it's the only field which is being fully removed in this version. Let's make it the first entry under the breaking changes. Then we can have a section for additions and then deprecations after.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-avinash fivetran-avinash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one suggestion!

fivetran-catfritz and others added 2 commits January 7, 2025 14:43
Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com>
@fivetran-catfritz fivetran-catfritz merged commit 35b21ab into main Jan 7, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Update Product and Inventory models following support of the GraphQL API update
3 participants