Files
insights-go/fixtures/feature_flag/test-feature-flags-dont-fallback-to-decide-when-only-local-evaluation-is-true.json
João VitorandGitHub f024683219 add support for fetching feature flag payloads (#64)
* add support for fetching feature flag payloads

* improve mock server handler readability

* drying code

* update decide fixtures

* pr feedback
2024-08-13 17:50:23 -04:00

52 lines
1.5 KiB
JSON

{
"count": 1,
"next": null,
"previous": null,
"flags": [
{
"id": 1,
"name": "Beta Feature",
"key": "beta-feature",
"filters": {
"aggregation_group_type_index": 0,
"groups": [
{
"properties": [{"key": "id", "value": 98, "operator": null, "type": "cohort"}],
"rollout_percentage": 100
}
],
"payloads": { "true": "{\"test\": 1}" }
},
"deleted": false,
"active": true,
"is_simple_flag": false,
"rollout_percentage": null
},
{
"id": 2,
"name": "Beta Feature",
"key": "beta-feature2",
"filters": {
"aggregation_group_type_index": 0,
"groups": [
{
"properties": [
{
"key": "region",
"operator": "exact",
"value": ["USA"],
"type": "person"
}
],
"rollout_percentage": 100
}
]
},
"deleted": false,
"active": true,
"is_simple_flag": false,
"rollout_percentage": null
}
],
"group_type_mapping" : {"0": "company", "1": "project"}
}