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

500 when trying to use set slug which is occupied by solf-deleted project #2877

Open
2 tasks
JanCizmar opened this issue Jan 28, 2025 · 5 comments
Open
2 tasks
Assignees

Comments

@JanCizmar
Copy link
Contributor

JanCizmar commented Jan 28, 2025

Describe the bug
Constraint violation is thrown when trying to set slug which is occupied by soft-deleted project.

It's reported here.
https://forum.tolgee.io/editing-a-project-slug-7bfdJS3lzmsf

To Reproduce
Covered on the link.

Expected behavior
Should not throw the 500.

Versions and environment

  • Tolgee Platform version: Latest (API)

Tasks

  • Fix the Constraint violation
  • Fix the issue @jdimeo mentions below in comments
@JanCizmar JanCizmar self-assigned this Jan 28, 2025
@jdimeo
Copy link
Contributor

jdimeo commented Jan 28, 2025

Thank you! I came here to file the issue once you confirmed the bug but you already made one. I like the new integration with Slack and the forum.

@jdimeo
Copy link
Contributor

jdimeo commented Jan 28, 2025

Should we open a separate issue for the slug being ignored when a project is created via API?

@JanCizmar
Copy link
Contributor Author

I don't think it's ignored. It just generates a new one. It's the same issue, so we don't need new issue.

Thanks!

@jdimeo
Copy link
Contributor

jdimeo commented Jan 28, 2025

OK, what I mean is that if I post an API request to create a new project and specify a slug, the project model that is returned has a null slug. I have to edit the project as a second step to actually set the slug. This is whether or not this project already exists, it's when I create any new project.

@JanCizmar
Copy link
Contributor Author

Aha! So it's a new issue. But I will fix it together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants