You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+31
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,34 @@
1
+
3.2.0b1
2
+
-------
3
+
4
+
July 26th, 2019
5
+
6
+
New Features:
7
+
~~~~~~~~~~~~~
8
+
9
+
- Added support for automatic datafile management via `PollingConfigManager`_:
10
+
11
+
- The `PollingConfigManager`_ is an implementation of the `BaseConfigManager`_.
12
+
- Users may provide one of datafile or SDK key (sdk_key) or both to `optimizely.Optimizely`. Based on that the SDK will use the `StaticConfigManager`_ or the `PollingConfigManager`_. Refer to the README_ for more instructions.
13
+
- An initial datafile can be provided to the `PollingConfigManager` to bootstrap before making HTTP requests for the hosted datafile.
14
+
- Requests for the datafile are made in a separate thread and are scheduled with fixed delay.
15
+
- Configuration updates can be subscribed to by adding .
- `NotificationCenter.clear_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_notification_listeners`. (`#182`_)
23
+
- `NotificationCenter.clear_all_notifications` is deprecated as of this release. Please use `NotificationCenter.clear_all_notification_listeners`. (`#182`_)
See the Optimizely `Full Stack documentation`_ to learn how to
33
+
You can initialize the Optimizely instance in three ways: with a datafile, by providing an `sdk_key`, or by providing an implementation of `config_manager.BaseConfigManager`_. Each method is described below.
34
+
35
+
1. Initialize Optimizely with a datafile. This datafile will be used as
36
+
ProjectConfig throughout the life of Optimizely instance.
37
+
::
38
+
39
+
optimizely.Optimizely(
40
+
datafile
41
+
)
42
+
43
+
2. Initialize Optimizely by providing an 'sdk_key'. This will initialize
44
+
a PollingConfigManager that makes an HTTP GET request to the URL (formed
45
+
using your provided `sdk key` and the default datafile CDN URL
46
+
template) to asynchronously download the project datafile at regular
47
+
intervals and update ProjectConfig when a new datafile is received. A
48
+
hard-coded datafile can also be provided along with the `sdk_key` that
49
+
will be used initially before any update.
50
+
::
51
+
52
+
optimizely.Optimizely(
53
+
sdk_key='put_your_sdk_key_here'
54
+
)
55
+
56
+
If providing a datafile, the initialization will look like:
57
+
::
58
+
59
+
optimizely.Optimizely(
60
+
datafile=datafile,
61
+
sdk_key='put_your_sdk_key_here'
62
+
)
63
+
64
+
3. Initialize Optimizely by providing a ConfigManager that implements `BaseConfigManager`_. You may use our `PollingConfigManager` as needed.
65
+
::
66
+
67
+
optimizely.Optimizely(
68
+
config_manager=custom_config_manager
69
+
)
70
+
71
+
PollingConfigManager
72
+
''''''''''''''''''''
73
+
74
+
The `PollingConfigManager` asynchronously polls for datafiles from a
75
+
specified URL at regular intervals by making HTTP requests.
0 commit comments