Skip to content

Multiple issues with the Posthog Provider #152

@Strernd

Description

@Strernd

Hi!

I documented some issues I had and still have with setting up the posthog provider for flags-sdk and the toolbar here and here.

To summarize the issues:

  • Some docs could be updated to make the integration smoother
  • You are only loading activated feature flags in the adapter. Either I am using Posthog or the flags-sdk wrong, or if I'm not mistaken you should be loading all feature flags and use the returned active parameter to determine the status. You probably want to filter out deleted flags. This means I can't test flags locally now, because I always have to release them in order to view them in the explorer and being able to overwrite them.
  • Hints, which seem to be a concept for your flags explorer or the Vercel toolbar in general are never forwarded to the UI.
  • An empty list of flags (none setup yet) should be handled by a hint or be considered valid, otherwise the Setup process will appear stuck.

Happy to support or submit a PR if needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions