Bug 10206

Summary: The add layer dependencies type ahead shows layers already in the list of dependencies
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: David Reyna <david.reyna>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Low CC: belen.barros.pena, david.reyna, jessica.zhang, jose.perez.carranza, stanciux.mihail
Version: unspecified   
Target Milestone: Future   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2016-09-01 16:01:56 UTC
Steps to reproduce:

1. Create a Toaster project

2. Go to the "import layer" page and import a layer

3. When back in the project configuration page, click on the name of the layer you just imported, which will be listed in the list of project layers

4. In the layer details page, scroll to the 'layer dependencies' text field, type a layer name and add it to the dependencies list

5. In the 'layer dependencies' text field, type the name of the same layer you just added.

Outcome: the layer name will come up and you can add it a second time, which will cause an error when you try to remove the duplicate from the list

Expected: the layer type ahead should not show suggestions for layers already in the list of dependencies, so that you cannot add the same layer twice.
Comment 1 David Reyna 2016-11-30 16:30:12 UTC
Cosmetic, would require active checking per keystroke, current no side effect in that the layers are filtered for duplicates, just UI shows multiples.
Comment 2 David Reyna 2019-03-21 08:18:38 UTC
Keep this for tracking.