-
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(feature flags): use organization flags API in the UI #18477
Conversation
Co-authored-by: Neil Kakkar <[email protected]>
…g/posthog into fix/feature-flags-filters
…feature-flags-filters
…g/posthog into fix/feature-flags-filters
…feature-flags-filters
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.
nice 👍
copyFlag: async () => { | ||
const orgId = values.currentOrganization?.id | ||
|
||
return await api.create(`api/organizations/${orgId}/feature_flags/copy_flags`, { |
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.
don't create the api path like so, instead add the copy_flags path here: https://github.com/PostHog/posthog/blob/master/frontend/src/lib/api.ts#L165
for an example see: https://github.com/PostHog/posthog/blob/master/frontend/src/scenes/feature-flags/featureFlagLogic.ts#L484
…g/posthog into fix/feature-flags-filters
Changes
Screen.Recording.2023-11-08.at.10.25.50.mov
Follow ups:
copy_flags
endpoint accepts multiple flagsSuggest de-prio for now:
How did you test this code?
👀