Skip to content

feat: defaultDecideOptions in SDKOptions #647

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 2, 2021

Conversation

ozayr-zaviar
Copy link
Contributor

Summary

  • defaultDecideOptions in SDKOption type added.

Test plan

  • All testcases including @DEFAULT_DECIDE_OPTIONS should pass.

@msohailhussain msohailhussain marked this pull request as ready for review February 2, 2021 18:34
@msohailhussain msohailhussain requested a review from a team as a code owner February 2, 2021 18:34
@@ -207,6 +207,8 @@ export interface SDKOptions {
sdkKey?: string;
// user profile that contains user information
userProfileService?: UserProfileService;
// dafailt options for decide API
defaultDecideOptions?: OptimizelyDecideOption[] | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if specifying undefined as a type is needed in this case as it is an optional parameter. WDYT @mjc1283 ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, @yavorona . @ozayr-zaviar please fix.

@@ -207,6 +207,8 @@ export interface SDKOptions {
sdkKey?: string;
// user profile that contains user information
userProfileService?: UserProfileService;
// dafailt options for decide API
defaultDecideOptions?: OptimizelyDecideOption[] | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, @yavorona . @ozayr-zaviar please fix.

@yavorona yavorona merged commit 4a635f3 into master Feb 2, 2021
@yavorona yavorona deleted the uzair/type_decide_default_options branch February 2, 2021 23:18
@coveralls
Copy link

coveralls commented Feb 3, 2021

Coverage Status

Coverage remained the same at 96.956% when pulling 2054f2b on uzair/type_decide_default_options into e1bf59c on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants