pezzolabs / pezzo

🕹️ Open-source, developer-first LLMOps platform designed to streamline prompt design, version management, instant delivery, collaboration, troubleshooting, observability and more.
https://pezzo.ai
Apache License 2.0
2.45k stars 202 forks source link

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

Closed arielweinberger closed 11 months ago

arielweinberger commented 11 months ago

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

adithya-s-k commented 11 months ago

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!

adityadeshlahre commented 11 months ago

image

hey @arielweinberger :wave: seems like this issue is already been handled in latest version of PEZZO! Thank you :smile:

arielweinberger commented 11 months ago

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