Group long names - help give full citizenship to groups for mentions, messaging, group pages


(Tobias Eigen) #1

Continuing the discussion from Group name character limitation:

Discourse Groups are awesome! :rocket: We use them very actively on our community, and want to use them even more.

One barrier is group name length and appearance in various places. An example - mentions, where long names screw up the display. They can’t have spaces as well which is not pretty.

Better would be to replicate the look of user mentions. This would allow us to have short groupnames (up to 15-20 chars) based on acronyms (eg @lel2016) and longer names that clearly indicate who’s in the group (eg 2016 Legal Empowerment Leadership Course Participants)

Examples of both below.


Unable to mention groups
Improving the Groups page for 1.7
(Jeff Atwood) #2

I agree that groups, like users, should have short unique as well as longer full non-unique (and Unicode) names.


(Jeff Atwood) #3

I believe this is complete now @tgxworld as of 1.7?


(Tobias Eigen) #4

this doesn’t seem to have been fixed yet - on my site it looks the same now as it did before. Each of these groups has a long name now.


(Jeff Atwood) #5

Aha yes that should be changed @tgxworld


(Alan Tan) #6

This has always been the case. Group names are validated using the same validator for usernames.

This has been added so I’ll just have to include it in the mention autocomplete :slight_smile:

Isn’t the name long because you increased the username length settings and gave the group a long name? With the addition of full name, you should probably shorten the group name and use the group full name. :grin:


(Tobias Eigen) #7

Thanks! @tgxworld!

I will tweak the group names and (as you call them) full names once the mention autocomplete is working properly. When I said each of these have long names I mean they have full names, as in the example below.


(Alan Tan) #8

I just made group mention similar to user mention.

Also improved the autocomplete by adding the user’s name / group’s fullname to the title attribute

Thanks @tobiaseigen :slight_smile:


(Alex Armstrong) #9

Full usernames are displayed, but are not searched for when entering a name. This is true both when adding recipients for a message and when @mentioning groups in a topic.

I’m pretty sure this has been reported before, but I can’t seem to find where. I don’t see it in the list for 1.9. Can you add it to the next release? It seems like a small thing, but it drives me absolutely bonkers.

(We have a @digped-cmte, short for “Digital Pedagogy Committee”. I keep typing “pedagogy” and waiting before I remember that the full name of groups is not indexed.)


(Tobias Eigen) #10

I can confirm what @alehandrof describes on my site, though I don’t see it as a high priority. However, I agree it’s a bug if the intention is to give full citizenship to groups.

Mentioning groups seems to require you to start with the first letters of the first word of the group username. See screenshots below.

Mentioning part of full name of users - works:

31 AM

Mentioning first letters of first word of group username - works:

30 AM

Mentioning part of group username that appears later in the name - does not work at all. Nothing happens.

40 AM


(Alex Armstrong) #11

I was only talking about groups and full names, not users or usernames.

In summary:

  • Group usernames work.
  • Group full names don’t work anywhere.

I tried to provide visuals, but it would be a visual of nothing happening :slight_smile:


(Tobias Eigen) #12

I included the user usernames to show it working. It’s not broken.

Clarification: Group usernames work but only if you start at the beginning of the name. Not if you start with a word that appears later in the username. (also, group usernames will obviously not work if mentioning is disabled for the group in the admin settings)

Confirmed: Group full names don’t work anywhere.


(Sam Saffron) #13

@tgxworld can you have a look?


(Alan Tan) #15

@tobiaseigen Can you help me test if this works for your groups? Thank you!


(Tobias Eigen) #16

seems to be working now - thank you! :rocket:

45 PM


(Alan Tan) #17