-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat (datafile management): Implement automatic updates, datafile man…
…ager options, and stopping datafile manager (#15) Summary: - Refactor project config management into a ProjectConfigManager class, which uses DatafileManager internally - Update Optimizely to get project config by calling projectConfigManager.getConfig() instead of keeping its own reference to a project config object - Pass through datafileOptions to project config manager (allowing use of autoUpdate and updateInterval) - Add notification center event for new project config - Add an update listener to datafile manager that sends project config update notification - Call this.datafileManager.stop in close method - Add default timeout to onReady method - Update behavior of onReady to reject early when datafile manager emits invalid datafile Test plan: Unit tests Issues: https://optimizely.atlassian.net/browse/OASIS-4385 https://optimizely.atlassian.net/browse/OASIS-4386 https://optimizely.atlassian.net/browse/OASIS-4387
- Loading branch information
Showing
7 changed files
with
833 additions
and
578 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.