Closed marie-aircall closed 2 years ago
Hi @marie-aircall thanks so much for raising this issue.
It definitely seems we did not update the test for this model appropriately once we added the admin_team
support for this model. Before we move forward with implementing a fix, I wanted to ensure the granularity of the intercom__admin_team
model is still appropriate per your understanding with the addition of the admin_team.
The new model description would be the below:
Each record represents an admin (employee) and a unique team they are assigned on, enriched with admin specific conversation aggregates. For example, the admin's total conversations, average rating, and median response times by specific team.
Let me know if you have any issues with this new model description and granularity.
Hi Joe,
Thanks a lot for your response! This sounds good to me 👌
hi @marie-aircall -- i've added a fix that should dynamically include team_id
(with admin_id
) in uniqueness tests for the admin metrics model. could you confirm that this branch works for ya?
# packages.yml
packages:
- git: https://github.com/fivetran/dbt_intercom.git
revision: bug/admin-tests
@marie-aircall just merged and released the above branch if you'd still like to test it out! the branch is still up
Are you a current Fivetran customer? Yes, I am a Data Analyst at Aircall.
Describe the bug Unicity test on admin_id fails when refreshing the intercom__admin_metrics model due to duplicates caused by admins part of more than 1 team.
Steps to reproduce
Failure in test unique_intercom__admin_metrics_admin_id (models/intercom.yml)
Expected behavior No fail.
Project variables configuration
Package Version
Warehouse
- [ ] BigQuery - [x] Redshift - [ ] Snowflake - [ ] Postgres - [ ] Databricks - [ ] Other (provide details below) **Additional context** No **Screenshots** **Please indicate the level of urgency** Impacting us as we cannot refresh any of our Intercom models due to this error. **Are you interested in contributing to this package?**