-
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: changing profile avatar doesn't reflect update (WPB-5494) #2444
fix: changing profile avatar doesn't reflect update (WPB-5494) #2444
Conversation
* fix: remove SELECT changes from updateUser query * fix: add transactionWithResult when updateUser and return select changes * test: add tests for observing user details by id
…ry as it is not used anymore
Test Results2 501 tests - 379 2 434 ✔️ - 341 32s ⏱️ - 2m 5s Results for commit 831c66f. ± Comparison against base commit f11edf5. This pull request removes 2880 and adds 2501 tests. Note that renamed tests count towards both.
This pull request removes 105 skipped tests and adds 67 skipped tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Datadog ReportBranch report: ✅ 0 Failed, 256 Passed, 13 Skipped, 5m 52s Wall Time |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #2444 +/- ##
==========================================
Coverage 58.42% 58.42%
Complexity 21 21
==========================================
Files 1162 1162
Lines 44829 44811 -18
Branches 4187 4185 -2
==========================================
- Hits 26191 26182 -9
+ Misses 16752 16748 -4
+ Partials 1886 1881 -5
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
* fix: changing profile avatar doesn't reflect update (WPB-5494) (#2443) * fix: remove SELECT changes from updateUser query * fix: add transactionWithResult when updateUser and return select changes * test: add tests for observing user details by id * fix: add UPDATE OR FAIL to update query and remove select changes query as it is not used anymore * fix: remove unused select changes query and change return type of updateUser to Unit * fix: adjust existing tests --------- Co-authored-by: Alexandre Ferris <[email protected]>
Cherry pick from the original PR:
PR Submission Checklist for internal contributors
The PR Title
The PR Description
What's new in this PR?
Issues
When changing user profile avatar it wasn't being reflected in other screens in the app
Causes (Optional)
the query was a transaction returning , thus sqldelight not emitting the update on the table.
Solutions
Remove transaction and from the query and add on the DAOImpl to properly reflect the changes upwards when needed.
Testing
How to Test
Notes (Optional)
@vitorhugods opened an issue on SQLDelight : sqldelight/sqldelight#5001