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

fix: Ignore ConnectionRequest on backend disabled RC [WPB-7087] #2687

Conversation

borichellow
Copy link
Contributor


PR Submission Checklist for internal contributors

What's new in this PR?

Issues

When user is trying to ignore the Connection request from the user whose backend is unavailable - Error is displayed.
Igrnoring the ConnectionRequest should be available even in that case.

Causes (Optional)

It was not implemented (quit a tricky case that nobody think about)

Solutions

Update ConnectionRepository by adding a separate fun for ignoring the connection request.
In case of FederatedBackendFailure.FailedDomains request is still marked as "Ignored" localy.

Copy link
Contributor

@yamilmedina yamilmedina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Contributor

github-actions bot commented Mar 28, 2024

Test Results

2 850 tests   2 721 ✔️  32s ⏱️
   487 suites     129 💤
   487 files           0

Results for commit e984999.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Mar 28, 2024

Datadog Report

All test runs 5b242ae 🔗

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 2721 129 12m 17.13s Link
kalium-jvm 0 0 0 2851 123 8m 57.04s Link

Copy link
Contributor

@Garzas Garzas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good 👍 Just one small question


override suspend fun updateConnectionStatus(userId: UserId, connectionState: ConnectionState): Either<CoreFailure, Connection> =
updateRemoteConnectionStatus(userId, connectionState).map { connectionDTO ->
val connectionStatus = connectionDTO.copy(status = connectionStatusMapper.toApiModel(connectionState)!!)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we secure that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well basically there is checking for null in fun updateRemoteConnectionStatus that is called before it. So it's kinda safe

@borichellow borichellow merged commit f2fe483 into release/candidate Apr 2, 2024
17 checks passed
@borichellow borichellow deleted the fix/ignore_connection_request_on_backend_disabled_rc branch April 2, 2024 10:30
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.

3 participants