Commit 0cff19a
committed
Add holdouts to OptimizelyConfig
This change exposes holdouts in the OptimizelyConfig API, allowing
clients to retrieve holdout information via the config endpoint.
Changes:
- Added OptimizelyHoldout type with id, key, audiences, and variationsMap
- Added Holdouts field to OptimizelyConfig struct
- Added GetHoldoutList() method to ProjectConfig interface
- Implemented getHoldouts() helper to convert holdout entities to OptimizelyHoldouts
- Populated holdouts in NewOptimizelyConfig constructor
This enables Agent and other clients to expose holdout configuration
through their /config endpoints.1 parent ce6e57b commit 0cff19a
File tree
3 files changed
+46
-0
lines changed- pkg/config
- datafileprojectconfig
3 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
295 | 300 | | |
296 | 301 | | |
297 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
| |||
365 | 374 | | |
366 | 375 | | |
367 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
368 | 406 | | |
369 | 407 | | |
370 | 408 | | |
| |||
405 | 443 | | |
406 | 444 | | |
407 | 445 | | |
| 446 | + | |
| 447 | + | |
408 | 448 | | |
409 | 449 | | |
410 | 450 | | |
| |||
0 commit comments