mirror of
https://github.com/hanzoai/insights-go.git
synced 2026-09-30 22:46:12 +00:00
* initial translation * matching func * consistency tests working * working person test * operator tests * regex test * handle groups * getallflags func and more tests * working tests * working tests * add onlyEvaluateLocally and sendFeatureFlagEvents * consistency tests speedup * more tets and stubs * fix * add map limit * use struct payload * fix payloads * Update feature_flags_test.go Co-authored-by: Neil Kakkar <[email protected]> * test dict separately * remove default result * address comments * condense * reorg request functions * make sure isfeatureenabled returns null Co-authored-by: Neil Kakkar <[email protected]>
60 lines
2.0 KiB
JSON
60 lines
2.0 KiB
JSON
{
|
|
"count": 1,
|
|
"next": null,
|
|
"previous": null,
|
|
"flags": [
|
|
{
|
|
"id": 719,
|
|
"name": "Beta Feature",
|
|
"key": "complex-flag",
|
|
"filters": {
|
|
"groups": [
|
|
{
|
|
"properties": [
|
|
{
|
|
"key": "region",
|
|
"operator": "exact",
|
|
"value": ["USA"],
|
|
"type": "person"
|
|
},
|
|
{
|
|
"key": "name",
|
|
"operator": "exact",
|
|
"value": ["Aloha"],
|
|
"type": "person"
|
|
}
|
|
],
|
|
"rollout_percentage": 100
|
|
},
|
|
{
|
|
"properties": [
|
|
{
|
|
"key": "email",
|
|
"operator": "exact",
|
|
"value": ["[email protected]", "[email protected]"],
|
|
"type": "person"
|
|
}
|
|
],
|
|
"rollout_percentage": 30
|
|
},
|
|
{
|
|
"properties": [
|
|
{
|
|
"key": "doesnt_matter",
|
|
"operator": "exact",
|
|
"value": ["1", "2"],
|
|
"type": "person"
|
|
}
|
|
],
|
|
"rollout_percentage": 0
|
|
}
|
|
]
|
|
},
|
|
"deleted": false,
|
|
"active": true,
|
|
"is_simple_flag": false,
|
|
"rollout_percentage": null
|
|
}
|
|
],
|
|
"group_type_mapping" : {"0": "company", "1": "project"}
|
|
} |