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: implement use case to get default conversation creation protocol (WPB-5475) #2521

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 20, 2024

Cherry pick from the original PR:


⚠️ Conflicts during cherry-pick:


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
    • 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

There was no way for getting the default protocol when creating a group.

Causes (Optional)

Not implemented.

Solutions

Create a usecase (GetDefaultProtocolUseCase) to get default protocol set by the team owner.

Dependencies (Optional)

Needs releases with:

AR PR will follow as soon as this one is merged.

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

How to Test

Only tested in conjunction with AR, steps will be explained in AR PR.

…l (WPB-5475) (#2519)

* fix: add usecase to get default protocol

* test: add tests for get default protocol usecase

* fix: add get default protocol usecase to user session scope

* fix: add mapping from SupportedProtocol to ConversationOptions.Protocol

* fix: adjust detekt
@github-actions github-actions bot added the cherry-pick PR is cherry-picking changes from another banch label Feb 20, 2024
@alexandreferris alexandreferris requested review from a team, alexandreferris, vitorhugods, Garzas, ohassine and saleniuk and removed request for a team February 20, 2024 20:15
Copy link
Contributor Author

github-actions bot commented Feb 20, 2024

Test Results

2 913 tests  +3   2 791 ✔️ +3   2m 26s ⏱️ -7s
   511 suites +1      122 💤 ±0 
   511 files   +1          0 ±0 

Results for commit bd3991b. ± Comparison against base commit 88c82a6.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Feb 20, 2024

Datadog Report

All test runs 5ede883 🔗

2 Total Test Services: 0 Failed, 2 Passed

Test Services
Service Name Failed Known Flaky New Flaky Passed Skipped Wall Time Test Service View
kalium-ios 0 0 0 2053 37 11.1s Link
kalium-jvm 0 0 0 2791 122 8m 54.05s Link

@codecov-commenter
Copy link

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (88c82a6) 58.36% compared to head (bd3991b) 58.36%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2521      +/-   ##
=============================================
- Coverage      58.36%   58.36%   -0.01%     
  Complexity        21       21              
=============================================
  Files           1172     1173       +1     
  Lines          45353    45363      +10     
  Branches        4292     4293       +1     
=============================================
+ Hits           26469    26474       +5     
- Misses         16959    16963       +4     
- Partials        1925     1926       +1     
Files Coverage Δ
...um/logic/feature/user/GetDefaultProtocolUseCase.kt 100.00% <100.00%> (ø)
...ium/logic/data/conversation/ConversationOptions.kt 66.66% <20.00%> (-33.34%) ⬇️

... and 1 file 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 88c82a6...bd3991b. Read the comment docs.

@alexandreferris alexandreferris added this pull request to the merge queue Feb 21, 2024
Merged via the queue into develop with commit e41ccac Feb 21, 2024
19 checks passed
@alexandreferris alexandreferris deleted the fix/get_default_protocol_when_creating_group-cherry-pick branch February 21, 2024 12:44
jschumacher-wire pushed a commit that referenced this pull request Mar 6, 2024
…l (WPB-5475) (#2521)

* feat:  implement use case to get default conversation creation protocol (WPB-5475) (#2519)

* fix: add usecase to get default protocol

* test: add tests for get default protocol usecase

* fix: add get default protocol usecase to user session scope

* fix: add mapping from SupportedProtocol to ConversationOptions.Protocol

* fix: adjust detekt

* empty trigger commit

---------

Co-authored-by: Alexandre Ferris <[email protected]>
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