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

feat: Track ended call segmentation [#WPB-14256] #3756

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

m-zagorski
Copy link
Contributor

@m-zagorski m-zagorski commented Dec 18, 2024

StoryWPB-14256 [Android] Call end - Event and segmentation

https://wearezeta.atlassian.net/browse/WPB-14256

What's new in this PR?

Issues

Missing tracking for ended call.

Solutions

Map RecentlyEndedCallMetadata into the analytics segmentation and send the event to countly


PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

Copy link

sonarcloud bot commented Dec 18, 2024

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.78%. Comparing base (e0e5c8b) to head (5530df1).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3756      +/-   ##
===========================================
+ Coverage    45.76%   45.78%   +0.02%     
===========================================
  Files          477      477              
  Lines        16199    16206       +7     
  Branches      2744     2744              
===========================================
+ Hits          7413     7420       +7     
  Misses        8017     8017              
  Partials       769      769              
Files with missing lines Coverage Δ
...otlin/com/wire/android/ui/WireActivityViewModel.kt 72.22% <100.00%> (+0.69%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e0e5c8b...5530df1. Read the comment docs.

Copy link
Contributor

Built wire-android-staging-compat-pr-3756.apk is available for download

Copy link
Contributor

Built wire-android-dev-debug-pr-3756.apk is available for download

trackRecentlyEndedCall()
}

private fun trackRecentlyEndedCall() {
Copy link
Contributor

Choose a reason for hiding this comment

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

question: wouldn't be better to have it in WireApplication than WireActivity? I mean, we can have CallActivity started without WireActivity, then after ending that call it won't trigger this event, right? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, sure ! going to move it up, tomorrows morning

return when (conversationDetails.conversationType) {
Conversation.Type.ONE_ON_ONE -> "one_to_one"
Conversation.Type.GROUP -> "group"
else -> "unknown"

Choose a reason for hiding this comment

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

Is "unknown" specified anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants