Hey We have recently integrated Growthbook in our ...
# announcements
s
Hey We have recently integrated Growthbook in our app and used Firebase remote config for feature flags earlier. Is there any way to migrate existing features from Firebase to Growth book Admin ? cc @fresh-football-47124 @future-teacher-7046
f
We don’t have any such script currently- but we do have an API that lets you make features- does Firebase let you export the features?
s
Yes , Firebase let us download raw features I have downloaded json already , Still finding way to create set of same features on Growthbook Let me know if you guys can help
f
Can you share a sample of what the firebase features look like?
s
yeah sure here it is
Copy code
{
  "conditions": [
    {
      "name": "android_english",
      "expression": "device.os == 'android' && device.country in ['us', 'uk']",
      "tagColor": "BLUE"
    },
    {
      "name": "tenPercent",
      "expression": "percent <= 10",
      "tagColor": "BROWN"
    }
  ],
  "parameters": {
    "welcome_message": {
      "defaultValue": {
        "value": "Welcome to this sample app"
      },
      "conditionalValues": {
        "tenPercent": {
          "value": "Welcome to this new sample app"
        }
      },
      "description": "The sample app's welcome message"
    },
    "welcome_message_caps": {
      "defaultValue": {
        "value": "false"
      },
      "conditionalValues": {
        "android_english": {
          "value": "true"
        }
      },
      "description": "Whether the welcome message should be displayed in all capital letters."
    }
  }
}
firebase feature Object define a set of conditions, and then defines default values and condition-based parameter (conditional values) values for each parameter. It also adds an optional description for each element; like code comments,
cc @fresh-football-47124
117 Views