-
Notifications
You must be signed in to change notification settings - Fork 83
refactor: Consolidate datafile-manager package into optimizely-sdk #781
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
Sorry about all the code collisions @ozayr-zaviar 😬 |
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 great! Suggested a few minor changes. Can you update lock file version to 2.
@@ -23,7 +23,7 @@ module.exports = { | |||
plugins: ['karma-mocha', 'karma-webpack', require('karma-browserstack-launcher')], | |||
|
|||
webpack: { | |||
mode: 'production', | |||
mode:'development', |
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.
why is this change needed?
@@ -23,7 +23,7 @@ module.exports = { | |||
plugins: ['karma-mocha', 'karma-webpack', require('karma-browserstack-launcher')], | |||
|
|||
webpack: { | |||
mode: 'production', |
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.
can you revert it back if it works?
} | ||
return new HttpPollingDatafileManager(datafileManagerConfig); | ||
} | ||
|
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.
fix end of line
// console.log(datafileManager.HttpPollingDatafileManager, { | ||
// autoUpdate: true, | ||
// datafileAccessToken: 'THE_TOKEN', | ||
// updateInterval: 5000, | ||
// urlTemplate: 'http://example.com', | ||
// sdkKey: 'SDK_KEY', | ||
// }) | ||
sandbox.stub(datafileManager,'HttpPollingDatafileManager') | ||
// sandbox.stub(datafileManager.HttpPollingDatafileManager, 'NodeDatafileManager') | ||
// sandbox.stub(datafileManager, 'NodeDatafileManager') |
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.
remove unneeded commented code.
} | ||
return new HttpPollingDatafileManager(datafileManagerConfig); | ||
} | ||
|
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.
fix end of line
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 Great!
Summary
Integrated Datafile Manager package with Optimizely SDK to remove external dependency.
Test plan
All existing unit tests and FSC tests pass.
Jira
[FSSDK-8205]