https://www.growthbook.io/ logo
#give-feedback
Title
# give-feedback
b

bulky-oxygen-41438

05/30/2022, 1:36 PM
Hey 👋 Is it possible to add a button on the
Features
page that exports a json file with the features viewable on the dashboard?
f

future-teacher-7046

05/30/2022, 1:37 PM
Hello. What would be the main use case for this?
b

bulky-oxygen-41438

05/30/2022, 1:45 PM
We need it to be able to take the current features of our growthbook instance and export them to a developers local machine for checking features. Our webhooks are updating our deployed versions of our apps, but they can't update local machines. And we don't want to start implementing GET on /api/features/ from local machines
f

future-teacher-7046

05/30/2022, 1:48 PM
I see. So you are caching features in Redis (or similar) and the developer would download the feature.json file, update their local Redis instance, and then test the app. Is that right?
b

bulky-oxygen-41438

05/30/2022, 1:50 PM
Yes
I'm thinking something like this
f

future-teacher-7046

05/30/2022, 1:55 PM
What about a simple shell script that does a
wget
or
curl
to the /api/features/ endpoint? Then a developer could run
./update-experiments.sh
instead of going to the GrowthBook dashboard. Would that work for your use case?
b

bulky-oxygen-41438

05/30/2022, 7:56 PM
Done, thanks!
I ended up just accessing the API anyways if the cache returned an empty value
12 Views