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: create password protected guest link #1986

Merged
merged 9 commits into from
Aug 18, 2023

Conversation

MohamadJaara
Copy link
Member


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

creating a password protected guest link

Solutions

this PR contains the following changes.

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.

MohamadJaara and others added 6 commits August 5, 2023 18:36
…invite links [WPB-1531] (#1950)

* CanCreatePasswordProtectedLinksUseCase

* docs

* detekt

* test

* Update logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/conversation/guestroomlink/CanCreatePasswordProtectedLinksUseCase.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

---------

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>
Co-authored-by: Oussama Hassine <oussama.has100@gmail.com>
* CanCreatePasswordProtectedLinksUseCase

* docs

* detekt

* test

* feat: handle code update and delete event

* test

* code delete code

* inject handler

* detekt

* add fake value for is password protected

* add has password to event DTO

* missing any

* fix test

* detekt

* db migration

* typo in db migration

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeDeletedHandler.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeUpdateHandlerTest.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* file name

* fix(tests): fix e2ei mock order timing

---------

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>
Co-authored-by: Mojtaba Chenani <chenani@outlook.com>
…e/epic

# Conflicts:
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/data/event/EventMapper.kt
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/sync/receiver/ConversationEventReceiver.kt
#	persistence/src/commonMain/db_user/migrations/53.sqm
* CanCreatePasswordProtectedLinksUseCase

* docs

* detekt

* test

* feat: handle code update and delete event

* test

* code delete code

* inject handler

* detekt

* add fake value for is password protected

* add has password to event DTO

* missing any

* fix test

* detekt

* db migration

* typo in db migration

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeDeletedHandler.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeUpdateHandlerTest.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* file name

* fix(tests): fix e2ei mock order timing

* support api v4 for password protected invite links

* fix: unresolved reference

* fix merge issues

* feat: generate password protected guest link

* add test

* detekt

* fix test

---------

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>
Co-authored-by: Mojtaba Chenani <chenani@outlook.com>
* CanCreatePasswordProtectedLinksUseCase

* docs

* detekt

* test

* feat: handle code update and delete event

* test

* code delete code

* inject handler

* detekt

* add fake value for is password protected

* add has password to event DTO

* missing any

* fix test

* detekt

* db migration

* typo in db migration

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeDeletedHandler.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* Update logic/src/commonTest/kotlin/com/wire/kalium/logic/sync/receiver/conversation/CodeUpdateHandlerTest.kt

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>

* file name

* fix(tests): fix e2ei mock order timing

* support api v4 for password protected invite links

* fix: unresolved reference

* fix merge issues

* feat: generate password protected guest link

* add test

* detekt

* fix test

* feat: propagate if a guest link is password protected

---------

Co-authored-by: Alexandre Ferris <ferris.alexandre@gmail.com>
Co-authored-by: Mojtaba Chenani <chenani@outlook.com>
…e/epic

# Conflicts:
#	logic/src/commonMain/kotlin/com/wire/kalium/logic/data/event/EventMapper.kt
#	network/src/commonMain/kotlin/com/wire/kalium/network/api/v4/authenticated/ConversationApiV4.kt
#	persistence/src/commonMain/db_user/migrations/54.sqm
@github-actions
Copy link
Contributor

github-actions bot commented Aug 16, 2023

Unit Test Results

   426 files  +  3     426 suites  +3   2m 21s ⏱️ +19s
2 315 tests +13  2 217 ✔️ +13  98 💤 ±0  0 ±0 

Results for commit ab0fe0d. ± Comparison against base commit a62fab6.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

Merging #1986 (20354d1) into develop (5f27bcd) will increase coverage by 0.09%.
The diff coverage is 66.02%.

@@              Coverage Diff              @@
##             develop    #1986      +/-   ##
=============================================
+ Coverage      58.16%   58.26%   +0.09%     
  Complexity        23       23              
=============================================
  Files            970      975       +5     
  Lines          37144    37268     +124     
  Branches        3408     3416       +8     
=============================================
+ Hits           21605    21714     +109     
- Misses         14070    14084      +14     
- Partials        1469     1470       +1     
Files Changed Coverage Δ
...in/com/wire/kalium/logic/data/event/EventMapper.kt 19.71% <0.00%> (-1.18%) ⬇️
...um/logic/feature/conversation/ConversationScope.kt 0.00% <0.00%> (ø)
...onversation/UpdateConversationAccessRoleUseCase.kt 93.75% <0.00%> (ø)
...ation/guestroomlink/ObserveGuestRoomLinkUseCase.kt 100.00% <ø> (ø)
...network/api/base/model/GenerateGuestLinkRequest.kt 0.00% <0.00%> (ø)
.../network/api/v4/authenticated/ConversationApiV4.kt 55.88% <0.00%> (-5.41%) ⬇️
...um/persistence/dao/conversation/ConversationDAO.kt 100.00% <ø> (ø)
.../network/api/v0/authenticated/ConversationApiV0.kt 56.35% <33.33%> (-0.95%) ⬇️
...base/authenticated/notification/EventContentDTO.kt 52.10% <54.54%> (+0.11%) ⬆️
...ersistence/dao/conversation/ConversationDAOImpl.kt 72.72% <66.66%> (+2.13%) ⬆️
... and 11 more

... and 7 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 5f27bcd...20354d1. Read the comment docs.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Aug 16, 2023

Datadog Report

All test runs 7a78ee4 🔗

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 2069 79 2m 19.04s Link
kalium-jvm 0 0 0 2217 98 12m 11.01s Link

@MohamadJaara MohamadJaara added this pull request to the merge queue Aug 18, 2023
Merged via the queue into develop with commit 23ccfbc Aug 18, 2023
12 checks passed
@MohamadJaara MohamadJaara deleted the feat/create-password-protected-invite-code/epic branch August 18, 2023 12:53
@echoes-hq echoes-hq bot added the echoes: features End-user visible changes intended to create customer value label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants