-
Notifications
You must be signed in to change notification settings - Fork 4
[Bug Fix] Bring back fivetran_deleted
for gl_detail
models
#20
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
Conversation
CHANGELOG.md
Outdated
|
||
## Breaking Changes (`--full-refresh` required) | ||
- Reintroduced `_fivetran_deleted` from the `gl_detail` source table, as the field was not fully deprecated within in the connector. | ||
It is null in normal incremental syncs, but can populate true in historical resyncs. |
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.
It is null in normal incremental syncs, but can populate true in historical resyncs. | |
**It is null in normal incremental syncs, but can populate true (or false) in historical resyncs.** |
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.
CHANGELOG.md
Outdated
## Breaking Changes (`--full-refresh` required) | ||
- Reintroduced `_fivetran_deleted` from the `gl_detail` source table, as the field was not fully deprecated within in the connector. | ||
It is null in normal incremental syncs, but can populate true in historical resyncs. | ||
- This ensures the general ledger models in the downstream `dbt_sage_intacct` transform package excludes deleted records from `stg_sage_intacct__gl_detail`. |
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 ensures the general ledger models in the downstream `dbt_sage_intacct` transform package excludes deleted records from `stg_sage_intacct__gl_detail`. | |
- This ensures the general ledger models in the downstream `dbt_sage_intacct` transform package exclude deleted records from `stg_sage_intacct__gl_detail`. |
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.
models/stg_sage_intacct.yml
Outdated
@@ -413,6 +413,10 @@ models: | |||
description: When transaction is modified | |||
- name: paid_at | |||
description: When transaction was paid | |||
- name: _fivetran_deleted |
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.
- name: _fivetran_deleted | |
- name: is_detail_deleted |
We should also update the analogous is_batch_deleted
column in the staging gl_batch
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.
Updated.
models/stg_sage_intacct.yml
Outdated
description: The timestamp of when the data was deleted by Fivetran. Although the `_fivetran_deleted` column is no | ||
longer being actively synced in incremental runs in the connector in `gl_detail`, | ||
it can populate with `true/false` values in historical resyncs. |
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.
Something more like this
description: The timestamp of when the data was deleted by Fivetran. Although the `_fivetran_deleted` column is no | |
longer being actively synced in incremental runs in the connector in `gl_detail`, | |
it can populate with `true/false` values in historical resyncs. | |
description: Boolean field indicating whether the record was deleted. Due to source limitations, this field is currently populated with `nulls` in incremental syncs in Fivetran. In historical resyncs, it may be populated with `true` or `false`. |
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 apply the same update to the description of stg_sage_intacct__gl_batch._fivetran_deleted
(which should be renamed to is_batch_deleted there)
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.
Oh could you also update the descriptions in the source yml?
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.
Wasn't this behavior just for gl_detail
? or was it for other models like gl_batch
as well?
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.
Confirmed. Did update the _fivetran_deleted
descriptions to reference them as booleans rather than timestamps.
CHANGELOG.md
Outdated
# dbt_sage_intacct_source v0.4.0 | ||
[PR #20](https://github.com/fivetran/dbt_sage_intacct_source/pull/20) includes the following updates: | ||
|
||
## Breaking Changes (`--full-refresh` required) |
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.
## Breaking Changes (`--full-refresh` required) | |
## Breaking Changes |
The package doesn't actually have any incremental 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.
Updated.
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-jamie 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.
lgtm
PR Overview
This PR will address the following Issue/Feature: Internal ticket
This PR will result in the following new package version: v0.4.0
Bringing back in a new field.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Breaking Changes (
--full-refresh
required)_fivetran_deleted
from thegl_detail
source table, as the field was not fully deprecated within in the connector.It is null in normal incremental syncs, but can populate true in historical resyncs.
dbt_sage_intacct
transform package excludes deleted records fromstg_sage_intacct__gl_detail
._fivetran_deleted
to:is_batch_deleted
instg_sage_intacct__gl_batch
is_detail_deleted
instg_sage_intacct__gl_detail
int_sage_intacct__active_gl_detail
in thedbt_sage_intacct
package.Under the Hood
gl_detail
yml and seed files with_fivetran_deleted
documentation and records for testing.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:
See transform package
If you had to summarize this PR in an emoji, which would it be?
🧪