Group names are case insensitive, can be duplicated, typed wrong in invite csv


(Tobias Eigen) #1

It’s possible to have two groups with the same name but with a different case. This is confusing and leads to potential problems with bulk inviting and users mentioning groups later if the admin isn’t careful. Not a major issue but seems a bug nonetheless.


(Robin Ward) #2

This is one that @techAPJ should take a look at!


(Jason May) #3

Makes sense to me that uniqueness of the group name should account for case.

But should we force a case convention (presumably all_lower_case) on all group names? That might bother people.

The migration for this will need to hunt for any existing collisions and rename some groups to allow for the case-insensitive index to be created.


(Kevin P. Fleming) #4

Case-preserving but case-insensitive does seem reasonable in this situation. Hopefully that’s already true of user names.


(James Kiesel) #5

I want this one if @techapj isn’t working on it at the moment!


(Arpit Jalan) #6

Sure, I am working on another feature ATM, have a shot at it!


(James Kiesel) #7

PR here:

https://github.com/discourse/discourse/pull/3046


(Jeff Atwood) #8