Skip to content

Adds IOptimizely interface #93

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 2 commits into from
Aug 21, 2018
Merged

Conversation

Nevett
Copy link
Contributor

@Nevett Nevett commented Aug 9, 2018

Fixes #92.

Extracted an interface for all public members.

Also fixed a couple of the xmldocs.

@optibot
Copy link
Contributor

optibot commented Aug 9, 2018

Can one of the admins verify this patch?

1 similar comment
@optibot
Copy link
Contributor

optibot commented Aug 9, 2018

Can one of the admins verify this patch?

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Thanks for submitting. We'll take a look. In the meantime, could you please go through our CONTRIBUTING MD doc and sign the CLA?

@Nevett
Copy link
Contributor Author

Nevett commented Aug 15, 2018

Done!

/// <param name="userAttributes">The user's attributes</param>
/// <param name="variableType">Variable type</param>
/// <returns>string | null Feature variable value</returns>
string GetFeatureVariableValueForType(string featureKey, string variableKey, string userId,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this method, it is being used internally. no interface needed.

@@ -360,7 +360,7 @@ public Variation GetForcedVariation(string experimentKey, string userId)
/// Determine whether a feature is enabled.
/// Send an impression event if the user is bucketed into an experiment using the feature.
/// </summary>
/// <param name="experimentKey">The experiment key</param>
/// <param name="featureKey">The experiment key</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change 'experiment' to 'feature' in description.

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

Please address the feedback left by @msohailhussain

Copy link
Contributor

@mikeproeng37 mikeproeng37 left a comment

Choose a reason for hiding this comment

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

lgtm, will merge once tests pass on our end

@mikeproeng37 mikeproeng37 merged commit 32c0dca into optimizely:master Aug 21, 2018
@mikeproeng37 mikeproeng37 mentioned this pull request Aug 21, 2018
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.

Give the Optimizely client an interface to facilitate testing
4 participants