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

feature/click-uri-updates #38

Merged
merged 7 commits into from
Dec 16, 2024
Merged

Conversation

fivetran-joemarkiewicz
Copy link
Contributor

@fivetran-joemarkiewicz fivetran-joemarkiewicz commented Sep 13, 2024

PR Overview

This PR will address the following Issue/Feature: Issue #35 and Issue #30

This PR will result in the following new package version: v0.10.0

This will be a breaking change do to the addition of the new click_uri_type field and changes to the underlying click_uri field.

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

Breaking Changes

  • The click_uri_type field has been added to the below mentioned models. This field allows users to differentiate which click uri type (text_ad or spotlight) is being used to populate the results of the click_uri field. Please be aware this field only supports text_ad or spotlight click uri types. If you are interested in this package supporting more click uri ad types, please let us know in this Feature Request.
    • stg_linkedin_ads__creative_history
    • linkedin_ads__creative_report
    • linkedin_ads__url_report

Bug Fixes (upstream dbt_linkedin_source change)

  • The click_uri field has been adjusted to populate the results following a coalesce on the text_ad_landing_page, spotlight_landing_page, or click_uri fields. For more details refer to dbt_linkedin_source v0.10.0 release notes.

Documentation Updates

  • The click_uri field documentation has been updated to reflect the updated state of the field.
  • Included a new DECISIONLOG.md entry to highlight why it's possible metrics don't add up across different grains.

Under the Hood

  • Updates to the linkedin_creative_history_data seed file to include the following new fields to ensure accurate data validation tests:
    • text_ad_landing_page
    • spotlight_landing_page

PR Checklist

Basic Validation

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

  • dbt run –full-refresh && dbt test
  • [n/a] 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:

Please see successful validation test results below:
image

In addition to the validations succeeding above, I was able to confirm the new click_uri_type field is populating as expected. See the results below using our seed data.

  • linkedin_ads__creative_report you can see for relevant creatives that the click_uri and click_uri_type fields are populating as expected.
    • image
  • linkedin_ads__url_report you can see for all records that the click_uri and click_uri_type fields are populating as expected. In this screenshot we can see that the http://www.github.com click_uri is showing a null uri type. This is expected because as we know from the seed data, the http://www.github.com click_uri data is populated from the now deprecated click_uri field from the source package. This should appropriately not have a click_uri_type. Only the now supported text_ad and spotlight types should populate.
    • image

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

🔗

packages.yml Outdated
Comment on lines 2 to 6
# version: [">=0.10.0", "<0.11.0"]
- git: https://github.com/fivetran/dbt_linkedin_source.git
revision: feature/click-uri-deprecation
warn-unpinned: false
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update before merge and release.

Copy link
Contributor

@fivetran-reneeli fivetran-reneeli left a comment

Choose a reason for hiding this comment

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

Looks good with just one question!

models/linkedin.yml Show resolved Hide resolved
Copy link
Contributor

@fivetran-avinash fivetran-avinash left a comment

Choose a reason for hiding this comment

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

@fivetran-joemarkiewicz PR approved, with standard reminder to update packages.yml

Copy link
Contributor

@fivetran-catfritz fivetran-catfritz left a comment

Choose a reason for hiding this comment

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

@fivetran-joemarkiewicz I was able to run the package updates and see that the click_uri coalesce is working properly, and the click_uri_type is populated correctly. I also tested the partitioning and source_relation logic, and that is compiling correctly. LGTM!

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Contributor

@fivetran-avinash fivetran-avinash left a comment

Choose a reason for hiding this comment

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

One small suggestion but otherwise LGTM!

Co-authored-by: Avinash Kunnath <[email protected]>
packages.yml Outdated Show resolved Hide resolved
@fivetran-joemarkiewicz fivetran-joemarkiewicz merged commit 15e32ce into main Dec 16, 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.

4 participants