Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 1.2.0
October 4, 2017

### New Features
* Introduce Numeric Metrics - This allows you to include a floating point value that is used to track numeric values in your experiments.
```
var eventTags = new EventTags()
{
{ "value", 10.00 },
};

OptimizelyClient.Track(eventKey, userId, attributes, eventTags);
```

* Introduce Forced Variation - This allows you to force users into variations programmatically in real time for QA purposes without requiring datafile downloads from the network.
```
var result = OptimizelyClient.setForcedVariation(experimentKey, userId, forcedVariationKey);
```

* Upgrade to use new [event API](https://developers.optimizely.com/x/events/api/index.html).

## 1.1.1
- Add .Net 4.0 build in nuget package.

Expand Down
2 changes: 1 addition & 1 deletion OptimizelySDK.Package/OptimizelySDK.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>Optimizely.SDK</id>
<version>1.1.1</version>
<version>1.2.0</version>
<title>Optimizely C# SDK</title>
<authors>Optimizely Development Team</authors>
<owners>fullstack.optimizely</owners>
Expand Down
16 changes: 8 additions & 8 deletions OptimizelySDK.Tests/EventTests/EventBuilderTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void TestCreateImpressionEventNoAttributes()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down Expand Up @@ -152,7 +152,7 @@ public void TestCreateImpressionEventWithAttributes()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down Expand Up @@ -226,7 +226,7 @@ public void TestCreateConversionEventNoAttributesNoValue()
{"project_id", "7720880029"},
{"account_id", "1592310167"},
{"client_name", "csharp-sdk"},
{"client_version", "1.1.1"},
{"client_version", "1.2.0"},
{"revision", 15}
};

Expand Down Expand Up @@ -304,7 +304,7 @@ public void TestCreateConversionEventWithAttributesNoValue()
{"project_id", "7720880029"},
{"account_id", "1592310167"},
{"client_name", "csharp-sdk"},
{"client_version", "1.1.1"},
{"client_version", "1.2.0"},
{"revision", 15}
};

Expand Down Expand Up @@ -385,7 +385,7 @@ public void TestCreateConversionEventNoAttributesWithValue()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down Expand Up @@ -476,7 +476,7 @@ public void TestCreateConversionEventWithAttributesWithValue()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down Expand Up @@ -562,7 +562,7 @@ public void TestCreateConversionEventNoAttributesWithInvalidValue()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down Expand Up @@ -644,7 +644,7 @@ public void TestConversionEventWithNumericTag()
{"project_id", "7720880029" },
{"account_id", "1592310167" },
{"client_name", "csharp-sdk" },
{"client_version", "1.1.1" },
{"client_version", "1.2.0" },
{"revision", 15 }
};

Expand Down
2 changes: 1 addition & 1 deletion OptimizelySDK/Event/Builder/EventBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class EventBuilder
{
private const string SDK_TYPE = "csharp-sdk";

private const string SDK_VERSION = "1.1.1";
private const string SDK_VERSION = "1.2.0";

private const string IMPRESSION_ENDPOINT = "https://logx.optimizely.com/v1/events";

Expand Down