discourse/plugins/chat/spec
Martin Brennan c6764d8c74
FIX: Automatically generate category channel slugs (#18879)
This commit automatically ensures that category channels
have slugs when they are created or updated based on the
channel name, category name, or existing slug. The behaviour
has been copied from the Category model.

We also include a backfill here with a simplified version
of Slug.for with deduplication to fill the slugs for already
created Category chat channels.

The channel slug is also now used for chat notifications,
and for the UI and navigation for chat. `slugifyChannel`
is still used, but now does the following fallback:

* Uses channel.slug if it is present
* Uses channel.escapedTitle if it is present
* Uses channel.title if it is present

In future we may want to remove this altogether
and always rely on the slug being present, but this
is currently not possible because we are not generating
slugs for DM channels at this point.
2022-11-09 10:28:31 +10:00
..
components FIX: Make ChatMessageUpdater check editing access for guardian (#18902) 2022-11-08 09:04:18 +10:00
fabricators FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
integration
jobs FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
lib FIX: Allow deletion of categories when chat channel is not present 2022-11-08 10:25:39 +01:00
mailers DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
models FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
queries DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
requests FIX: Automatically generate category channel slugs (#18879) 2022-11-09 10:28:31 +10:00
serializer DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00
services
support FIX: Allow deletion of categories when chat channel is not present 2022-11-08 10:25:39 +01:00
system FIX: handles starting draft dm from sidebar (#18946) 2022-11-08 23:58:11 +01:00
validators
plugin_spec.rb DEV: Rename direct message related models 2022-11-03 14:39:23 +01:00