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

Feat: added SDKkey and environment key in project config #265

Merged
merged 4 commits into from
Jun 16, 2021

Conversation

mnoman09
Copy link
Contributor

@mnoman09 mnoman09 commented Jun 4, 2021

Summary

  • Sdk key and environment keys are going to be parse in sdk and will be sent back in optimizelyConfig

Test plan

All unit tests and FSC tests should pass

@msohailhussain msohailhussain marked this pull request as ready for review June 15, 2021 21:36
@msohailhussain msohailhussain requested a review from a team as a code owner June 15, 2021 21:36
@@ -69,6 +69,16 @@ public enum OPTLYSDKVersion
/// </summary>
public string Revision { get; set; }

/// <summary>
/// SDK key of the dataflie.
Copy link
Contributor

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.
Copy link
Contributor

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)
Copy link
Contributor

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.

@@ -44,6 +44,15 @@ public interface ProjectConfig
/// </summary>
string Revision { get; set; }

/// <summary>
/// SDK key of the dataflie.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

string SDKKey { get; set; }

/// <summary>
/// Environment key of the dataflie.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo

Copy link
Contributor

@msohailhussain msohailhussain 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 18bc2f0 into master Jun 16, 2021
@jaeopt jaeopt deleted the mnoman/SdkKeys branch June 16, 2021 20:08
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.

3 participants