Skip to content

Commit decbc7b

Browse files
authored
Bump to 2.0 for General Availability. (#115)
1 parent 5d40bce commit decbc7b

File tree

3 files changed

+39
-1
lines changed

3 files changed

+39
-1
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,37 @@
1+
## 2.0.0
2+
April 12th, 2018
3+
4+
This major release introduces APIs for Feature Management. It also introduces some breaking changes listed below.
5+
6+
### New Features
7+
- Introduced the `is_feature_enabled` API to determine whether to show a feature to a user or not.
8+
```
9+
is_enabled = optimizel_client.is_feature_enabled('my_feature_key', 'my_user', user_attributes)
10+
```
11+
12+
- All enabled features for the user can be retrieved by calling:
13+
```
14+
enabled_features = optimizely_client.get_enabled_features('my_user', user_attributes)
15+
```
16+
17+
- Introduced Feature Variables to configure or parameterize a feature. There are four variable types: `String`, `Integer`, `Double`, `Boolean`.
18+
```
19+
string_variable = optimizely_client.get_feature_variable_string('my_feature_key', 'string_variable_key', 'my_user')
20+
integer_variable = optimizely_client.get_feature_variable_integer('my_feature_key', 'integer_variable_key', 'my_user')
21+
double_variable = optimizely_client.get_feature_variable_double('my_feature_key', 'double_variable_key', 'my_user')
22+
boolean_variable = optimizely_client.get_feature_variable_boolean('my_feature_key', 'boolean_variable_key', 'my_user')
23+
```
24+
25+
### Breaking changes
26+
- The `track` API with revenue value as a stand-alone parameter has been removed. The revenue value should be passed in as an entry in the event tags dict. The key for the revenue tag is `revenue` and the passed in value will be treated by Optimizely as the value for computing results.
27+
```
28+
event_tags = {
29+
'revenue': 1200
30+
}
31+
32+
optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
33+
```
34+
135
## 2.0.0b1
236
March 29th, 2018
337

@@ -30,6 +64,7 @@ event_tags = {
3064
}
3165
3266
optimizely_client.track('event_key', 'my_user', user_attributes, event_tags)
67+
```
3368

3469
## 1.4.0
3570
- Added support for IP anonymization.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ The SDK is available through [PyPi](https://pypi.python.org/pypi?name=optimizely
1515
pip install optimizely-sdk
1616
```
1717

18+
### Feature Management Access
19+
To access the Feature Management configuration in the Optimizely dashboard, please contact your Optimizely account executive.
20+
1821
### Using the SDK
1922
See the Optimizely Full Stack [developer documentation](http://developers.optimizely.com/server/reference/index.html) to learn how to set up your first Python project and use the SDK.
2023

optimizely/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
# See the License for the specific language governing permissions and
1212
# limitations under the License.
1313

14-
version_info = (2, 0, '0-beta.1')
14+
version_info = (2, 0, 0)
1515
__version__ = '.'.join(str(v) for v in version_info)

0 commit comments

Comments
 (0)