Files
insights-go/fixtures/feature_flag/test-variant-override-clashing.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

43 lines
1.6 KiB
JSON

{
"count": 1,
"next": null,
"previous": null,
"flags": [
{
"id": 719,
"name": "Beta Feature",
"key": "beta-feature",
"filters": {
"groups": [
{
"properties": [
{"key": "email", "type": "person", "value": "[email protected]", "operator": "exact"}
],
"rollout_percentage": 100,
"variant": "second-variant"
},
{
"properties": [
{"key": "email", "type": "person", "value": "[email protected]", "operator": "exact"}
],
"rollout_percentage": 100,
"variant": "first-variant"
},
{"rollout_percentage": 50, "variant": "first-variant"}
],
"multivariate": {
"variants": [
{"key": "first-variant", "name": "First Variant", "rollout_percentage": 50},
{"key": "second-variant", "name": "Second Variant", "rollout_percentage": 25},
{"key": "third-variant", "name": "Third Variant", "rollout_percentage": 25}
]
},
"payloads": { "first-variant": "{\"test\": 1}", "second-variant": "{\"test\": 2}" }
},
"deleted": false,
"active": true,
"is_simple_flag": false,
"rollout_percentage": null
}
]
}