NSWSESMembers / availability-poc

WIP proof of concept availability app
MIT License
10 stars 4 forks source link

Prevent multiple groups with same name existing #113

Open OSPFNeighbour opened 6 years ago

OSPFNeighbour commented 6 years ago

Server side protection from multiple groups with same name existing.

sdunster commented 6 years ago

I'm not sure I 100% agree with this - unique names that are free text like this can be tough to validate. If someone really wants to create a duplicate they probably will anyway by using different spellings or word arrangements (ie KMA Rescue vs Kiama Rescue vs Rescue Team Kiama vs Kiama Rescue Team etc). If we want to make it easier for people to de-duplicate groups they should be able to figure it out by seeing the other members/events/schedules - luckily you already built this :)

If we do decide to go ahead with this anyway make sure the uniqueness is enforced across a combination of name and organisation since names would only need to be unique within an org.