discourse/spec
Loïc Guitaut 5c37a5d0f2
FIX: Allow to add the same watched word with a different case (#17799)
Currently we can’t add a case-sensitive watched word if another one
exists with a different case. For example, the existing watched word
`Meta` has been created and is case-sensitive. Now an admin tries to add
`metA` while marking it as case-sensitive too, this won’t work and the
word won’t be added.

This patch changes this behavior by allowing to add same words that have
different cases, so the example above will now work as expected.

We still check for uniqueness but case-sensitivy is now taken
into account. It means that if the watched word `meta` already exists
and is not case-sensitive then it will not be possible to add `Meta`
(case-sensitive or not) as `meta` already matches every possible
variations of this word.
2022-08-05 12:18:17 +02:00
..
fabricators DEV: Fix `fabricator` deprecations (#17658) 2022-07-26 01:47:09 +02:00
fixtures FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
helpers DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
import_export DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
initializers Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
integration DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
integrity DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
jobs FIX: properly log all internal job failures (#17805) 2022-08-05 17:40:22 +10:00
lib DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
mailers DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
models FIX: Allow to add the same watched word with a different case (#17799) 2022-08-05 12:18:17 +02:00
multisite DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
requests DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
script/import_scripts DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
serializers DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
services DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
support DEV: Use proper wording for contexts in specs 2022-08-04 11:05:02 +02:00
tasks FEATURE: Create upload_references table (#16146) 2022-06-09 09:24:30 +10:00
views Add RSpec 4 compatibility (#17652) 2022-07-28 10:27:38 +08:00
rails_helper.rb DEV: Apply Rails 6.1 defaults 2022-05-24 17:13:44 +02:00
regenerate_swagger_docs DEV: Add API docs for uploads and API doc watcher (#15387) 2021-12-23 08:40:15 +10:00
swagger_helper.rb DEV: Fix openapi definition logo URL (#17038) 2022-06-08 13:10:20 +01:00