-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add created_at
and updated_at
fields
#146
Conversation
created_at
and updated_at
fields
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.
@fivetran-avinash this is looking great! I just have a few small requests and one small question before approving.
CHANGELOG.md
Outdated
- `created_at`: The time a transaction was first created. | ||
- `updated_at`: The time a transaction was last updated. | ||
- This required updates to all our double entry transaction models to bring in these specific fields for each transaction type. | ||
- This isn't necessarily a breaking change, but as this introduces new fields to an end model, we determined it was best to bump the version up. |
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.
This is an unnecessary bullet in the CHANGELOG. Let's remove it as this really doesn't pertain to the customer.
- This isn't necessarily a breaking change, but as this introduces new fields to an end model, we determined it was best to bump the version up. |
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.
Removed
integration_tests/dbt_project.yml
Outdated
@@ -1,6 +1,6 @@ | |||
name: 'quickbooks_integration_tests' | |||
|
|||
version: '0.16.0' | |||
version: '0.17.0' |
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.
Not related to this change, but why do we specify the materialization of so many specific types of models in the models
section? I worry we could be masking errors by changing the materialization of the default package.
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.
This must be an artifact from testing on seed data. Removing from the actual model.
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.
@fivetran-joemarkiewicz This is ready for re-review.
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.
LGTM
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.
@fivetran-avinash a couple comments/questions!
CHANGELOG.md
Outdated
[PR #146](https://github.com/fivetran/dbt_quickbooks/pull/146) introduces the following updates: | ||
|
||
## Breaking Changes | ||
- We have introduced the following fields in the `quickbooks__general_ledger` to better analyze real-time transaction data: |
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.
- We have introduced the following fields in the `quickbooks__general_ledger` to better analyze real-time transaction data: | |
- Introduced the following fields in the `quickbooks__general_ledger` model to better analyze real-time transaction data: |
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.
Committed!
CHANGELOG.md
Outdated
- `created_at`: The time a transaction was first created. | ||
- `updated_at`: The time a transaction was last updated. | ||
- This required updates to all our double entry transaction models to bring in these specific fields for each transaction type. | ||
- This is a breaking change as this adds new fields to the existing schema for one of our end models. |
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.
- This is a breaking change as this adds new fields to the existing schema for one of our end models. | |
- This is a breaking change as this adds new fields to the existing schema. |
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.
Changed.
CHANGELOG.md
Outdated
- We have introduced the following fields in the `quickbooks__general_ledger` to better analyze real-time transaction data: | ||
- `created_at`: The time a transaction was first created. | ||
- `updated_at`: The time a transaction was last updated. | ||
- This required updates to all our double entry transaction models to bring in these specific fields for each transaction type. |
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.
- This required updates to all our double entry transaction models to bring in these specific fields for each transaction type. | |
- Updated the `*_double_entry` models to add these fields for each transaction type. |
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.
Updated.
revenue_starter as ( | ||
|
||
select | ||
period_first_day, | ||
source_relation, | ||
sum(case when account_class = 'Revenue' then period_net_change else 0 end) as revenue_net_change, | ||
sum(case when account_class = 'Revenue' then period_net_converted_change else 0 end) as revenue_net_converted_change, | ||
sum(case when account_class = 'Expense' then period_net_change else 0 end) as expense_net_change, | ||
sum(case when account_class = 'Expense' then period_net_converted_change else 0 end) as expense_net_converted_change | ||
sum(period_net_change) as revenue_net_change, | ||
sum(period_net_converted_change) as revenue_net_converted_change | ||
from general_ledger_balances | ||
|
||
where account_class = 'Revenue' | ||
|
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.
Can you explain these changes in the changelog? It's just not obviously related to the created/update_at if it's part of those changes.
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.
Good call out. These changes are from the pre-release of this package that went out last week, but is not currently live to customers in an actual release. However this was accidentally merged to main
, instead of onto its own branch.
So I'm not certain if we should call out changes that aren't live in our latest release, since to their eyes, nothing will change, even if there are changes currently contained in main
itself.
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.
Got it. I'll leave it to your judgement!
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.
@fivetran-catfritz Addressed your comments!
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.
@fivetran-avinash lgtm!
PR Overview
This PR will address the following Issue/Feature: [#144]
This PR will result in the following new package version: v0.17.0
Although this should not impact the existing fields, the general ledger model now is different, so I decided to bump it up. I'm open to moving it back down to 0.16.1 if we don't feel the change is significant enough.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Feature Updates
quickbooks__general_ledger
.created_at
: The time a transaction was first created.updated_at
: The time a transaction was last updated.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 share any and all of your validation steps:
Confirmed that
created_at
andupdated_at
are brought into the general ledger model.Validation tests passed with integration tests seed data.
If you had to summarize this PR in an emoji, which would it be?
⌛