Skip to content

WIP: Added new Optimizely config fields (DO NOT REVIEW) #685

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

Closed
wants to merge 2 commits into from

Conversation

ozayr-zaviar
Copy link
Contributor

Summary

  • The "what"; a concise description of each logical change
  • Another change

The "why", or other context.

Test plan

Issues

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.1%) to 96.847% when pulling db0cf63 on uzair/optimizely-config-v2 into a4dcc3e on master.

@@ -22,6 +22,9 @@ import {
VariationVariable,
Variation,
Rollout,
OptimizelyAttribute,
OptimizelyAudience,
OptimizelyEvents
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be OptimizelyEvent

@@ -145,5 +145,13 @@ describe('lib/core/optimizely_config', function() {
it('should return correct config environmentKey ', function() {
assert.equal(optimizelyConfigObject.environmentKey, datafile.environmentKey);
});

it('should return correct config attributes', function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing unit tests.

@@ -38,15 +41,51 @@ export class OptimizelyConfig {
public featuresMap: OptimizelyFeaturesMap;
public revision: string;
public sdkKey?: string;
public attributes: OptimizelyAttribute[];
public audiences: OptimizelyAudience[];
public events: OptimizelyEvents[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Please fix this too, this should be OptimizelyEvent[]

@raju-opti raju-opti deleted the uzair/optimizely-config-v2 branch October 4, 2023 12:39
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