-
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.
Add forced-decisions APIs to OptimizelyUserContext (#361)
* add maps to project config * initial code * feat: add remaining implementation * WIP: addressed implementation PR comments and fixed failing unit tests * Fixed lint errors * fix failing tests in py 3.5 * fixed failing logger import for Py2 * add OptimizelyDecisionContext and OptmizelyForcedDecisions * testcases added * Update optimizely/optimizely_user_context.py Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com> * Update optimizely/optimizely_user_context.py Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com> * Update optimizely/optimizely_user_context.py Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com> * make rule key optional in OptimizelyDecisionContext * Mutex lock and testcases added * Update optimizely/optimizely_user_context.py Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com> * use get() vs [] in remove_forced_decision * add missing colon * fix displaying reasons * Update optimizely/optimizely.py Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com> * address PR comments * more PR review fixes * fixed few more PR comments * added bucket reasons * FSC fixes * addressed more PR comments, fixed FSC test failuer about impressin events * address more PR comments * use is_valid check on opti client * addressed more PR comments * reasons and key name fixed * create get_default method for empty experiment object * fixed further PR comments * fix logger so we use the top logger in optimizely client * Refact: Refactored Forced decision (#365) * 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> * coupl of corrections * remove check on config * remove redundant import * remove redundant test about invalid datafile * add reasons to return Co-authored-by: ozayr-zaviar <uzairzaviar@gmail.com> Co-authored-by: ozayr-zaviar <54209343+ozayr-zaviar@users.noreply.github.com> Co-authored-by: Jae Kim <45045038+jaeopt@users.noreply.github.com> Co-authored-by: msohailhussain <mirza.sohailhussain@gmail.com>
- Loading branch information
1 parent
a1e31eb
commit d85d272
Showing
11 changed files
with
1,943 additions
and
895 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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.