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

fix(projects): Fix project creation when access_control set #24988

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented Sep 16, 2024

Problem

Brought up in ZEN-18151 (CC @bretthoerner @raquelmsmith):
Since Thursday, project creation has been erroring when access_control was specified. This was not an issue in the app, which does not set this param on project creation, but a customer using the API this way experienced disruption.

Sentry issue POSTHOG-1KFT.

Changes

The bug appeared after a refactor in #24154 that simplified one path a bit too much. The problem is that we didn't have a test for this path of project creation.

This fixes the bug and adds a few tests to better cover project creation (access_control and primary_dashboard were lacking coverage).

@Twixes Twixes enabled auto-merge (squash) September 16, 2024 13:20
@Twixes Twixes merged commit 86231b3 into master Sep 16, 2024
86 checks passed
@Twixes Twixes deleted the fix-project-creation-with-access-control branch September 16, 2024 13:43
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

Successfully merging this pull request may close these issues.

2 participants