Skip to content
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

bug/renamed-columns-datespine #56

Merged
merged 4 commits into from
Jul 24, 2024
Merged

Conversation

fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Jul 23, 2024

PR Overview

This PR will address the following Issue/Feature:

  • T-707421

This PR will result in the following new package version:

  • v1.1.1 since this is a logic change and is a patch to the last release.

Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:

Bugfix

  • Updated the logic for model int_salesforce__date_spine to reference the stg_* staging models instead of the source tables.
    • This was necessary since the staging models account for multiple spellings of column names while the source tables do not.

PR Checklist

Basic Validation

Please acknowledge that you have successfully performed the following commands locally:

  • dbt run –full-refresh && dbt test
  • dbt run (if incremental models are present) && dbt test

Before marking this PR as "ready for review" the following have been applied:

  • The appropriate issue has been linked, tagged, and properly assigned
  • All necessary documentation and version upgrades have been applied
  • docs were regenerated (unless this PR does not include any code or yml updates)
  • BuildKite integration tests are passing
  • Detailed validation steps have been provided below

Detailed Validation

Please share any and all of your validation steps:

Making sure the issue is corrected

  1. Created seed table with column CreatedDate and without created_date.
  2. Reproduced the issue with the production package
  • Screenshot 2024-07-23 at 3 45 08 PM
  1. Corrected the issue with this update
  • Screenshot 2024-07-23 at 3 58 14 PM

Ensuring consistency between versions

  • Final model salesforce__daily_activity is downstream of the date spine.
  • Screenshot 2024-07-23 at 3 36 57 PM

If you had to summarize this PR in an emoji, which would it be?

🎏

@fivetran-catfritz fivetran-catfritz self-assigned this Jul 23, 2024
Comment on lines +1 to +5
{% if var('salesforce__lead_enabled', True) -%}
-- depends_on: {{ var('lead') }}
{% else -%}
-- depends_on: {{ var('opportunity') }}
{% endif %}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still necessary for dbt run. I tried running without it, and the error said to put it back. It's still not necessary for compilation, however.

Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fivetran-catfritz thanks for the quick resolution here! This change looks good to me. I just have one request to add an additional note to the CHANGELOG; however, that doesn't need to be blocking the review - as long as it is applied before the release review is initiated. Thanks!

[PR #56](https://github.com/fivetran/dbt_salesforce/pull/56) includes the following updates:
## Bugfix
- Updated the logic for model `int_salesforce__date_spine` to reference the `stg_*` staging models instead of the source tables.
- This was necessary since the staging models account for multiple spellings of column names while the source tables do not.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add either another bullet here or an under the hood entry that now that model has a depends on statement and also leverages the flags.WHICH. More for our purposes so we know how this issue was addressed and some underlying impacts.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated!

@fivetran-catfritz fivetran-catfritz merged commit bd88214 into main Jul 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants