-
Notifications
You must be signed in to change notification settings - Fork 2
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
As a content editor, I want to search for tags with or without diacritics and get the same results so that I can more easily find the correct tag. #943
Comments
@richmanrachel is it ok for tags to not allow diacritics? wondering if we can tackle this in tandem with #499 — collapse tags that are the same except for diacritics, and then add logic so that in future diacritics are ignored when creating tags. |
@rlskoeser - yes! Especially since Marina already requested this, I'm happy with this solution |
Ah—this is a problem with the "add tag" functionality in the Tags section of the admin, rather than adding a tag to a document. Looks like our diacritic-stripping code is not run when you create a tag separately! |
Unidecode all tags on pre_save signal (#943)
I didn't read through all the tags to ensure that all of the diacritics were properly dealt with, but I did look over about 400. The only potential error I saw was this one: But if I only found 1/400 with errors, I think that's still enough to close as this gets us to a much easier place for tag cleanup. Do you agree, @rlskoeser ? |
@richmanrachel I agree with you — the near-duplicates I saw were variations like plural/singular, and I think those are ones that I think would be better to handle manually when we get the tag merge function implemented. Thanks for reviewing so carefully. |
@rlskoeser - perfect, closing now! |
testing notes
deploy notes
On the admin interface > taggit, I typed hujra (no dot under the H) into the search bar and received this result:
However, I knew that #ḥujra is associated with 4 documents. So then I searched for ḥujra and received this result:
Lots of our tags don't use proper diacritics, so it would be better for us to be diacritic-agnostic.
Which we do seem to be already in the document view in the admin interface, and in searching the public site.
Thanks! 🥇
The text was updated successfully, but these errors were encountered: