Skip to content
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

[FSSDK-9784] Return Latest Experiment When Duplicate Keys in Config #280

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

mikechu-optimizely
Copy link
Contributor

Summary

When duplicate experiment key found in the data file, SDK returns correct experiment map in OptimizelyConfig

  • Keep the latest experiment key, found in the datafile experiment list
  • Add warning log "Duplicate keys found in datafile: {key-name}"

Test plan

  • Updated existing test for duplicate key
  • All other tests cases are expected to pass

Issues

@coveralls
Copy link

Coverage Status

coverage: 97.336% (+0.003%) from 97.333%
when pulling ea06975 on mike/handle-duplicate-experiment-key
into 3fd73a2 on master.

Copy link

@andrewleap-optimizely andrewleap-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

@mikechu-optimizely mikechu-optimizely merged commit 4963820 into master Dec 4, 2023
9 checks passed
@mikechu-optimizely mikechu-optimizely deleted the mike/handle-duplicate-experiment-key branch December 4, 2023 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants