Skip to content

feat: add article, collection, and help_center models#74

Merged
fivetran-jamie merged 27 commits intomainfrom
feature/article-models
Dec 15, 2025
Merged

feat: add article, collection, and help_center models#74
fivetran-jamie merged 27 commits intomainfrom
feature/article-models

Conversation

@fivetran-catfritz
Copy link
Contributor

@fivetran-catfritz fivetran-catfritz commented Dec 11, 2025

PR Overview

Package version introduced in this PR:

  • v1.4.0

This PR addresses the following Issue/Feature(s):

Summary of changes:

Data Model(s) Change type Old New Notes
stg_intercom__article_history
stg_intercom__article_history_tmp
New models Staging models for the article_history source
stg_intercom__collection_history
stg_intercom__collection_history_tmp
New models Staging models for the collection_history source
stg_intercom__help_center_history
stg_intercom__help_center_history_tmp
New models Staging models for the help_center_history source
intercom__article_enhanced New model Help center articles enhanced with metadata including author details, collection hierarchy, and performance statistics

Submission Checklist

  • Alignment meeting with the reviewer (if needed)
    • Timeline and validation requirements discussed
  • Provide validation details:
    • Validation Steps: Check for unintentional effects (e.g., add/run consistency & integrity tests)
    • Testing Instructions: Confirm the change addresses the issue(s)
    • Focus Areas: Complex logic or queries that need extra attention
  • Merge any relevant open PRs into this PR

Changelog

  • Draft changelog for PR
  • Final changelog for release review

* feat: add article, collection, and help_center models

* add changelog and verions updates

* Update CHANGELOG.md

* updating final model

* updating final model

* updating version feedback

* updating per PR feedback to move intermediate model to final
@fivetran-catfritz fivetran-catfritz self-assigned this Dec 11, 2025
@fivetran-catfritz fivetran-catfritz linked an issue Dec 11, 2025 that may be closed by this pull request
4 tasks
@fivetran-catfritz fivetran-catfritz changed the title feat: add article, collection, and help_center models (#73) feat: add article, collection, and help_center models Dec 11, 2025
@fivetran-catfritz fivetran-catfritz added the docs:ready Triggers the docs generator workflow. label Dec 11, 2025
@fivetran-catfritz fivetran-catfritz added docs:ready Triggers the docs generator workflow. and removed docs:ready Triggers the docs generator workflow. labels Dec 11, 2025
@fivetran-catfritz fivetran-catfritz added docs:ready Triggers the docs generator workflow. and removed docs:ready Triggers the docs generator workflow. labels Dec 11, 2025
@fivetran-catfritz fivetran-catfritz added docs:ready Triggers the docs generator workflow. and removed docs:ready Triggers the docs generator workflow. labels Dec 11, 2025
Copy link
Contributor

@fivetran-jamie fivetran-jamie left a comment

Choose a reason for hiding this comment

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

Looks great! Left a couple of targeted comments, but I also wanted to discuss the larger question of creating specific variables for collection_history and help_center_history, especially with the context of ERTC coming soon.

Pre-ERTC: With the current setup, we'll create empty models for collection_history and help_center_history if they are missing but article_history is present. These tables are less popular, so this could happen.

Post-ERTC: With the current setup, if collection_history or help_center_history is missing but article_history is not, the Article model will be disabled. Should this be the case? If not, we should create variables. We could still include intercom__using_articles in the enabled conditions since these tables aren't really helpful without articles

fivetran-catfritz and others added 2 commits December 12, 2025 15:08
Co-authored-by: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com>
Copy link
Contributor Author

@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-jamie I made the changes and added the vars. I'm not sure about how I set up the staging vars though.

@fivetran-catfritz fivetran-catfritz removed the docs:ready Triggers the docs generator workflow. label Dec 12, 2025
Copy link
Contributor

@fivetran-jamie fivetran-jamie left a comment

Choose a reason for hiding this comment

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

Looks great! I like the way you set up the variables -- it's very much optimized for how they relate to each other. Just two doc requests, but this is approved!

I think a release review would be good here though. I can handle any making any adjustments and releasing on Monday!

dbt run --vars '{intercom__using_articles: false, intercom__using_contact_company: false, intercom__using_company_tags: false, intercom__using_contact_tags: false, intercom__using_conversation_tags: false, intercom__using_team: false}' --target "$db"
dbt test --target "$db" --vars '{intercom__using_articles: false,intercom__using_contact_company: false, intercom__using_company_tags: false, intercom__using_contact_tags: false, intercom__using_conversation_tags: false, intercom__using_team: false}'
dbt test --target "$db" --vars '{intercom__using_articles: false, intercom__using_contact_company: false, intercom__using_company_tags: false, intercom__using_contact_tags: false, intercom__using_conversation_tags: false, intercom__using_team: false}'
# only need to test intercom__article_enhanced and its upstreams for these vars:
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice, we should do this more when testing variables

CHANGELOG.md Outdated
| `stg_intercom__article_history`<br>`stg_intercom__article_history_tmp` | New models | | | Staging models for the `article_history` source |
| `stg_intercom__collection_history`<br>`stg_intercom__collection_history_tmp` | New models | | | Staging models for the `collection_history` source |
| `stg_intercom__help_center_history`<br>`stg_intercom__help_center_history_tmp` | New models | | | Staging models for the `help_center_history` source |
| `intercom__article_enhanced` | New model | | | Help center articles enhanced with metadata including author details, collection hierarchy, and performance statistics |
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you move this one to be the first line?

@fivetran-catfritz fivetran-catfritz added the docs:ready Triggers the docs generator workflow. label Dec 12, 2025
github-actions bot and others added 5 commits December 12, 2025 22:58
Co-authored-by: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com>
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.

LGTM

@fivetran-jamie fivetran-jamie merged commit 074c27d into main Dec 15, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs:ready Triggers the docs generator workflow.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Add article support

4 participants