Open kristenwilson opened 9 years ago
Can you say a bit more about how it's possible to create a new package with the same name as an existing one? What leads to this happening rather than using the existing name?
Here are a couple screenshots to illustrate.
This would mostly likely happen because of human error/carelessness. It's also a bit hard to tell if your package has a match because the text box is too narrow and you can't see the whole of what you typed. I'm thinking that if someone types in a package name that matches an existing one exactly, the create new button should become inactive so they can't make a duplicate. This hasn't actually happened yet in testing, but it was a concern that came up. I agree that it would make sense to prevent this from the start. It's probably not an essential fix for 4.0, but something to address in a future update.
Is there anyway to prevent the creation of duplicate packages? Currently, in Refine, it's possible to use the package look up tool to create a new package with the exact same name as an existing one. It will be assigned a new identifier and the Refine project used to populate a new package in the CRED. If a user tries to do this, they should get an error message saying there is already a package with the same name and possibly asking if they would like to choose that package instead. Similarly, users should not be able to create a duplicate package name manually in the CRED.