Bug 7005

Summary: Toaster UI - two or more projects having the same name can be created
Product: [Build System, Metadata & Runtime] Toaster Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: toasterAssignee: Sujith H <sujith.h>
Status: VERIFIED FIXED QA Contact: Libertad <libertad.gonzalez.de.la.cruz>
Severity: enhancement    
Priority: Medium CC: alexandru.damian, belen.barros.pena, bogdanx.a.voiculescu, cristiana.voicu
Version: 1.8   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: GUI design available
OS type for building Yocto: --- Type of Regression: New (Never tested)
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Design - Enforcing unique project names
none
Design - Enforcing unique project names
none
Snapshot shows that toaster does not let the user create two projects with the same name. none

Description Ionut Chisanovici 2014-12-02 09:11:00 UTC
Hi,

Toaster allows users to add two or more projects with the same name.

Cheers,
Ionut C
Comment 1 Alexandru Damian 2014-12-02 14:51:37 UTC
Maybe we should just let it be? We don't uniquely identify projects by name, so that's not a problem.
Comment 2 Belen Barros Pena 2014-12-02 17:50:59 UTC
Well, maybe we don't need to fix this right now, but I can see the issue. Although we don't uniquely identify projects by name in the database, we do in the interface, so having a table with project names that actually refer to different project pk's can be confusing.
Comment 3 Belen Barros Pena 2016-03-11 09:15:37 UTC
Created attachment 3024 [details]
Design - Enforcing unique project names
Comment 5 Belen Barros Pena 2016-04-19 13:36:24 UTC
Created attachment 3134 [details]
Design - Enforcing unique project names

Adding how to handle project name validation in the configuration pages (apologies: completely missed that case).
Comment 6 Belen Barros Pena 2016-04-25 14:10:22 UTC
This is already in progress review, so moving to 2.2M1
Comment 8 Libertad 2016-07-18 17:10:42 UTC
Created attachment 3290 [details]
Snapshot shows that toaster does not let the user create two projects with the same name.
Comment 9 Libertad 2016-07-18 17:14:16 UTC
Verified in commit 6f0c5537e02c59e1c8f3b08f598dc049ff8ee098

Steps taken to verify:

1. Started Toaster
2. Created a project named : "projec1"
3. Tried to create a second project with the same name : "projec1"

See attachment 3290 [details] to see the image where Toaster wont allow a second project be created with the same name.