chore(color): refactor the classes used to manage models and labels - #7739
chore(color): refactor the classes used to manage models and labels#7739philmoz wants to merge 2 commits into
Conversation
This is because it would be harder to figure out what numerical number to add to the end to differentiate? As I don't see having to re-enter "Skyhunter" a second time if I duplicate the model as an enhancement (let alone anything more complex naming). If so, I get it, but it certainly isn't an enhancement. |
Well I thought it would be better than having multiple models all with the same name; but yes it would be better to try and append a unique number to the current name. If there is no space for a unique number would it be better to fall back to the default name or truncate the current name to make room? |
Rename and select duplicated model. Prevent entry of excluded characters when editing a label.
I am in full agreement on that! but yes it would be better to try and append a unique number to the current name.
The easy option is to fall back, but truncation preserves as much of the original name as possible. It may even be worth considering splitting that behaviour out of this PR, as ideally you want bw and colorlcd to behave the same way, so may require changes there to keep from introducing diverging behaviours (in a PR ostensibly focused on colorlcd refactor)? |
The issue with B&W is the model duplication is done by just physically copying the model yaml file. |
e4f6bee to
a556d72
Compare
|
Updated to try and generate a unique name from the current name by appending a number as "(x)" to the current name. |
Refactor:
Enhancements: