dbudwin/RoboHome-Web

Disallow creating duplicate devices

Opened this issue · 0 comments

Expected Behavior

Devices with the exact same name (as entered by the user) should not be allowed for a user. You should not be able to create a device with a name matching another device nor should you be able to edit an existing device and attempt to change the name to that of another existing device. Different users can have devices of the same name.

Current Behavior

There is no validation when entering devices names to see if it conflicts with other device name for a user.

image

Possible Solution

This should be enforced on the server side and a helpful message should be given to the user to let them know of the conflicting device names.