Skip to content
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

Check if project-slug exists when creating a project #162

Closed
oliverroick opened this issue Apr 28, 2016 · 1 comment
Closed

Check if project-slug exists when creating a project #162

oliverroick opened this issue Apr 28, 2016 · 1 comment
Assignees
Labels

Comments

@oliverroick
Copy link
Member

When creating a project with a name that already exists an IntegrityError is thrown, because the slug must be unique:

IntegrityError at /projects/new/
duplicate key value violates unique constraint "organization_project_project_slug_key"
DETAIL:  Key (project_slug)=(xls-project-3) already exists.

When creating a project, it should be checked if a project with the same slug already exists and then change the slug accordingly.

@seav
Copy link
Contributor

seav commented Jun 6, 2016

This bug is still occurring on the latest master. I have created a functional test for this specific bug: projects/test_project_add_duplicate.py

@seav seav reopened this Jun 6, 2016
ian-ross added a commit that referenced this issue Jun 7, 2016
Fix #162 -- Always verify slug when object is created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants