You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a number of our end models we convert the numerical fields from cents to the whole dollar value. This is appropriate as the data from the Stripe source is synced in cents. However, we are not consistent in this conversion throughout the package. Instead we should apply these conversions at the source package level and allow these conversions to persist downstream instead of applying them inconsistently within the end models.
How would you implement this feature?
Apply these conversions at the source package and staging model levels
Describe alternatives you've considered
Apply these conversions within the end models. Not ideal and is the current state.
Are you interested in contributing this feature?
Yes.
Yes, but I will need assistance.
No.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Upon review of this issue the plan should be as follows. Update the below fields within the respective staging models in the dbt_stripe_source package to convert from cents to dollar. The conversion should resemble the following:
From my initial scoping it seems that all amount type fields (eg. amount, fee, charge, refund_amount, net, etc.) will require this conversion out of cents. Please review every staging model and the Stripe ERD to identify all the fields that will require this update.
Once the updates have been made at the staging level, we will need to update any downstream models in this package that convert these values in the end models (such as within stripe__customer_overview). In the end we will expect to have all the conversions out of cents to be performed at the staging model level and all downstream models will not need to apply this conversion.
Please note, this will be considered a breaking change at the source package level. As a result, we will also need to make this package a breaking change to reference the new version of the source package along with the changes for this package.
Is there an existing feature request for this?
Describe the Feature
In a number of our end models we convert the numerical fields from cents to the whole dollar value. This is appropriate as the data from the Stripe source is synced in cents. However, we are not consistent in this conversion throughout the package. Instead we should apply these conversions at the source package level and allow these conversions to persist downstream instead of applying them inconsistently within the end models.
How would you implement this feature?
Apply these conversions at the source package and staging model levels
Describe alternatives you've considered
Apply these conversions within the end models. Not ideal and is the current state.
Are you interested in contributing this feature?
Anything else?
No response
The text was updated successfully, but these errors were encountered: