Repository navigation
Stops user from adding duplicate ID in gui - #2628
Closed
kev-the-dev wants to merge 4 commits into
Closed
kev-the-dev wants to merge 4 commits into
kev-the-dev wants to merge 4 commits into
Conversation
Adds check in valid device id to check for uniqueness
Contributor
Author
Contributor
There was a problem hiding this comment.
Nearly all of the JavaScript code for this project has conditional blocks on their own line and surrounded by brackets, as lines 12-16 of this file. I recommend following the local custom.
Contributor
|
Overall, this diff looks good to me. One inline comment about the if/else block styling. Not sure what's up with the automatic verification. Hopefully, a maintainer will be along to give them the necessary kick for you. |
Contributor
|
Looks good,
Nope |
Member
|
@st-jenkins add to whitelist |
Member
|
@st-jenkins retest this please |
Member
|
Merged in 4a6f171 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Adds check in valid device id directive to check for uniqueness. If user wants to force a duplicate, cli or manual config change is still available. But for most users, it should be a good check. I can't think of a valid use case for a duplicate id, and it seems to introduce some problems.
Mentioned in #1675,#2465, and some other issues.
Feel free to change error message, I just wrote a sample one.
Also, am I required to update the translation files in any way to have a GUI change accepted?