-
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: search inside conversation (WPB-4915) #2137
Conversation
… into feat/search_inside_conversation
# Conflicts: # logic/src/commonMain/kotlin/com/wire/kalium/logic/data/message/MessageRepository.kt # logic/src/commonTest/kotlin/com/wire/kalium/logic/data/message/MessageRepositoryTest.kt # persistence/src/commonMain/db_user/com/wire/kalium/persistence/Messages.sq # persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/MessageDAO.kt # persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/MessageDAOImpl.kt
Datadog ReportAll test runs ✅ 2 Total Test Services: 0 Failed, 0 with New Flaky, 2 Passed Test Services
|
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 solid.
Feel free to ignore my comment about pagination/performance. It's a worry I have, but I don't think it needs to be present from the beginning, and I guess it will only be proportionally slow as the search query is broad. So it's kinda expected?
Just testing the DAO tho. We should make sure the query works and will continue to work in the future.
persistence/src/commonMain/db_user/com/wire/kalium/persistence/Messages.sq
Show resolved
Hide resolved
persistence/src/commonMain/kotlin/com/wire/kalium/persistence/dao/message/MessageDAOImpl.kt
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## develop #2137 +/- ##
=============================================
- Coverage 57.65% 57.54% -0.11%
Complexity 24 24
=============================================
Files 1052 1053 +1
Lines 39960 40180 +220
Branches 3725 3747 +22
=============================================
+ Hits 23038 23122 +84
- Misses 15334 15447 +113
- Partials 1588 1611 +23
... and 4 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
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.
🔍 🧙 GA & GJ, great addition and great job! 🍓
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
There was no way to search for messages in a conversation
Causes (Optional)
Not implemented yet.
Solutions
Create usecase
GetConversationMessagesFromSearchQueryUseCase
and its respective repository and DAO functions to search for messages containing the specified search term.Testing
Test Coverage (Optional)
How to Test
Currently there is no way to test this, it will be available when AR PR is raised.