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

fix: Conversations and Profile Views are reported individually (WPB-14942) #3792

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

Conversation

ohassine
Copy link
Member

@ohassine ohassine commented Jan 9, 2025

BugWPB-14942 [Android] Conversations and Profile Views are reported individually


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Views for conversations are reported to Countly with a unique conversation ID attached to them: Conversation(eed94f9*)
For some screen we report to countly SomeOther with screen name as route: SomeOther(route=other_user_profile_screen)

Solutions

Check if current screen is SomeOther then we send the route otherwise we send class name

Needs releases with:

  • GitHub link to other pull request

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Briefly describe how this change was tested and if applicable the exact steps taken to verify that it works as expected.

Notes (Optional)

Specify here any other facts that you think are important for this issue.

Attachments (Optional)

Attachments like images, videos, etc. (drag and drop in the text box)


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.

@ohassine ohassine requested review from a team, typfel, sbakhtiarov, MohamadJaara, saleniuk and mathias-niboulies and removed request for a team January 9, 2025 14:30
@codecov-commenter
Copy link

codecov-commenter commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 9.09091% with 20 lines in your changes missing coverage. Please review.

Project coverage is 45.75%. Comparing base (92baa59) to head (bc28aec).

Files with missing lines Patch % Lines
...tlin/com/wire/android/util/CurrentScreenManager.kt 9.09% 20 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3792      +/-   ##
===========================================
- Coverage    45.79%   45.75%   -0.05%     
===========================================
  Files          486      486              
  Lines        16632    16647      +15     
  Branches      2792     2799       +7     
===========================================
  Hits          7617     7617              
- Misses        8234     8249      +15     
  Partials       781      781              
Files with missing lines Coverage Δ
...tlin/com/wire/android/util/CurrentScreenManager.kt 27.17% <9.09%> (-5.30%) ⬇️

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 92baa59...bc28aec. Read the comment docs.

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

Copy link
Contributor

github-actions bot commented Jan 9, 2025

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

…are-reported-individually' into Conversations-and-Profile-Views-are-reported-individually
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor

@yamilmedina yamilmedina left a comment

Choose a reason for hiding this comment

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

Looking good, left a question/concern and also to add, for this to work we need to remove this flag

@ohassine
Copy link
Member Author

Looking good, left a question/concern and also to add, for this to work we need to remove this flag

Yes, we still don't need it yet.

Copy link
Contributor

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

Copy link
Contributor

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

@ohassine ohassine requested a review from yamilmedina January 10, 2025 17:55
Copy link
Contributor

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

Copy link
Contributor

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

@ohassine ohassine requested a review from MohamadJaara January 13, 2025 09:42
@ohassine ohassine requested a review from saleniuk January 20, 2025 11:56
@ohassine ohassine enabled auto-merge January 20, 2025 12:02
Copy link
Contributor

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

Copy link
Contributor

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

@@ -182,7 +182,7 @@ object AnonymousAnalyticsManagerImpl : AnonymousAnalyticsManager {
coroutineScope.launch {
mutex.withLock {
if (!isAnonymousUsageDataEnabled) return@withLock
anonymousAnalyticsRecorder?.recordView(screen)
anonymousAnalyticsRecorder?.recordView(screen.convertToCamelCase())
Copy link
Member

Choose a reason for hiding this comment

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

is it really needed to convert this to camel case for countly ?
i mean is the screen names defined there or we can define them as we need on android ?

Copy link
Member Author

@ohassine ohassine Jan 22, 2025

Choose a reason for hiding this comment

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

it's for consistency, so we have clean data on the board. Otherwise some screen names are snake_case and some others are in camelCase.

@ohassine ohassine requested a review from MohamadJaara January 22, 2025 09:28
Copy link

Copy link
Contributor

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

Copy link
Contributor

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

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.

7 participants