open-feature / js-sdk-contrib

OpenFeature Providers and Hooks for JavaScript
https://openfeature.dev
Apache License 2.0
35 stars 35 forks source link

feat: Create a Growthbook server side provider #938

Open msamper opened 3 months ago

msamper commented 3 months ago

This PR

How to test

Integrate OpenFeature into a test node server and set it up with this new GrowthBook provider. Ensure that GrowthBook flag evaluation works as expected using the OpenFeature API

How to set up OpenFeature with node

OpenFeature.setProvider(new GrowthbookProvider(gbContext, initOptions))

lukas-reining commented 3 months ago

Hey @msamper, great addition, I will have a look tomorrow!

beeme1mr commented 3 months ago

Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.

msamper commented 3 months ago

Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.

@beeme1mr I rebased on the main branch of my fork and it seems like there's still CI issues with the e2e and the lint-test-build. Should I be rebasing on open-feature:main instead?

lukas-reining commented 3 months ago

Hi @msamper, could you please rebase this PR? It should resolve the E2E issue.

@beeme1mr I rebased on the main branch of my fork and it seems like there's still CI issues with the e2e and the lint-test-build. Should I be rebasing on open-feature:main instead?

Yes, open-feature:main should be your branch to rebase on @msamper.