Repository navigation
Add forced-decisions APIs to OptimizelyUserContext - #361
Conversation
Jae Kim (jaeopt)
left a comment
There was a problem hiding this comment.
Some early comments :)
Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com>
Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com>
Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com>
Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com>
Mirza Sohail Hussain (msohailhussain)
left a comment
There was a problem hiding this comment.
rest of the comments, Muhammad Noman (@mnoman09) will verify.
Mirza Sohail Hussain (msohailhussain)
left a comment
There was a problem hiding this comment.
few more comments.
Muhammad Noman (mnoman09)
left a comment
There was a problem hiding this comment.
Suggested some changes.
|
Mirza Sohail Hussain (@msohailhussain) Muhammad Noman (@mnoman09) I consolidated the functions into one. Here: python-sdk/optimizely/project_config.py Lines 668 to 700 in ab40d9e When you review this pls look carefully. The two functions I consolidated were each called on a different object: get_flag_variation_by_id() was called on project_config. ----> in user_event_factory.py So I made a little change in find_validated_forced_decision() here, so the single function is only called on project_config: https://github.com/optimizely/python-sdk/pull/361/files#diff-4df94492754236d1784d8b2987b84acd6af0ea3d97a0a2e54e61fb3f03acb04cR265-R268 unit tests and FSC tests pass. |
Jae Kim (jaeopt)
left a comment
There was a problem hiding this comment.
A few changes suggested
* project config refactor * use existing loop to generate flag_variation_map * get_variation_from_experiment_rule and get_variation_from_delivery_rule removed * fsc test fix * comment addressed * commented code removed * comments from main forced decision PR resolved Co-authored-by: ozayr-zaviar <uzairzaviar@gmail.com>
Jae Kim (jaeopt)
left a comment
There was a problem hiding this comment.
All look good except for a small change suggested!
|
Mirza Sohail Hussain (@msohailhussain) Muhammad Noman (@mnoman09) Yasir Folio3 (@yasirfolio3) Can you please approve this PR so I can merge it? (mark requested changes as resolved) TY |
already approved by 2 devx members.
Mirza Sohail Hussain (msohailhussain)
left a comment
There was a problem hiding this comment.
lgtm on behalf of yasir and noman.
Summary
Add a set of new APIs for forced-decisions to OptimizelyUserContext:
Test plan
Issues