-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: ensure project names are unique #5039
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Docker builds report
|
Uffizzi Ephemeral Environment
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5039 +/- ##
=======================================
Coverage 97.40% 97.40%
=======================================
Files 1193 1193
Lines 41675 41690 +15
=======================================
+ Hits 40593 40608 +15
Misses 1082 1082 ☔ View full report in Codecov by Sentry. |
Changes
Ensures uniqueness of project names in an organisation at the API level.
Note: I originally wrote this PR to enforce the uniqueness at the database level (see here), but I realised that this might affect integrations where we tag data with the project name (e.g. influx). As such, I have enforced this only at the API level. If we want to enforce it at the DB level later on, this will at least protect us from further exacerbating the database level issue.
Fixes #5038
How did you test this code?
Wrote 2 relevant unit tests.