discourse/app/assets/javascripts/select-kit/mixins
David Taylor 9bf522f227
FEATURE: Mixed case tagging (#6454)
- By default, behaviour is not changed: tags are made lowercase upon creation and edit.

- If force_lowercase_tags is disabled, then mixed case tags are allowed.

- Tags must remain case-insensitively unique. This is enforced by ActiveRecord and Postgres.

- A migration is added to provide a `UNIQUE` index on `lower(name)`. Migration includes a safety to correct any current tags that do not meet the criteria.

- A `where_name` scope is added to `models/tag.rb`, to allow easy case-insensitive lookups. This is used instead of `Tag.where(name: "blah")`.

- URLs remain lowercase. Mixed case URLs are functional, but have the lowercase equivalent as the canonical.
2018-10-05 10:23:52 +01:00
..
dom-helpers.js.es6 FIX: prevents focus of input on mobile (#6251) 2018-08-09 14:23:09 +02:00
events.js.es6 FIX: popup-menu instantly closing (#6147) 2018-07-23 14:19:36 -04:00
plugin-api.js.es6 FIX: Reset tags on category change (#6363) 2018-09-05 17:18:52 +02:00
tags.js.es6 FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
utils.js.es6 FIX: makes select-kit match searches with accents (filter and content) 2018-06-26 12:19:14 +02:00