about summary refs log tree commit diff
path: root/spec/models/tag_spec.rb
AgeCommit message (Collapse)Author
2020-01-20Original upstream mergeThibG
2017-11-15Add a test for Tag#to_param (#5705)ysksn
2017-07-14add validation to tag name (#4194)masarakki
2017-07-13Make tag search case insensitive again (#4184)unarist
2017-06-23Add important test for full-width hashtags (#3911)Eugen Rochko
2017-06-06Fix tag search order and not to use tsvector (#3611)unarist
* Sort results by the name * Switch search method to simple `LIKE` matching instead of tsvector/tsquery Previously we used scores from ts_rank_cd() to sort results, but it didn't work because the function returns same score for all results. It's not for calculate similarity of single words. Sometimes this bug even push out exact matching tag from results. Additionally, PostgreSQL supports prefix searching with standard btree index. Using it offers simpler code, but also less index size and some speed.
2017-04-09Search cleanup (#1333)Matt Jankowski
* Clean up SQL output in Tag and Account search methods * Add basic coverage for Tag.search_for * Add coverage for Account.search_for * Add coverage for Account.advanced_search_for
2017-03-05Fix wrongful matching of last period in extended usernamesEugen Rochko
Fix anchor tags in some wikipedia URLs being matches as a hashtag
2016-11-16Localizations for most server-side stringsEugen Rochko
2016-11-04Adding hashtag modelEugen Rochko