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) #2519

Merged

Conversation

alexandreferris
Copy link
Contributor


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

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.

@alexandreferris alexandreferris changed the title fix: get default protocol when creating group fix: get default protocol when creating group (WPB-5475) Feb 20, 2024
@alexandreferris alexandreferris requested review from a team, typfel, yamilmedina, borichellow, MohamadJaara, mchenani and vitorhugods and removed request for a team February 20, 2024 14:55
Copy link
Contributor

github-actions bot commented Feb 20, 2024

Test Results

2 800 tests   2 671 ✔️  31s ⏱️
   484 suites     129 💤
   484 files           0

Results for commit 8df59c9.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

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

❗ No coverage uploaded for pull request base (release/candidate@d5679c8). Click here to learn what that means.

Additional details and impacted files
@@                 Coverage Diff                  @@
##             release/candidate    #2519   +/-   ##
====================================================
  Coverage                     ?   58.38%           
  Complexity                   ?       21           
====================================================
  Files                        ?     1172           
  Lines                        ?    45349           
  Branches                     ?     4295           
====================================================
  Hits                         ?    26478           
  Misses                       ?    16947           
  Partials                     ?     1924           
Files Coverage Δ
...um/logic/feature/user/GetDefaultProtocolUseCase.kt 100.00% <100.00%> (ø)
...ium/logic/data/conversation/ConversationOptions.kt 66.66% <20.00%> (ø)

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 d5679c8...8df59c9. Read the comment docs.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Feb 20, 2024

Datadog Report

All test runs 9c38f53 🔗

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 2671 129 12m 31.12s Link
kalium-jvm 0 0 0 2796 123 8m 57.05s Link

@MohamadJaara MohamadJaara changed the title fix: get default protocol when creating group (WPB-5475) feat: implement use case to get default conversation creation protocol (WPB-5475) Feb 20, 2024
@alexandreferris alexandreferris merged commit 0611471 into release/candidate Feb 20, 2024
19 checks passed
@alexandreferris alexandreferris deleted the fix/get_default_protocol_when_creating_group branch February 20, 2024 19:58
github-actions bot pushed a commit that referenced this pull request Feb 20, 2024
…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-merge-queue bot pushed a commit that referenced this pull request Feb 21, 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]>
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