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: handle federation not enabled [WPB-5237] #2189

Merged
merged 5 commits into from
Nov 8, 2023

Conversation

Garzas
Copy link
Contributor

@Garzas Garzas commented Nov 3, 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?

Issues

One of client servers returns

ErrorResponse(code=400, message=no federator configured, label=federation-not-enabled, cause=null)

probably when user tries to fetch other user data with different domain

Causes (Optional)

Because fetching users is during slow sync, when it returns error the entire slow sync is aborted and user is stuck on connecting

Solutions

Handle this error and try to fetch again only those users which have the same domain as self user

@Garzas Garzas self-assigned this Nov 3, 2023
@Garzas Garzas marked this pull request as draft November 3, 2023 14:30
@Garzas
Copy link
Contributor Author

Garzas commented Nov 3, 2023

Bad checkout, I will need to have only one commit from cherry-pick

@Garzas Garzas force-pushed the fix/handle-federation-not-enabled branch from 21edd8f to 9045d6e Compare November 6, 2023 04:03
@Garzas Garzas marked this pull request as ready for review November 6, 2023 04:03
@Garzas Garzas force-pushed the fix/handle-federation-not-enabled branch from 9045d6e to 514105f Compare November 6, 2023 04:20
@Garzas Garzas changed the base branch from release/candidate to develop November 6, 2023 04:20
@codecov-commenter
Copy link

codecov-commenter commented Nov 6, 2023

Codecov Report

❗ No coverage uploaded for pull request base (release/candidate@33a635a). Click here to learn what that means.
The diff coverage is n/a.

@@                 Coverage Diff                  @@
##             release/candidate    #2189   +/-   ##
====================================================
  Coverage                     ?   58.19%           
  Complexity                   ?       21           
====================================================
  Files                        ?     1010           
  Lines                        ?    37750           
  Branches                     ?     3437           
====================================================
  Hits                         ?    21967           
  Misses                       ?    14317           
  Partials                     ?     1466           

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 33a635a...85fe561. Read the comment docs.

@Garzas Garzas force-pushed the fix/handle-federation-not-enabled branch from 514105f to c8be798 Compare November 6, 2023 04:23
@Garzas Garzas changed the base branch from develop to release/candidate November 6, 2023 04:23
Comment on lines 212 to 215
verify(arrangement.userDetailsApi)
.suspendFunction(arrangement.userDetailsApi::getMultipleUsers)
.with(any())
.wasInvoked(exactly = twice)
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to check that it invoked getMultipleUsers with the different inputs, instead of any() tiwce.

Copy link
Contributor

github-actions bot commented Nov 8, 2023

Unit Test Results

       6 files         6 suites   5m 38s ⏱️
2 262 tests 2 244 ✔️ 18 💤 0

Results for commit 85fe561.

♻️ This comment has been updated with latest results.

@datadog-wireapp
Copy link

datadog-wireapp bot commented Nov 8, 2023

Datadog Report

All test runs cde50f5 🔗

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 2146 120 7m 21.06s Link
kalium-jvm 0 0 0 2263 98 6m 25.13s Link

@Garzas Garzas enabled auto-merge (squash) November 8, 2023 07:40
@Garzas Garzas merged commit 9b8b0e6 into release/candidate Nov 8, 2023
14 checks passed
@Garzas Garzas deleted the fix/handle-federation-not-enabled branch November 8, 2023 08:22
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