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?

Estou um pouco atrasado para a festa, mas como me deparei com isso enquanto pesquisava uma consulta de suporte diferente, pensei em completar. :slightly_smiling_face: Nomes de usuário e nomes de grupo não suportam espaços, então você teria que usar um sublinhado em seu lugar (como os padrão):

Também quero marcar @laurent.c porque ele relatou uma versão do mesmo problema em:

Em referência a:

Nomes de usuário e nomes de grupo não suportam espaços, então você teria que usar um sublinhado em seu lugar (como os padrão):

Faço essa alteração e o slug não muda:

Também não mudará se eu usar uma única palavra, o que foi bem-sucedido para @Hifihedgehog.

Para acelerar a alteração em todos os menus e endereços, você pode executar manualmente Jobs::EnsureDbConsistency na sua página /sidekiq/scheduler :+1:

1 curtida

Ok, então, se eu não o fizer, o trabalho será executado em algum momento e fará a alteração?

Na próxima vez que for executado, ele deverá fazer essas alterações, assim como faria se você o acionasse manualmente.

1 curtida

Isso foi executado com sucesso durante a noite, depois que conversamos sobre isso – obrigado, @JammyDodger

1 curtida

Obrigado por mencionar. De fato, as modificações funcionam após o trabalho. Vou relatar isso no assunto que abri.