Skip to content

Fix/closed conversations#81

Open
fivetran-jamie wants to merge 4 commits intomainfrom
fix/closed-conversations
Open

Fix/closed conversations#81
fivetran-jamie wants to merge 4 commits intomainfrom
fix/closed-conversations

Conversation

@fivetran-jamie
Copy link
Copy Markdown
Contributor

PR Overview

Package version introduced in this PR:

  • 1.7.0-a1

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

  • GA-1017667

Summary of changes:

  • Moves _fivetran_active filter to staging models when possible. The only _history table where I did not do this was conversation_part_history, as it maybe seems useful to look at the whole history in the intermediate models.
  • Limits total_conversations_closed to conversations where there was a customer message
    • Though this is how Intercom defines the metric, I am a little skeptical. Thus, I am including a testing-only column - total_conversations_closed_all that does not limit to conversations with customer messages

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

@fivetran-jamie fivetran-jamie marked this pull request as ready for review March 4, 2026 19:11

select count(distinct conversation_id) as stg_count
from {{ target.schema }}_intercom_dev.stg_intercom__conversation_history
where coalesce(_fivetran_active, true)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Since this filter is incorporated into the staging model


select *
from final
where coalesce(_fivetran_active, true) No newline at end of file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved the filter from the end model to here


select *
from final
where coalesce(_fivetran_active, true) No newline at end of file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Aligning with other tag_history models (example)


select *
from final
where coalesce(_fivetran_active, true) No newline at end of file
Copy link
Copy Markdown
Contributor Author

@fivetran-jamie fivetran-jamie Mar 4, 2026

Choose a reason for hiding this comment

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

This model isn't actually used downstream anywhere. Adding filter for consistency

select *
from final No newline at end of file
from final
where coalesce(_fivetran_active, true) No newline at end of file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved the filter from downstream model to here


select *
from final
where coalesce(_fivetran_active, true) No newline at end of file
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Aligning with other tag_history models (example)

@fivetran-jamie fivetran-jamie added the docs:ready Triggers the docs generator workflow. label Mar 4, 2026
@fivetran-jamie fivetran-jamie added the pre-release Triggers the auto-releaser workflow. label Mar 4, 2026
@fivetran-savage fivetran-savage added the status:stale Issue was blocked or had no user response for more than 30 days label Mar 25, 2026
@fivetran-jamie fivetran-jamie added the type:wontfix This will not be worked on label Mar 26, 2026
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. pre-release Triggers the auto-releaser workflow. status:stale Issue was blocked or had no user response for more than 30 days type:wontfix This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants