Bug 10205

Summary: The layer typeahead shows the project release branch for non-git layers
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Toaster default assignee <toaster>
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 15:47:01 UTC
Steps to reproduce:

1. Create a Toaster project with release master

2. Go to the import layer page and import a layer specifying a directory as the location of the layer source code

3. Back in the project configuration page, remove the layer you just imported from the layers list

4. In the "type a layer name" above the layers list, type the name of the layer you just removed

Outcome: the layer in the type ahead suggestions shows 

[ | master ]

next to it. 

Expected: No branch should be shown for non-git layers like this one, since the source code location points to a directory. The typeahead suggestions should show the layer name only.