-
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: do not commit User and Client upserts if nothing has changed [WPB-15055] #3188
fix: do not commit User and Client upserts if nothing has changed [WPB-15055] #3188
Conversation
Datadog ReportBranch report: ✅ 0 Failed, 3240 Passed, 107 Skipped, 1m 0.87s Total Time |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/candidate #3188 +/- ##
=====================================================
+ Coverage 54.15% 54.16% +0.01%
=====================================================
Files 1250 1250
Lines 36477 36495 +18
Branches 3696 3704 +8
=====================================================
+ Hits 19754 19769 +15
- Misses 15295 15296 +1
- Partials 1428 1430 +2
... and 2 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Quality Gate passedIssues Measures |
…B-15055] (#3188) * fix: do not commit User and Client upserts if nothing has changed [WPB-15055] * fix unused parameter * fix detekt
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
When the user data is outdated, the app fetches it again and makes an upsert to the database, but even if there are no changes in the data at all, the insert query is still executed and it notifies all other queries unnecessarily.
Solutions
Make it so that when the app upserts User or Client data and there are absolutely no changes, then rollback that query to not make all other queries that depend on that one dirty.
Testing
Test Coverage (Optional)
PR Post Submission Checklist for internal contributors (Optional)
PR Post Merge Checklist for internal contributors
References
feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764
.