Skip to content

refactor(client): In getFeatureVariables, use OptimizelyConfig instead of internal ProjectConfig #75

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 1 commit into from
Oct 8, 2020

Conversation

mjc1283
Copy link
Contributor

@mjc1283 mjc1283 commented Oct 7, 2020

Summary

getFeatureVariables reaches inside the optimizely-sdk client to access its project config manager, to find what variables are associated with a given feature key. In recent versions of optimizely-sdk, it is no longer necessary to access project config manager to get this information. Features and variables are available via the public, documented OptimizelyConfig interface. This PR updates getFeatureVariables to use OptimizelyConfig.

Test Plan

  • Updated unit tests
  • Manual testing

@mjc1283 mjc1283 marked this pull request as ready for review October 7, 2020 20:19
@mjc1283 mjc1283 removed their assignment Oct 7, 2020
@mjc1283 mjc1283 requested a review from yavorona October 7, 2020 21:34
Copy link
Contributor

@yavorona yavorona left a comment

Choose a reason for hiding this comment

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

LGTM

@mjc1283 mjc1283 merged commit 1511373 into master Oct 8, 2020
@mjc1283 mjc1283 deleted the mcarroll/getfeaturevariables-uses-optlyconfig branch October 8, 2020 18:43
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.

2 participants