-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feat: added SDKkey and environment key in project config #265
Conversation
@@ -69,6 +69,16 @@ public enum OPTLYSDKVersion | |||
/// </summary> | |||
public string Revision { get; set; } | |||
|
|||
/// <summary> | |||
/// SDK key of the dataflie. |
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.
typo.
SDK Key of the datafile for specific environment.
public string SDKKey { get; set; } | ||
|
||
/// <summary> | ||
/// Environment key of the dataflie. |
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.
typo.
public IDictionary<string, OptimizelyExperiment> ExperimentsMap { get; private set; } | ||
public IDictionary<string, OptimizelyFeature> FeaturesMap { get; private set; } | ||
|
||
private string _datafile; | ||
|
||
public OptimizelyConfig(string revision, IDictionary<string, OptimizelyExperiment> experimentsMap, IDictionary<string, OptimizelyFeature> featuresMap, string datafile = null) | ||
public OptimizelyConfig(string revision, string sdkKey, string environmentKey, IDictionary<string, OptimizelyExperiment> experimentsMap, IDictionary<string, OptimizelyFeature> featuresMap, string datafile = null) |
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.
This will break functionality.
Add one more constructor and leave this constructor as it is.
OptimizelySDK/ProjectConfig.cs
Outdated
@@ -44,6 +44,15 @@ public interface ProjectConfig | |||
/// </summary> | |||
string Revision { get; set; } | |||
|
|||
/// <summary> | |||
/// SDK key of the dataflie. |
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.
typo
OptimizelySDK/ProjectConfig.cs
Outdated
string SDKKey { get; set; } | ||
|
||
/// <summary> | ||
/// Environment key of the dataflie. |
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.
typo
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
Test plan
All unit tests and FSC tests should pass