-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FSSDK-10763] Implement UPS request batching for decideForKeys (#440)
* update: UserProfile class created, changes in decision_service, decide_for_keys * update: get_variation function changed * update: new function in decision_service * update: everything implemented from java. tests are failing * update: minor changes * update: user_profile_tracker added to tests * update: some tests fixed * optimizely/decision_service.py -> Added check for `ignore_user_profile` in decision logic. optimizely/user_profile.py -> Improved user profile loading with missing key checks. tests/test_decision_service.py -> Updated tests to include user profile tracker. * tests/test_decision_service.py -> Added expected decision object. tests/test_decision_service.py -> Updated experiment bucket map call. tests/test_decision_service.py -> Introduced user_profile_tracker usage. tests/test_decision_service.py -> Modified method calls with user_profile_tracker. * optimizely/decision_service.py -> fixed get_variations_for_feature_list * optimizely/decision_service.py -> Fixed how rollout reasons are added tests/test_decision_service.py -> Added user profile tracker object * tests/test_user_context.py -> fixed some tests * optimizely/user_profile.py -> Updated type for `experiment_bucket_map`. tests/test_decision_service.py -> Fixed tests * all unit tests passing * lint check * fix: typechecks added * more types updated * all typechecks passing * gha typechecks fixed * all typecheck should pass * lint check should pass * removed unnecessary comments * removed comments from test * optimizely/decision_service.py -> Removed user profile save logic optimizely/optimizely.py -> Added loading and saving profile logic * optimizely/user_profile.py -> Updated experiment_bucket_map type optimizely/user_profile.py -> Testing user profile update logic * optimizely/decision_service.py -> Commented out profile loading optimizely/user_profile.py -> Removed unused import statement * optimizely/decision_service.py -> Removed unused profile loading optimizely/user_profile.py -> Fixed handling of reasons list optimizely/user_profile.py -> Improved profile retrieval error logging tests/test_decision_service.py -> Updated mock checks to simplify tests tests/test_user_profile.py -> Added tests for user profile handling tests/test_optimizely.py -> New test for variation lookup and save * optimizely/user_profile.py -> Reverted back to variation ID retrieval logic. * optimizely/user_profile.py -> Added error handling logic
- Loading branch information
1 parent
40880ff
commit 22c74ee
Showing
7 changed files
with
601 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.