discourse/spec
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
..
components FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
fabricators Add missing fields to Upload Fabricator (#6448) 2018-10-04 22:00:07 +08:00
fixtures FIX: Force enable user PM emails option when user posts to a group by email. 2018-10-02 12:38:10 +08:00
helpers extract inline JS that's used to store preloaded data (#6370) 2018-09-17 16:31:46 +08:00
import_export FIX: topic and category exporters were only exporting users who created the first post 2018-01-16 12:51:53 -05:00
integration FEATURE: Automatically expire keys if not used for a configurable amount of time. (#6264) 2018-08-20 17:36:14 +02:00
integrity Use a more helpful failure message in spec 2018-09-13 21:31:44 +02:00
jobs FIX: Generate webhook payloads before destroy events (#6325) 2018-10-05 16:53:59 +08:00
lib FIX: Don't update user_profile URLs unless upload is persisted. 2018-10-01 14:21:39 +08:00
mailers FIX: Notifications shouldn't use user locale unless allow_user_locale is enabled 2018-09-05 11:44:28 +02:00
models FEATURE: Mixed case tagging (#6454) 2018-10-05 10:23:52 +01:00
multisite DEV: Clear connections after multisite specs. 2018-09-11 10:15:06 +08:00
requests FIX: stop logging every time invalid params are sent 2018-10-05 14:33:19 +10:00
serializers Add missing fields to Upload Fabricator (#6448) 2018-10-04 22:00:07 +08:00
services UX: when admin is deleted, make it clear in staff action logs when records belong to a deleted user and show their username in the details 2018-10-02 13:46:54 -04:00
support DEV: Assert for 200 response code to avoid changing magic helper in the future. 2018-06-07 16:11:09 +08:00
tasks suppress print output when running specs 2017-10-31 16:06:11 +05:30
views/omniauth_callbacks Add rubocop to our build. (#5004) 2017-07-28 10:20:09 +09:00
rails_helper.rb DEV: Clear connections after multisite specs. 2018-09-11 10:15:06 +08:00