mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 04:04:21 +08:00
9bf522f227
- 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. |
||
---|---|---|
.. | ||
ace-editor-test.js.es6 | ||
admin-report-test.js.es6 | ||
categories-admin-dropdown-test.js.es6 | ||
category-chooser-test.js.es6 | ||
category-selector-test.js.es6 | ||
combo-box-test.js.es6 | ||
d-button-test.js.es6 | ||
d-editor-test.js.es6 | ||
d-icon-test.js.es6 | ||
group-membership-button-test.js.es6 | ||
keyboard-shortcuts-test.js.es6 | ||
list-setting-test.js.es6 | ||
mini-tag-chooser-test.js.es6 | ||
multi-select-test.js.es6 | ||
pinned-options-test.js.es6 | ||
share-button-test.js.es6 | ||
single-select-test.js.es6 | ||
tag-drop-test.js.es6 | ||
text-field-test.js.es6 | ||
topic-footer-mobile-dropdown-test.js.es6 | ||
topic-notifications-button-test.js.es6 | ||
topic-notifications-options-test.js.es6 | ||
value-list-test.js.es6 |