-
Notifications
You must be signed in to change notification settings - Fork 6
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: infinite profile loading screen when user cannot be added (WPB-14842) #3187
Conversation
Quality Gate passedIssues Measures |
Bencher Report
Click to view all benchmark results
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #3187 +/- ##
========================================
Coverage 54.10% 54.10%
========================================
Files 1256 1256
Lines 36661 36661
Branches 3726 3727 +1
========================================
Hits 19834 19834
- Misses 15387 15388 +1
+ Partials 1440 1439 -1
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Datadog ReportBranch report: ✅ 0 Failed, 3248 Passed, 107 Skipped, 1m 2.35s Total Time |
https://wearezeta.atlassian.net/browse/WPB-14842
What's new in this PR?
Issues
When trying to add user via QR code and this user cannot be added (e.g. anta user to beta app) then profile screen is showing infinite loading progress.
Causes (Optional)
The scenario when user is not found locally and network fetch returns success result with no users is not handled. The repository is storing fetched users in the database and UI will get user from the database. In this flow no users are saved in the database and UI keeps showing progress because no error was returned.
Solutions
Add a boolean flag (instead of Unit) to indicate if actual users were found. Use this flag to return error if no users were found on server.
How to Test
Try to add an anta user to beta app via QR code.