Add Support for Handling Spaces in Custom-Named Trust Levels in Their Group Slugs

Hello again! First off, I want to say thank you to the Discourse team for a fantastic job improving the consistency of slug names versus full names in group titles. Now, I am experiencing a weird issue when attempting to replace the trust level names in my Discourse forum. I replaced all the names to the relevant titles in Jedi vernacular (Nerf herder, Youngling, Padawan, Jedi Knight, Jedi Master).

(Well, almost all of the titles are relevant: we expect a lot of scruffy-looking, uncivilized smugglers that’ll need trade in their blasters for a more elegant weapon for a more civilized age. He may also reserve the right to withhold the rank of Jedi Master from members [staff] belonging to the Jedi Council :wink: )

Strangely enough, though, group slugs only changed for trust levels 1 and 2 (Youngling and Padawan). For some reason or another, the others won’t change even after replacing them in the handy dandy text customization section under the Admin panel (under Admin->Customize->Text). Is there another step I need to take to enable the slugs to be superseded for trust levels 0, 3, and 4?

Groups in question:
https://forum.farfarawaynews.com/g
https://forum.farfarawaynews.com/g/trust_level_0
https://forum.farfarawaynews.com/g/youngling
https://forum.farfarawaynews.com/g/padawan
https://forum.farfarawaynews.com/g/trust_level_3
https://forum.farfarawaynews.com/g/trust_level_4

EDIT: Ah, I think I know what it is. A common thread between all the custom trust levels that aren’t showing their name in their group slug is they all have a space in their custom name which may be breaking slug name generation. Could support be added so these built-in groups can handle spaces in custom-named trust levels?

Any news on a fix or workaround?

Llego un poco tarde a la fiesta, pero como me topé con esto mientras investigaba otra consulta de soporte, pensé en completarla. :slightly_smiling_face: Los nombres de usuario y los nombres de grupo no admiten espacios, por lo que tendrías que usar un guion bajo en su lugar (como los predeterminados):

También quiero etiquetar a @laurent.c porque informó una versión del mismo problema en:

En referencia a:

Los nombres de usuario y nombres de grupo no admiten espacios, por lo que tendría que usar un guion bajo en su lugar (como los predeterminados):

Hago ese cambio y la “slug” (identificador) no cambia:

Tampoco cambiará si uso una sola palabra, lo cual fue exitoso para @Hifihedgehog.

Para acelerar el cambio en todos los menús y direcciones, puedes ejecutar manualmente Jobs::EnsureDbConsistency desde tu página /sidekiq/scheduler :+1:

1 me gusta

Ok, entonces, si no lo hago, ¿el trabajo se ejecutará en algún momento y realizará el cambio?

La próxima vez que se programe su ejecución, debería realizar esos cambios, al igual que si la activara manualmente.

1 me gusta

Esto se ejecutó correctamente durante la noche después de que hablamos de esto. Gracias, @JammyDodger.

1 me gusta

Gracias por mencionarlo. De hecho, las modificaciones funcionan después del trabajo. Voy a informarlo en el asunto que he abierto.