Skip to content

Conversation

@jaeopt
Copy link
Contributor

@jaeopt jaeopt commented Apr 15, 2020

Summary

  • FeatureVariable Type was Enum with fixed types, which does not support future types (JSON, etc).
  • Change the type to String for forward compatibility

Test plan

  • Add a variable with undefined type name and make sure SDK does not crash

@coveralls
Copy link

coveralls commented Apr 15, 2020

Pull Request Test Coverage Report for Build 1372

  • 6 of 7 (85.71%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 89.321%

Changes Missing Coverage Covered Lines Changed/Added Lines %
core-api/src/main/java/com/optimizely/ab/Optimizely.java 0 1 0.0%
Totals Coverage Status
Change from base Build 1367: -0.03%
Covered Lines: 3764
Relevant Lines: 4214

💛 - Coveralls

Copy link
Contributor

@thomaszurkan-optimizely thomaszurkan-optimizely left a comment

Choose a reason for hiding this comment

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

LGTM

@jaeopt jaeopt merged commit 3458198 into master Apr 22, 2020
@jaeopt jaeopt deleted the jae/variable-enum branch April 22, 2020 22:48
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.

4 participants