-
Notifications
You must be signed in to change notification settings - Fork 120
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
Adopt fuzzy searching through the RoomListService's dynamic filter #1483
Conversation
340bcab
to
1f63e11
Compare
Generated by 🚫 Danger Swift against 62cb683 |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## develop #1483 +/- ##
===========================================
+ Coverage 52.92% 52.99% +0.07%
===========================================
Files 400 400
Lines 26875 26878 +3
Branches 13442 13440 -2
===========================================
+ Hits 14223 14245 +22
+ Misses 12250 12229 -21
- Partials 402 404 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View 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.
Oh this is going to be nice! 🔎
return | ||
} | ||
|
||
_ = listUpdatesSubscriptionResult?.dynamicFilter.set(kind: .fuzzyMatchRoomName(pattern: pattern.lowercased())) |
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.
Not part of this specifically, but it would be nice if the lowercases()
happened on the Rust side instead of client side.
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.
@Hywan This is a workaround as I noticed the rust side doesn't take care of it. Do you think we can move it?
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.
The fuzzy match uses smart case: if everything is in lower-case, the case is ignored, otherwise if at least one character is in uppercase, the case isn't ignored. So I would suggest to not put the search pattern in lowercase here.
1f63e11
to
62cb683
Compare
Kudos, SonarCloud Quality Gate passed!
|
No description provided.