-
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
update uniqueness test #74
Changes from 3 commits
c6a1ae0
ff16898
e787d29
668a851
c3821d8
856c775
02b4c77
fcaf58b
b147150
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -486,6 +486,11 @@ models: | |
- invoice_line_item_id | ||
- invoice_id | ||
- source_relation | ||
- dbt_utils.unique_combination_of_columns: | ||
combination_of_columns: | ||
- unique_invoice_line_item_id | ||
- invoice_id | ||
- source_relation | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this necessary? Wouldn't it make more sense to include There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually, do we even need to include this in the test? It seems the original unique combination of columns test is passing just fine. Since the unique_id is an artifact of an older Stripe API, should we just remove the test on that field altogether? It seems like testing on invoice_id and invoice_line_id is sufficient. What are your thoughts? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah I see, keep the existing unique test on the combination of Given that, a good compromise could be your first suggestion, adding There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I would not create a new test in this release. I would prefer we remove the failing one and then either not test the This may be a hot take, but I would actually recommend we don't include the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As per internal discussion with team, will remove the uniqueness test from unique_id entirely. Will see if any changes are needed on the connector end. |
||
columns: | ||
- name: invoice_line_item_id | ||
description: Unique identifier for the object. Note that the same line item can be shown across different invoices, so this value can appear multiple times. | ||
|
@@ -519,8 +524,6 @@ models: | |
description: A string identifying the type of the source of this line item, either an invoice item or a subscription. | ||
- name: unique_invoice_line_item_id | ||
description: A unique id generated for old invoice line item ID's from a past version of the API | ||
tests: | ||
- unique | ||
- name: period_start | ||
description: Start of the usage period during which invoice items were added to this invoice. | ||
- name: period_end | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Request to update this based on feedback from the test updates.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally, is there a reason this is listed as a breaking change? If it is a breaking change, we will need to bump the version to v0.12.0 and also make a breaking change downstream in the dbt_stripe package.
I am not entirely sure a breaking change is needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes update based on above! And true, I changed this to a bugfix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to make the appropriate updates here based on the other comment.