-
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
feat: conversation list pagination, pt1 - queries [WPB-9433] #3055
feat: conversation list pagination, pt1 - queries [WPB-9433] #3055
Conversation
Quality Gate passedIssues Measures |
Test Results3 235 tests +16 3 129 ✅ +16 4m 22s ⏱️ +40s Results for commit a257504. ± Comparison against base commit fc3f3e3. This pull request removes 1 and adds 17 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Bencher Report
Click to view all benchmark results
|
Datadog ReportBranch report: ✅ 0 Failed, 3129 Passed, 106 Skipped, 15.61s Total Time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice, I would just test it with some data in db when android part will be ready 😄
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
In order to make conversation lists paginated, new queries and sql views are needed.
In this PR, getting
ConversationDetails
and unread events with last message or draft is moved to the sql view with all required tables joined, so that it can be paginated. New queries are created to be able to fetch paginated results on different screens - currently we have two different types:and to handle both, two additional parameters are added to queries and functions.
Also, two other sql views are created which are just queries that we were already using, to make it reusable (
LastMessagePreview
to return only preview of last message for the conversation andUnreadEventCountsGrouped
to count different unread events).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
.