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(typing): send typing indicator events use case and cleanup code pt2. (WPB-4590) #2121

Conversation

yamilmedina
Copy link
Contributor

@yamilmedina yamilmedina commented Oct 9, 2023


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?

Refactor and split repositories, and create a periodic cleanup of orphaned typing indicators, so we clean those after some time.

Needs releases with:

Testing

Test Coverage (Optional)

In the next PR, pt3.


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.

@yamilmedina yamilmedina changed the title feat(typing): send typing indicator events networking layer pt2. (WPB-4590) feat(typing): send typing indicator events use case and cleanup layer pt2. (WPB-4590) Oct 9, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

Unit Test Results

       6 files   - 397         6 suites   - 397   6m 17s ⏱️ + 5m 57s
2 288 tests +  78  2 270 ✔️ +140  18 💤  - 62  0 ±0 

Results for commit a9089a9. ± Comparison against base commit 8a481f0.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

codecov-commenter commented Oct 9, 2023

Codecov Report

Merging #2121 (a9089a9) into feat/epic-typing-indicator-sender (8a481f0) will decrease coverage by 0.07%.
The diff coverage is 26.19%.

@@                           Coverage Diff                           @@
##             feat/epic-typing-indicator-sender    #2121      +/-   ##
=======================================================================
- Coverage                                58.01%   57.94%   -0.07%     
  Complexity                                  24       24              
=======================================================================
  Files                                     1024     1028       +4     
  Lines                                    38257    38321      +64     
  Branches                                  3464     3467       +3     
=======================================================================
+ Hits                                     22193    22204      +11     
- Misses                                   14565    14618      +53     
  Partials                                  1499     1499              
Files Coverage Δ
...c/data/conversation/TypingIndicatorStatusMapper.kt 0.00% <ø> (ø)
...gic/feature/conversation/SendTypingEventUseCase.kt 100.00% <100.00%> (ø)
...ic/sync/receiver/handler/TypingIndicatorHandler.kt 82.35% <100.00%> (ø)
.../conversation/TypingIndicatorIncomingRepository.kt 92.00% <88.88%> (ø)
.../conversation/TypingIndicatorOutgoingRepository.kt 87.50% <87.50%> (ø)
.../feature/conversation/ObserveUsersTypingUseCase.kt 0.00% <0.00%> (ø)
...feature/conversation/TypingIndicatorSyncManager.kt 0.00% <0.00%> (ø)
...um/logic/feature/conversation/ConversationScope.kt 0.00% <0.00%> (ø)
.../data/conversation/TypingIndicatorSenderHandler.kt 0.00% <0.00%> (ø)

... and 3 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 8a481f0...a9089a9. Read the comment docs.

@yamilmedina yamilmedina changed the title feat(typing): send typing indicator events use case and cleanup layer pt2. (WPB-4590) feat(typing): send typing indicator events use case and cleanup code pt2. (WPB-4590) Oct 9, 2023
* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov
@datadog-wireapp
Copy link

Datadog Report

All test runs 3836a79 🔗

2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Branch View
kalium-ios 0 0 0 2172 121 8m 53.09s Link
kalium-jvm 0 0 0 2291 104 10m 29.01s Link

@yamilmedina yamilmedina merged commit a9a31ee into feat/epic-typing-indicator-sender Oct 10, 2023
15 checks passed
@yamilmedina yamilmedina deleted the feat/enqueue-send-typing-and-delete branch October 10, 2023 12:21
yamilmedina added a commit that referenced this pull request Oct 10, 2023
…-4590) (#2118)

* fix: exclude selfuser from typingevents

* fix: exclude selfuser from typingevents

* fix: coverage for flag check

* chore: api configuration for sending typing status

* chore: api configuration for sending typing status v0

* chore: api configuration for sending typing status v0

* chore: pr comments

* feat: mapper and repo ops

* feat: mapper and repo ops

* feat: mapper and repo ops

* chore: detekt

* chore: detekt

* chore: tests broken

* feat(typing): send typing indicator events use case and cleanup code pt2. (WPB-4590) (#2121)

* feat: mapper and repo ops deletion

* chore: ip

* chore: some fun refactoring, just ideas

* chore: some fun refactoring, just ideas

* chore: some fun refactoring, just ideas

* chore: working base

* chore: clear indicators

* chore: clear indicators

* chore: clear indicators

* chore: notes

* chore: refactor into new classes splitted

* chore: comments cleanup

* chore: detekt fixes

* Empty-Commit

* feat(typing): send typing indicator event tests pt3. (WPB-4590) (#2122)

* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov
github-merge-queue bot pushed a commit that referenced this pull request Oct 11, 2023
* feat(typing): send typing indicator events networking layer pt1. (WPB-4590) (#2118)

* fix: exclude selfuser from typingevents

* fix: exclude selfuser from typingevents

* fix: coverage for flag check

* chore: api configuration for sending typing status

* chore: api configuration for sending typing status v0

* chore: api configuration for sending typing status v0

* chore: pr comments

* feat: mapper and repo ops

* feat: mapper and repo ops

* feat: mapper and repo ops

* chore: detekt

* chore: detekt

* chore: tests broken

* feat(typing): send typing indicator events use case and cleanup code pt2. (WPB-4590) (#2121)

* feat: mapper and repo ops deletion

* chore: ip

* chore: some fun refactoring, just ideas

* chore: some fun refactoring, just ideas

* chore: some fun refactoring, just ideas

* chore: working base

* chore: clear indicators

* chore: clear indicators

* chore: clear indicators

* chore: notes

* chore: refactor into new classes splitted

* chore: comments cleanup

* chore: detekt fixes

* Empty-Commit

* feat(typing): send typing indicator event tests pt3. (WPB-4590) (#2122)

* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov

* chore: test cov

* fix: not block delay, to not block send stop

* feat: add missing usecase to clear reusing repository

* feat: add missing usecase to clear reusing repository
@echoes-hq echoes-hq bot added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. 🚨 Potential breaking changes 👕 size: XL type: feature ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants