Commit 1135958
[FSSDK-11176] Update: Implement Decision Service methods to handle CMAB (#369)
* update: Extend LRUCache with remove method and corresponding tests
* update: Clean up whitespace in LRUCache implementation and tests
* update: Extend copyright notice to include 2025
* update: Implement Default CMAB Service
* update: Enable keyword initialization for CmabDecision and CmabCacheValue structs (otherwise breaks in ruby version change)
* update: Refactor bucketing logic to handle empty traffic ranges and improve logging
* update: Add support for CMAB traffic allocation in bucketing logic
* update: Enhance DecisionService to support CMAB traffic allocation and decision retrieval
* update: Integrate CMAB decision logic into DecisionService and update related tests
* update: Refactor DecisionService to return DecisionResult struct instead of Decision struct
* update: Integrate CMAB components into Project class and enhance decision handling
* update: Refactor CMAB traffic allocation handling and enhance decision service error logging
* update: Refactor OptimizelyDecision instantiation to use keyword arguments for clarity
* update: Remove commented debug output from Optimizely user context spec
* Trigger CI build
---------
Co-authored-by: Matjaz Pirnovar <Mat001@users.noreply.github.com>1 parent adbd74e commit 1135958
File tree
6 files changed
+773
-331
lines changed- lib
- optimizely
- decide
- spec
6 files changed
+773
-331
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
51 | 57 | | |
52 | 58 | | |
53 | 59 | | |
| |||
131 | 137 | | |
132 | 138 | | |
133 | 139 | | |
134 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
| |||
337 | 355 | | |
338 | 356 | | |
339 | 357 | | |
340 | | - | |
| 358 | + | |
341 | 359 | | |
342 | 360 | | |
343 | 361 | | |
| |||
358 | 376 | | |
359 | 377 | | |
360 | 378 | | |
361 | | - | |
362 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
363 | 382 | | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
364 | 390 | | |
365 | 391 | | |
366 | 392 | | |
| |||
599 | 625 | | |
600 | 626 | | |
601 | 627 | | |
602 | | - | |
603 | | - | |
| 628 | + | |
| 629 | + | |
604 | 630 | | |
605 | 631 | | |
606 | 632 | | |
| |||
839 | 865 | | |
840 | 866 | | |
841 | 867 | | |
842 | | - | |
| 868 | + | |
| 869 | + | |
843 | 870 | | |
844 | 871 | | |
845 | 872 | | |
| |||
1029 | 1056 | | |
1030 | 1057 | | |
1031 | 1058 | | |
1032 | | - | |
| 1059 | + | |
| 1060 | + | |
1033 | 1061 | | |
1034 | 1062 | | |
1035 | 1063 | | |
| |||
1097 | 1125 | | |
1098 | 1126 | | |
1099 | 1127 | | |
1100 | | - | |
| 1128 | + | |
| 1129 | + | |
1101 | 1130 | | |
1102 | 1131 | | |
1103 | 1132 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
| |||
84 | 103 | | |
85 | 104 | | |
86 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
87 | 114 | | |
88 | 115 | | |
89 | 116 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 117 | + | |
103 | 118 | | |
104 | 119 | | |
105 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
58 | 77 | | |
59 | 78 | | |
60 | 79 | | |
0 commit comments