FlowFuse / FlowFuse/flowfuse

Can add multiple same name devices despite what the "Add Device" dialog infers

Open
#2,681 0 comments 0 reactions 0 assignees View on GitHub
needs-triage size:S
Dominant language
JavaScript
Stars
400
Forks
89
Avg merge
1d 20h
Merged PRs (30d)
149

Description

### Current Behavior

The "Add Device" dialog states **"Provide a unique, identifiable name for your device."** but does not inhibit the user adding "same named" devices.

https://github.com/flowforge/flowforge/assets/44235289/946fb999-9622-4992-bccf-b8cd61c4cfbc

### Expected Behavior

There are several ways we _could_ handle this:

1. Add a DB index/unique constraint.
1. Though this might impact existing users
2. Inhibit future new devices having the same name (block at API level)
3. Change the dialog text to **"It is recommended you provide a unique name for your device."**
1. Effectively permitting the use of same name devices but discouraging it.

### Steps To Reproduce

Add device with name of existing device

### Environment

- FlowForge version: 1.11

### Have you provided an initial effort estimate for this issue?

I have provided an initial effort estimate

Contributor guide

Open the contributing guide

Research direction

Start with the Add Device dialog and trace the device API and data model. The issue presents three possible resolutions—database uniqueness, API validation, or revised dialog text—so confirm the intended policy with maintainers before changing anything. Done means duplicate-name behavior and the dialog wording consistently match that decision, with the reproduce case covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
databases, full-stack
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.