kalium icon indicating copy to clipboard operation
kalium copied to clipboard

fix: Missed call message does not get marked as read if self user called (WPB-10208)

Open ohassine opened this issue 1 year ago β€’ 5 comments

BugWPB-10208 [Android] Missed call message does not get marked as read if self user called


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

Missed call message does not get marked as read if self user called

Causes (Optional)

We are updating ConversationReadDate if the message is coming from selfUser

Solutions

Exclude missedCall type so ConversationReadDate will be updated if the message is coming from self user and not a missed call.

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 avatar Aug 15 '24 15:08 ohassine

Test Results

3β€ˆ159 tests  +4   3β€ˆ054 :heavy_check_mark: +4   3m 36s :stopwatch: +25s βŸβ€„β€ˆ542 suites +1β€‚β€ƒβ€ƒβŸβ€„β€ˆ105 :zzz: Β±0  βŸβ€„β€ˆ542 files   +1β€‚β€ƒβ€ƒβŸβ€„β€ˆβŸβ€„βŸβ€„0 :x: Β±0 

Results for commit 3ce970a4. ± Comparison against base commit ad1bbe20.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Aug 15 '24 15:08 github-actions[bot]

🐰Bencher

ReportThu, August 15, 2024 at 15:38:26 UTC
Projectkalium
BranchMissed-call-message-does-not-get-marked-as-read-if-self-user-called
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

  • Latency (latency)

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns)
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInFilesβž– (view plot)679,951.97
com.wire.kalium.benchmarks.logic.CoreLogicBenchmark.createObjectInMemoryβž– (view plot)444,295,130.27
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.messageInsertionBenchmarkβž– (view plot)932,284,906.07
com.wire.kalium.benchmarks.persistence.MessagesNoPragmaTuneBenchmark.queryMessagesBenchmarkβž– (view plot)21,442,642.97

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

github-actions[bot] avatar Aug 15 '24 15:08 github-actions[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 52.54%. Comparing base (f755a71) to head (3ce970a). Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2953      +/-   ##
===========================================
+ Coverage    52.47%   52.54%   +0.06%     
===========================================
  Files         1290     1291       +1     
  Lines        49580    49594      +14     
  Branches      4604     4605       +1     
===========================================
+ Hits         26018    26058      +40     
+ Misses       21717    21667      -50     
- Partials      1845     1869      +24     
Files Coverage Ξ”
...kalium/logic/data/message/PersistMessageUseCase.kt 21.53% <100.00%> (+21.53%) :arrow_up:

... and 5 files with indirect coverage changes


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 f755a71...3ce970a. Read the comment docs.

codecov-commenter avatar Aug 15 '24 15:08 codecov-commenter

Datadog Report

Branch report: Missed-call-message-does-not-get-marked-as-read-if-self-user-called Commit report: b346651 Test service: kalium-jvm

:white_check_mark: 0 Failed, 3054 Passed, 105 Skipped, 13.6s Total Time

datadog-wireapp[bot] avatar Aug 15 '24 15:08 datadog-wireapp[bot]