Skip to content

Commit eddc54a

Browse files
Updating changelog for 2.0.0 beta (#108)
1 parent d1770d5 commit eddc54a

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,36 @@
1+
## 2.0.0b1
2+
March 29th, 2018
3+
4+
This beta 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+
134
## 1.4.0
235
- Added support for IP anonymization.
336
- Added support for notification listeners.

0 commit comments

Comments
 (0)