Skip to content

Commit

Permalink
FF-2526 include environment and allocation.name in UFC response (#38)
Browse files Browse the repository at this point in the history
* FF-2526 include environment in UFC response

* FF-2526 added "allocation.name" to flag config

* FF-2526 update test cases

* FF-2526 update environment to Dto
  • Loading branch information
greghuels authored Jul 1, 2024
1 parent fff3b42 commit 60e1a5f
Show file tree
Hide file tree
Showing 20 changed files with 883 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ufc/bandit-flags-v1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"createdAt": "2024-04-17T19:40:53.716Z",
"environment": {
"name": "Test"
},
"flags": {
"non_bandit_flag": {
"key": "non_bandit_flag",
Expand All @@ -12,6 +15,7 @@
"allocations": [
{
"key": "control-allocation",
"name": "Allocation for control-allocation",
"splits": [
{
"variationKey": "control",
Expand All @@ -33,6 +37,7 @@
"allocations": [
{
"key": "control-allocation",
"name": "Allocation for control-allocation",
"splits": [
{
"variationKey": "control",
Expand All @@ -54,6 +59,7 @@
"allocations": [
{
"key": "analysis",
"name": "Allocation for analysis",
"splits": [
{
"variationKey": "control",
Expand Down Expand Up @@ -86,6 +92,7 @@
},
{
"key": "training",
"name": "Allocation for training",
"splits": [
{
"variationKey": "banner_bandit",
Expand Down Expand Up @@ -113,6 +120,7 @@
"allocations": [
{
"key": "training",
"name": "Allocation for training",
"rules": [
{
"conditions": [
Expand All @@ -136,6 +144,7 @@
},
{
"key": "default",
"name": "Allocation for default",
"rules": [],
"splits": [
{
Expand Down
3 changes: 3 additions & 0 deletions ufc/bandit-models-v1.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"updatedAt": "2023-09-13T04:52:06.462Z",
"environment": {
"name": "Test"
},
"bandits": {
"banner_bandit": {
"banditKey": "banner_bandit",
Expand Down
37 changes: 37 additions & 0 deletions ufc/flags-v1-obfuscated.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"createdAt": "2024-04-17T19:40:53.716Z",
"environment": {
"name": "Test"
},
"flags": {
"73fcc84c69e49e31fe16a29b2b1f803b": {
"key": "73fcc84c69e49e31fe16a29b2b1f803b",
Expand Down Expand Up @@ -52,6 +55,7 @@
"allocations": [
{
"key": "cm9sbG91dA==",
"name": "QWxsb2NhdGlvbiBmb3Igcm9sbG91dA==",
"doLog": true,
"splits": [
{
Expand Down Expand Up @@ -80,6 +84,7 @@
"allocations": [
{
"key": "dmFsaWQ=",
"name": "QWxsb2NhdGlvbiBmb3IgdmFsaWQ=",
"doLog": true,
"rules": [
{
Expand All @@ -103,6 +108,7 @@
},
{
"key": "aW52YWxpZA==",
"name": "QWxsb2NhdGlvbiBmb3IgaW52YWxpZA==",
"doLog": true,
"rules": [],
"splits": [
Expand Down Expand Up @@ -132,6 +138,7 @@
"allocations": [
{
"key": "cGFydGlhbC1leGFtcGxl",
"name": "QWxsb2NhdGlvbiBmb3IgcGFydGlhbC1leGFtcGxl",
"doLog": true,
"rules": [
{
Expand All @@ -153,6 +160,7 @@
},
{
"key": "dGVzdA==",
"name": "QWxsb2NhdGlvbiBmb3IgdGVzdA==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -196,6 +204,7 @@
"allocations": [
{
"key": "MS1mb3ItMQ==",
"name": "QWxsb2NhdGlvbiBmb3IgMS1mb3ItMQ==",
"doLog": true,
"rules": [
{
Expand All @@ -219,6 +228,7 @@
},
{
"key": "Mi1mb3ItMTIzNDU2Nzg5",
"name": "QWxsb2NhdGlvbiBmb3IgMi1mb3ItMTIzNDU2Nzg5",
"doLog": true,
"rules": [
{
Expand All @@ -242,6 +252,7 @@
},
{
"key": "My1mb3Itbm90LTI=",
"name": "QWxsb2NhdGlvbiBmb3IgMy1mb3Itbm90LTI=",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -295,6 +306,7 @@
"allocations": [
{
"key": "MS1mb3Itb25lLW9m",
"name": "QWxsb2NhdGlvbiBmb3IgMS1mb3Itb25lLW9m",
"doLog": true,
"rules": [
{
Expand All @@ -318,6 +330,7 @@
},
{
"key": "Mi1mb3ItbWF0Y2hlcw==",
"name": "QWxsb2NhdGlvbiBmb3IgMi1mb3ItbWF0Y2hlcw==",
"doLog": true,
"rules": [
{
Expand All @@ -339,6 +352,7 @@
},
{
"key": "My1mb3Itbm90LW9uZS1vZg==",
"name": "QWxsb2NhdGlvbiBmb3IgMy1mb3Itbm90LW9uZS1vZg==",
"doLog": true,
"rules": [
{
Expand All @@ -362,6 +376,7 @@
},
{
"key": "NC1mb3Itbm90LW1hdGNoZXM=",
"name": "QWxsb2NhdGlvbiBmb3IgNC1mb3Itbm90LW1hdGNoZXM=",
"doLog": true,
"rules": [
{
Expand All @@ -383,6 +398,7 @@
},
{
"key": "NS1mb3ItbWF0Y2hlcy1udWxs",
"name": "QWxsb2NhdGlvbiBmb3IgNS1mb3ItbWF0Y2hlcy1udWxs",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -424,6 +440,7 @@
"allocations": [
{
"key": "b24tZm9yLU5B",
"name": "QWxsb2NhdGlvbiBmb3Igb24tZm9yLU5B",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -459,6 +476,7 @@
},
{
"key": "b24tZm9yLWFnZS01MCs=",
"name": "QWxsb2NhdGlvbiBmb3Igb24tZm9yLWFnZS01MCs=",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -490,6 +508,7 @@
},
{
"key": "b2ZmLWZvci1hbGw=",
"name": "QWxsb2NhdGlvbiBmb3Igb2ZmLWZvci1hbGw=",
"doLog": true,
"rules": [],
"splits": [
Expand Down Expand Up @@ -523,6 +542,7 @@
"allocations": [
{
"key": "b2xkLXZlcnNpb25z",
"name": "QWxsb2NhdGlvbiBmb3Igb2xkLXZlcnNpb25z",
"doLog": true,
"rules": [
{
Expand All @@ -544,6 +564,7 @@
},
{
"key": "Y3VycmVudC12ZXJzaW9ucw==",
"name": "QWxsb2NhdGlvbiBmb3IgY3VycmVudC12ZXJzaW9ucw==",
"doLog": true,
"rules": [
{
Expand All @@ -570,6 +591,7 @@
},
{
"key": "bmV3LXZlcnNpb25z",
"name": "QWxsb2NhdGlvbiBmb3IgbmV3LXZlcnNpb25z",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -613,6 +635,7 @@
"allocations": [
{
"key": "c21hbGwtc2l6ZQ==",
"name": "QWxsb2NhdGlvbiBmb3Igc21hbGwtc2l6ZQ==",
"doLog": true,
"rules": [
{
Expand All @@ -634,6 +657,7 @@
},
{
"key": "bWVkdW0tc2l6ZQ==",
"name": "QWxsb2NhdGlvbiBmb3IgbWVkdW0tc2l6ZQ==",
"doLog": true,
"rules": [
{
Expand All @@ -660,6 +684,7 @@
},
{
"key": "bGFyZ2Utc2l6ZQ==",
"name": "QWxsb2NhdGlvbiBmb3IgbGFyZ2Utc2l6ZQ==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -703,6 +728,7 @@
"allocations": [
{
"key": "b2xkLXZlcnNpb25z",
"name": "QWxsb2NhdGlvbiBmb3Igb2xkLXZlcnNpb25z",
"doLog": true,
"endAt": "MjAwMi0xMC0zMVQwOTowMDowMC41OTRa",
"splits": [
Expand All @@ -714,6 +740,7 @@
},
{
"key": "ZnV0dXJlLXZlcnNpb25z",
"name": "QWxsb2NhdGlvbiBmb3IgZnV0dXJlLXZlcnNpb25z",
"doLog": true,
"startAt": "MjA1Mi0xMC0zMVQwOTowMDowMC41OTRa",
"splits": [
Expand All @@ -725,6 +752,7 @@
},
{
"key": "Y3VycmVudC12ZXJzaW9ucw==",
"name": "QWxsb2NhdGlvbiBmb3IgY3VycmVudC12ZXJzaW9ucw==",
"doLog": true,
"startAt": "MjAyMi0xMC0zMVQwOTowMDowMC41OTRa",
"endAt": "MjA1MC0xMC0zMVQwOTowMDowMC41OTRa",
Expand Down Expand Up @@ -755,6 +783,7 @@
"allocations": [
{
"key": "bnVsbC1vcGVyYXRvcg==",
"name": "QWxsb2NhdGlvbiBmb3IgbnVsbC1vcGVyYXRvcg==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -785,6 +814,7 @@
},
{
"key": "bm90LW51bGwtb3BlcmF0b3I=",
"name": "QWxsb2NhdGlvbiBmb3Igbm90LW51bGwtb3BlcmF0b3I=",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -840,6 +870,7 @@
"allocations": [
{
"key": "aWQgcnVsZQ==",
"name": "QWxsb2NhdGlvbiBmb3IgaWQgcnVsZQ==",
"doLog": false,
"rules": [
{
Expand All @@ -861,6 +892,7 @@
},
{
"key": "aW50ZXJuYWwgdXNlcnM=",
"name": "QWxsb2NhdGlvbiBmb3IgaW50ZXJuYWwgdXNlcnM=",
"doLog": false,
"rules": [
{
Expand All @@ -882,6 +914,7 @@
},
{
"key": "ZXhwZXJpbWVudA==",
"name": "QWxsb2NhdGlvbiBmb3IgZXhwZXJpbWVudA==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -972,6 +1005,7 @@
},
{
"key": "cm9sbG91dA==",
"name": "QWxsb2NhdGlvbiBmb3Igcm9sbG91dA==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -1033,6 +1067,7 @@
"allocations": [
{
"key": "dGFyZ2V0ZWQgYWxsb2NhdGlvbg==",
"name": "QWxsb2NhdGlvbiBmb3IgdGFyZ2V0ZWQgYWxsb2NhdGlvbg==",
"doLog": true,
"rules": [
{
Expand Down Expand Up @@ -1077,6 +1112,7 @@
},
{
"key": "NTAvNTAgc3BsaXQ=",
"name": "QWxsb2NhdGlvbiBmb3IgNTAvNTAgc3BsaXQ=",
"doLog": true,
"rules": [],
"splits": [
Expand Down Expand Up @@ -1130,6 +1166,7 @@
"allocations": [
{
"key": "NTAvNTAgc3BsaXQ=",
"name": "QWxsb2NhdGlvbiBmb3IgNTAvNTAgc3BsaXQ=",
"doLog": true,
"rules": [],
"splits": [
Expand Down
Loading

0 comments on commit 60e1a5f

Please sign in to comment.