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(demo): allow regular org members to create demo proj #13582

Merged
merged 5 commits into from
Jan 6, 2023

Conversation

raquelmsmith
Copy link
Member

Problem

Only admins were allowed to create demo projects. Should allow anyone in the org to do so.

Changes

This first reverts the revert in da3af1c. So you only need to review changes from then on.

  • make sure regular org members can create demo proj/data (and add a test for this)
  • put it behind a feature flag again just in case there are other issues and we want to turn it off quickly without having to revert everything

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Added a test to make sure regular members can create a demo team

@raquelmsmith raquelmsmith requested a review from kappa90 January 5, 2023 20:16
subtext="Explore insights, create dashboards, try out cohorts, and more."
/>
) : null}
<DemoProjectButton
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be behind the new flag you created?

Copy link
Member Author

@raquelmsmith raquelmsmith Jan 5, 2023

Choose a reason for hiding this comment

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

I put the check inside that component since it was implemented in a couple different places. https://github.com/PostHog/posthog/pull/13582/files#diff-b45ab9c675aae471e2211c373c0d3bbdb6faaf7f6db73d1a9e72594863f1744eR74

@raquelmsmith raquelmsmith requested a review from kappa90 January 5, 2023 20:50
@kappa90 kappa90 merged commit 0c1ff71 into master Jan 6, 2023
@kappa90 kappa90 deleted the fix/demo-data-permissioning branch January 6, 2023 13:57
thmsobrmlr added a commit that referenced this pull request Jan 10, 2023
thmsobrmlr added a commit that referenced this pull request Jan 10, 2023
thmsobrmlr added a commit that referenced this pull request Jan 10, 2023
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