-
Notifications
You must be signed in to change notification settings - Fork 30
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
customers missing when running package on test data #19
Comments
Hi @leinemann thanks for opening this issue! The configuration could for sure exist to enable customer test data to run on the package. I am curious what the broader use case of using the test data is for? I am hesitant to add further configuration (especially as there is already more than I would like), but if it makes sense to apply this update for all customers then we can move forward with this feature request. Thanks! |
Thank you for looking into this! I wanted to share some context on the requirement. Our business wants the test customers shown in a parallel but very same way as the real customers. So for our setup we use the fivetran _test connector to get the test accounts (which all are livemode false) and then we apply this dbt package to get them into a _test analytics schema. This allows a segregated but yet like-for-like capture of test vs real customers all the way through the reporting. |
@leinemann i see -- so an ideal solution for you here would be to have the ability to run the package on only test customers vs only not-test customers, is that correct? in the PR i drafted, i made it so you can run on only not-test customers vs test AND not-test customers, which doesn't sound like what you're looking for |
Yes, I see it as the continuation of the ’Stripe test mode’ connector. It writes test data into our strip_test schema and equally I would like to run the stripe dbt packages to take this test data and create the analytics views with test data only which means that it needs to run also picking up livemode being false everywhere. So this means I'm running my strip dbt packages twice, the second time with stripe_test being the source. |
gotcha, sounds like we're on the same page then. curious -- when you run the package the second time on your test-only data, are there any other configurations you have to make to do so? like writing to a different schema, etc |
@leinemann this might be good to connect over in office hours! i'll be out next week but @fivetran-joemarkiewicz will be here 5tran.co/office-hours |
sorry about the late reply - yes, the second run for test data we run with some var overrides for the source and target schemata for the src and the other stripe package. The office hour link returns a 404 - could you please re-paste? |
Our apologies here is the proper link. As @fivetran-jamie is OOO this week I will be helping close this Issue out. I think I am understanding @leinemann that you would be happy with a variable that simply only brings in test customers when it is configured. We can very well do that! I did want to confirm with you that you only want the customer object to be filtered for test data, correct? I am aware that many other objects (charge, invoice, invoice_line, payment_intent, etc.) have a Happy to chat more over office hours |
Hi @fivetran-joemarkiewicz, the customer object was were we first noticed the challenge but I think it would make sense to have a property applied across the board. Let me schedule an office hour slot for the end of the week as I'm OOO as well at the moment. |
hey @leinemann if you're still down to do your own PR lmk if you need any help! hoping to release this before our sprint ends next wednesday |
Hey @fivetran-jamie! Yes, ok, great! I've forked the repo, created a |
@leinemann looks great! i would maybe suggest renaming the test-data boolean variable from |
ok, thanks @fivetran-jamie, what do you think about calling it what it is i.e. |
wahoo just pushed version 0.4.1 of the package, which includes your code @leinemann. thanks for opening the issue (and solving it 😄 ) |
😀 thanks for your support! |
Hi there, I would like to run this package on our stripe prod data aswell as the test data (using the fivetran test connector). I can override schema names accordingly. But test customers will never be pulled in because their livemode flag will be set to false. Would it be worth adding some configuration option to enable to run this package on test data?
Just wondering if there are some considerations that I'm not aware of?
many thanks,
Christoph.
The text was updated successfully, but these errors were encountered: