feat: add article, collection, and help_center models#74
feat: add article, collection, and help_center models#74fivetran-jamie merged 27 commits intomainfrom
Conversation
* 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
…dbt_intercom into feature/article-models merge
…dbt_intercom into feature/article-models merge again
…dbt_intercom into feature/article-models merge
fivetran-jamie
left a comment
There was a problem hiding this comment.
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
Co-authored-by: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com>
fivetran-catfritz
left a comment
There was a problem hiding this comment.
@fivetran-jamie I made the changes and added the vars. I'm not sure about how I set up the staging vars though.
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 | |
There was a problem hiding this comment.
Could you move this one to be the first line?
…dbt_intercom into feature/article-models merge
Co-authored-by: Jamie Rodriguez <65564846+fivetran-jamie@users.noreply.github.com>
PR Overview
Package version introduced in this PR:
This PR addresses the following Issue/Feature(s):
Summary of changes:
stg_intercom__article_historystg_intercom__article_history_tmparticle_historysourcestg_intercom__collection_historystg_intercom__collection_history_tmpcollection_historysourcestg_intercom__help_center_historystg_intercom__help_center_history_tmphelp_center_historysourceintercom__article_enhancedSubmission Checklist
Changelog