Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
88b4f1e
update: integrate CMAB components into OptimizelyFactory
FarhanAnjum-opti Jun 4, 2025
2563c7b
update: add cmab_service parameter to Optimizely constructor for CMAB…
FarhanAnjum-opti Jun 4, 2025
fac8946
update: add docstring to DefaultCmabService class for improved docume…
FarhanAnjum-opti Jun 4, 2025
f74bc8c
update: implement CMAB support in bucketer and decision service, reve…
FarhanAnjum-opti Jun 13, 2025
6d1f73d
linting fix
FarhanAnjum-opti Jun 13, 2025
91d53b6
update: add cmab_uuid handling in DecisionService and related tests
FarhanAnjum-opti Jun 16, 2025
3eb755f
- updated function bucket_to_entity_id
FarhanAnjum-opti Jun 16, 2025
a5e4993
update: add None parameter to Decision constructor in user context tests
FarhanAnjum-opti Jun 16, 2025
c1cd97a
update: enhance CMAB decision handling and add related tests
FarhanAnjum-opti Jun 16, 2025
fd7c723
update: fix logger message formatting in CMAB experiment tests
FarhanAnjum-opti Jun 16, 2025
ec19c3b
mypy fix
FarhanAnjum-opti Jun 16, 2025
029262d
update: refine traffic allocation type hints and key naming in bucket…
FarhanAnjum-opti Jun 16, 2025
180fdee
update: remove unused import of cast in bucketer.py
FarhanAnjum-opti Jun 16, 2025
cd5ba39
update: fix return type for numeric_metric_value in get_numeric_value…
FarhanAnjum-opti Jun 16, 2025
92a3258
update: specify type hint for numeric_metric_value in get_numeric_val…
FarhanAnjum-opti Jun 16, 2025
fe100cb
update: fix logger reference in DefaultCmabClient initialization and …
FarhanAnjum-opti Jun 17, 2025
60a4ada
update: enhance error logging for CMAB fetch failures with detailed m…
FarhanAnjum-opti Jun 20, 2025
265d82b
update: enhance decision result handling by introducing VariationResu…
FarhanAnjum-opti Jun 20, 2025
6ca1102
update: refactor get_variation return structure and change tests acco…
FarhanAnjum-opti Jun 20, 2025
c2b3d96
-Error propagated to optimizely.py
FarhanAnjum-opti Jun 23, 2025
b901c5f
update: modify get_variation to return VariationResult and adjust rel…
FarhanAnjum-opti Jun 27, 2025
d2fc631
update: unit test fixes
FarhanAnjum-opti Jun 27, 2025
b9a8555
Revert "update: unit test fixes"
FarhanAnjum-opti Jun 30, 2025
a129854
Revert "update: modify get_variation to return VariationResult and ad…
FarhanAnjum-opti Jun 30, 2025
c637878
update: enhance decision service to handle error states and improve b…
FarhanAnjum-opti Jul 3, 2025
0bc4fbd
update: remove debug print statement from Optimizely class
FarhanAnjum-opti Jul 3, 2025
fcdad1f
update: enhance bucketing logic to support CMAB traffic allocations
FarhanAnjum-opti Jul 3, 2025
aca7df4
update: improve error logging for CMAB decision fetch failures
FarhanAnjum-opti Jul 3, 2025
72955a0
update: improve logging and error handling in bucketer and decision s…
FarhanAnjum-opti Jul 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update: add None parameter to Decision constructor in user context tests
  • Loading branch information
FarhanAnjum-opti committed Jun 16, 2025
commit a5e4993452a2da009e03e67c979584eccbc99072
30 changes: 20 additions & 10 deletions tests/test_user_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def test_decide__feature_test(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -319,7 +320,8 @@ def test_decide__feature_test__send_flag_decision_false(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -508,7 +510,8 @@ def test_decide_feature_null_variation(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.ROLLOUT
enums.DecisionSources.ROLLOUT,
None
),
[]
)
Expand Down Expand Up @@ -593,7 +596,8 @@ def test_decide_feature_null_variation__send_flag_decision_false(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.ROLLOUT
enums.DecisionSources.ROLLOUT,
None
),
[]
)
Expand Down Expand Up @@ -664,7 +668,8 @@ def test_decide__option__disable_decision_event(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -738,7 +743,8 @@ def test_decide__default_option__disable_decision_event(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -809,7 +815,8 @@ def test_decide__option__exclude_variables(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -915,7 +922,8 @@ def test_decide__option__enabled_flags_only(self):
decision_service.Decision(
expected_experiment,
expected_var,
enums.DecisionSources.ROLLOUT
enums.DecisionSources.ROLLOUT,
None
),
[]
)
Expand Down Expand Up @@ -1004,7 +1012,8 @@ def test_decide__default_options__with__options(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
)
Expand Down Expand Up @@ -1423,7 +1432,8 @@ def test_decide_experiment(self):
decision_service.Decision(
mock_experiment,
mock_variation,
enums.DecisionSources.FEATURE_TEST
enums.DecisionSources.FEATURE_TEST,
None
),
[]
),
Expand Down