pezzolabs/pezzo

It is possible to have multiple projects with the same name for an org

arielweinberger opened this issue · 3 comments

Report

Currently it's possible to create two projects with the same name under the same org.

Expected behavior

There should not be two projects with the same name under an org.

How to solve

Add validation to the projects resolver that checks for an existing project for the same organization ID. If found, throw a new ConflictException with a descriptive error message such as Project with the name ${name} already exists.

The front-end has error handling already, so no need to do anything there.

Steps to reproduce the problem

  1. Create a project, name it "My Project"
  2. Create another one with the same name

Logs (if applicable)

No response

Pezzo version

latest

How do you use Pezzo?

Pezzo Cloud

hey @arielweinberger

I got to know about this issue from Discord.
I'd like to take it on.

I wanted to check what the timeline is for the contribution cycle. When do you need this implemented by? I'm excited to work on this and contribute to the project. Let me know if you need any other information from me. Looking forward to hearing back!

image

hey @arielweinberger 👋
seems like this issue is already been handled in latest version of PEZZO!
Thank you 😄

Indeed, seems like it's fixed. Closing this. @adithya-s-k ping me on Discord, we'll find you a task!