fix: Make name/email lookups case-insensitive (#5972)#6007
fix: Make name/email lookups case-insensitive (#5972)#6007rjsparks merged 2 commits intoietf-tools:mainfrom
Conversation
Use icontains so that looking up name or email is case insensitive Added a test Fixes: 5972
Codecov Report
@@ Coverage Diff @@
## main #6007 +/- ##
==========================================
- Coverage 88.67% 88.63% -0.05%
==========================================
Files 288 288
Lines 40001 40014 +13
==========================================
- Hits 35471 35466 -5
- Misses 4530 4548 +18
|
|
Would using |
|
Yes, that would fix the web search, but |
|
|
||
| def profile(request, email_or_name): | ||
| aliases = Alias.objects.filter(name=email_or_name) | ||
| aliases = Alias.objects.filter(name__icontains=email_or_name) |
There was a problem hiding this comment.
how about iexact instead of icontains in both places?
There was a problem hiding this comment.
added commit to do this.
(It was useful to each just 'salz' but not worth the #6008 risk)
Use icontains so that looking up name or email is case insensitive Added a test