-
Notifications
You must be signed in to change notification settings - Fork 32
Create experimentRules array directly instead of from Map Values #444
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
Conversation
…ForFeature.values().
Pull Request Test Coverage Report for Build 1827
💛 - Coveralls |
Pull Request Test Coverage Report for Build 1820
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A clean up suggested.
if (experimentIds == null) { | ||
return Collections.emptyMap(); | ||
} | ||
|
||
List<OptimizelyExperiment> experimentRulesList = new ArrayList<>(); | ||
|
||
Map<String, OptimizelyExperiment> optimizelyExperimentKeyMap = new HashMap<>(); | ||
for (String experimentId : experimentIds) { | ||
Experiment experiment = projectConfig.getExperimentIdMapping().get(experimentId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line can be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed and checking if still passes FSC. I feel this may have been added to get around an ID issue not being present in the experimentId's list but will know after FSC runs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Causing an order issue with Android-SDK
Test plan
FSC
Issues