-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(flags): Set up initial backend for feature management #26628
base: master
Are you sure you want to change the base?
Conversation
…ure-management-ui-setup
…ure-management-ui-setup
…ure-management-ui-setup
…Hog/posthog into feature-management-ui-setup
…ure-management-ui-setup
…ure-management-ui-setup
…ure-management-backend-setup
…ure-management-backend-setup
…ure-management-ui-setup
…Hog/posthog into feature-management-backend-setup
…Hog/posthog into feature-management-backend-setup
…ure-management-backend-setup
…ure-management-backend-setup
…ure-management-backend-setup
…ure-management-backend-setup
@@ -30,6 +30,7 @@ class Stage(models.TextChoices): | |||
stage = models.CharField(max_length=40, choices=Stage.choices) | |||
documentation_url = models.URLField(max_length=800, blank=True) | |||
created_at = models.DateTimeField(auto_now_add=True) | |||
feature_management = models.ForeignKey("posthog.Feature", on_delete=models.SET_NULL, null=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Why feature_management
vs just feature
?"
The existing feature_flag
foreign key on some of these models uses related names that would clash with feature
:
related_name="features",
related_query_name="feature",
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, that's a bit annoying, but I understand the choice.
…ure-management-backend-setup
…/PostHog/posthog into feature-management-backend-setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great! Seems like CI is a bit mad but I think the changes are sensible and the tests are good.
@@ -30,6 +30,7 @@ class Stage(models.TextChoices): | |||
stage = models.CharField(max_length=40, choices=Stage.choices) | |||
documentation_url = models.URLField(max_length=800, blank=True) | |||
created_at = models.DateTimeField(auto_now_add=True) | |||
feature_management = models.ForeignKey("posthog.Feature", on_delete=models.SET_NULL, null=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, that's a bit annoying, but I understand the choice.
…/PostHog/posthog into feature-management-backend-setup
…/PostHog/posthog into feature-management-backend-setup
Problem
Follow up to https://github.com/PostHog/posthog/pull/26363/files
Changes
Adds the following endpoints for feature management CRUD ops:
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Added API tests