Skip to content

fix(projects): honor custom slug in organization project creation - #120761

Open
fallintoplace wants to merge 2 commits into
getsentry:masterfrom
fallintoplace:fix/organization-project-custom-slug
Open

fix(projects): honor custom slug in organization project creation#120761
fallintoplace wants to merge 2 commits into
getsentry:masterfrom
fallintoplace:fix/organization-project-custom-slug

Conversation

@fallintoplace

Copy link
Copy Markdown

Summary

  • pass the validated project slug through the organization-level creation endpoint
  • preserve automatic slug generation when no slug is supplied
  • cover custom slugs in both the API response and persisted project

Why

The organization-level endpoint validates an optional slug but previously discarded it during project creation. This made its behavior inconsistent with the team-level endpoint and silently replaced caller-supplied slugs with generated ones.

Testing

  • repository Python pre-commit checks
  • mypy pre-push check
  • focused ruff check

@fallintoplace
fallintoplace requested a review from a team as a code owner July 28, 2026 17:25
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 28, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0d28b89. Configure here.

Comment thread src/sentry/core/endpoints/organization_projects.py Outdated
Comment thread src/sentry/core/endpoints/organization_projects.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant