Coder Social home page Coder Social logo

Comments (7)

fivetran-joemarkiewicz avatar fivetran-joemarkiewicz commented on June 8, 2024

Hi @gui-brandalley thanks for raising this issue. I believe I understand the source of this discrepancy is due to the following line in our package code

coalesce(ticket_comments.count_agent_comments, 0) as total_agent_replies,

As you can see we are calculating the number of agent comments as any agent comment regardless if it is internal or public. This is not consistent with what you are sharing how Zendesk counts this metric. Instead, I would assume this is being calculated by leveraging the public agent comments only. Would you be able to confirm if this seems to be the case for your tickets in question. If so, we can move forward with applying a fix to the models to account for this discrepancy.

from dbt_zendesk.

fivetran-avinash avatar fivetran-avinash commented on June 8, 2024

Hi @gui-brandalley 👋 ! We believe we have solved for this issue and will merge this into our next release in the coming days.

In the meantime, if you'd like to test this fix you can utilize our current branch where we are making the necessary changes. Here is the git config you'll need to use. Let us know if you have any questions!

packages:
  - git: https://github.com/fivetran/dbt_zendesk.git
    revision: bug/fixing-agent-replies-definition
    warn-unpinned: false 

from dbt_zendesk.

fivetran-joemarkiewicz avatar fivetran-joemarkiewicz commented on June 8, 2024

These updates have since been included in the latest v0.11.0 release of the dbt_zendesk package! This should be live on the dbt hub at the top of the hour. As such I will close this issue.

Please feel free to comment here or open a new issue if you see your initial issue persisting. Thanks!

from dbt_zendesk.

gui-brandalley avatar gui-brandalley commented on June 8, 2024

Hi @fivetran-joemarkiewicz
Apologies for the delay, I have just noticed some cases where the count_agent_comments is still 0 with version 0.11.0.
I can't find any clue about what could be the reason but if you need any more details please let me know.

Kind regards,
Guillaume

from dbt_zendesk.

fivetran-avinash avatar fivetran-avinash commented on June 8, 2024

Hi @gui-brandalley ! I believe we changed the count_agent_replies logic in this ticket but not count_agent_comments. Currently the logic holds in our model for agent comment count as:

        sum(case when commenter_role = 'internal_comment'
            then 1
            else 0
                end) as count_agent_comments

Is this the logic you'd expect? If it is, could you send us some cases of tickets that aren't fitting this logic? If not, could you let us know what logic you would be expecting?

from dbt_zendesk.

gui-brandalley avatar gui-brandalley commented on June 8, 2024

Hi @fivetran-avinash ,
I can't find any count_agent_replies field in the zendesk_ticket_metrics model. Are you talking about total_agent_replies?

from dbt_zendesk.

fivetran-avinash avatar fivetran-avinash commented on June 8, 2024

HI @gui-brandalley , sorry, yes, total_agent_replies is what I meant.

from dbt_zendesk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.