Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display help thread stats #1128

Open
ankitsmt211 opened this issue Jun 8, 2024 · 4 comments
Open

Display help thread stats #1128

ankitsmt211 opened this issue Jun 8, 2024 · 4 comments
Assignees
Labels
discussion enhancement New feature or request priority: normal valid This issue/PR is validated and ready to be picked. This auto adds items to TJ project board.

Comments

@ankitsmt211
Copy link
Member

inspired from issue #660 , we started storing more data for each help_thread. The data that is stored now includes:

  1. ticket_status : if the thread is active or archived
  2. tags: tags used for that help_thread
  3. closed_at: timestamp when the thread was last archived
  4. participants: No of people that interacted with help_thread via messages (excluding OP)
  5. message_count: No of messages that were sent in the thread till it's archived

Our goal is somehow showcase stats related to help_thread, which can now be done using slash commands.
help-thread-stats -> command to show case stats, it should take option such as duration as a choice.
Duration choices will be 1 day, 7 days, 30 days, 90 days and 180 days(default can be 1 day if not provided)

Possible data to showcase,

  1. Most used tag
  2. Average duration of threads lifecycle(from creation to latest archival)
  3. Average no of participants per thread
  4. No of threads with 0 participants(no activity)
  5. Total no of threads created
  6. Average no of messages per thread(this data could be off at times, since message count is updated on archival of thread instead on every message sent)
  7. Most active duration throughout a day(when most of threads are created)

This is top of my mind, ofc we can showcase more cool stuff if possible. This is open for discussion.

@ankitsmt211 ankitsmt211 added enhancement New feature or request discussion priority: normal valid This issue/PR is validated and ready to be picked. This auto adds items to TJ project board. labels Jun 8, 2024
@firasrg firasrg self-assigned this Jun 24, 2024
@vishv843 vishv843 self-assigned this Aug 14, 2024
@vishv843
Copy link
Contributor

image
I have created some features for this. If we want more features, I can add those

@firasrg firasrg removed their assignment Aug 21, 2024
@ankitsmt211
Copy link
Member Author

@vishv843
Since there's no code, a bit of feedback on what i can see,

  • Can we also show least used tag ?
  • Total no of threads in that duration.
  • Duration for which this data is displayed in days
  • add units for duration(days), Average Thread Lifecycle(Hrs? Minutes?)
  • It would be much better to use embed if we can instead of just text message to showcase stats

@vishv843
Copy link
Contributor

#1159
Check this PR out. I will add the features you have suggested

@ankitsmt211
Copy link
Member Author

@vishv843 i believe there's been a misunderstanding with the objectives of issue #1128, we're already storing a bunch of stats in a database table named help_threads which you can use retreive possible stats for this command to showcase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request priority: normal valid This issue/PR is validated and ready to be picked. This auto adds items to TJ project board.
Projects
Status: Ready
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants