Skip to content

Commit fd45602

Browse files
authored
[FSSDK-9109]chore: prepare for pre release 2.0.0-beta (#373)
1 parent 16533b7 commit fd45602

File tree

5 files changed

+47
-6
lines changed

5 files changed

+47
-6
lines changed

CHANGELOG.MD

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,47 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77
## [Unreleased]
88
Changes that have landed but are not yet released.
99

10+
## [2.0.0-beta] - April 27th, 2023
11+
12+
### New Features
13+
14+
The 2.0.0-beta release introduces a new primary feature, [Advanced Audience Targeting]( https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting) enabled through integration with [Optimizely Data Platform (ODP)](https://docs.developers.optimizely.com/optimizely-data-platform/docs) ([#350](https://github.com/optimizely/go-sdk/pull/350), [#353](https://github.com/optimizely/go-sdk/pull/353), [#354](https://github.com/optimizely/go-sdk/pull/354), [#355](https://github.com/optimizely/go-sdk/pull/355)).
15+
16+
You can use ODP, a high-performance [Customer Data Platform (CDP)]( https://www.optimizely.com/optimization-glossary/customer-data-platform/), to easily create complex real-time segments (RTS) using first-party and 50+ third-party data sources out of the box. You can create custom schemas that support the user attributes important for your business, and stitch together user behavior done on different devices to better understand and target your customers for personalized user experiences. ODP can be used as a single source of truth for these segments in any Optimizely or 3rd party tool.
17+
18+
With ODP accounts integrated into Optimizely projects, you can build audiences using segments pre-defined in ODP. The SDK will fetch the segments for given users and make decisions using the segments. For access to ODP audience targeting in your Feature Experimentation account, please contact your Optimizely Customer Success Manager.
19+
20+
This version includes the following changes:
21+
22+
* New API added to `OptimizelyUserContext`:
23+
24+
- `FetchQualifiedSegments()`: this API will retrieve user segments from the ODP server. The fetched segments will be used for audience evaluation. The fetched data will be stored in the local cache to avoid repeated network delays.
25+
26+
- When an `OptimizelyUserContext` is created, the SDK will automatically send an identify request to the ODP server to facilitate observing user activities.
27+
28+
* New APIs added to `OptimizelyClient`:
29+
30+
- `SendOdpEvent()`: customers can build/send arbitrary ODP events that will bind user identifiers and data to user profiles in ODP.
31+
32+
For details, refer to our documentation pages:
33+
34+
* [Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizely-data-platform-advanced-audience-targeting)
35+
36+
* [Server SDK Support](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-for-server-side-sdks)
37+
38+
* [Initialize Go SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/initialize-sdk-go)
39+
40+
* [OptimizelyUserContext Go SDK](https://docs.developers.optimizely.com/feature-experimentation/docs/optimizelyusercontext-go)
41+
42+
* [Advanced Audience Targeting segment qualification methods](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/advanced-audience-targeting-segment-qualification-methods-go)
43+
44+
* [Send Optimizely Data Platform data using Advanced Audience Targeting](https://docs.developers.optimizely.com/feature-experimentation/v1.0/docs/send-odp-data-using-advanced-audience-targeting-go)
45+
46+
### Breaking Changes
47+
48+
* ODPManager in the SDK is enabled by default. Unless an ODP account is integrated into the Optimizely projects, most ODPManager functions will be ignored. If needed, ODPManager can be disabled when `OptimizelyClient` is instantiated.
49+
* Minimum golang version changed from 1.13 to 1.19. ([#369](https://github.com/optimizely/go-sdk/pull/369))
50+
1051
## [1.8.4] - March 10th, 2023
1152

1253
* We updated our README.md and other non-functional code to reflect that this SDK supports both Optimizely Feature Experimentation and Optimizely Full Stack. ([#366](https://github.com/optimizely/go-sdk/pull/366))

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ module mymodule
4444
go 1.19
4545
4646
require (
47-
github.com/optimizely/go-sdk v1.8.3
47+
github.com/optimizely/go-sdk v2.0.0-beta
4848
)
4949
```
5050

5151
If you are already using `go.mod` in your application you can run the following:
5252

5353
```
54-
go mod edit -require github.com/optimizely/go-sdk@v1.8.3
54+
go mod edit -require github.com/optimizely/go-sdk@v2.0.0-beta
5555
```
5656

5757
NOTE:

pkg/event/version.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/****************************************************************************
2-
* Copyright 2019-2022, Optimizely, Inc. and contributors *
2+
* Copyright 2019-2023, Optimizely, Inc. and contributors *
33
* *
44
* Licensed under the Apache License, Version 2.0 (the "License"); *
55
* you may not use this file except in compliance with the License. *
@@ -18,7 +18,7 @@
1818
package event
1919

2020
// Version is the current version of the client
21-
var Version = "1.8.4"
21+
var Version = "2.0.0-beta"
2222

2323
// ClientName is the name of the client
2424
var ClientName = "go-sdk"

pkg/odp/event/event_api_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type APIManager interface {
3737
// - test ODP public API key = "W4WzcEs-ABgXorzY7h1LCQ"
3838
/*
3939
[Event Request]
40-
curl -i -H 'Content-Type: application/json' -H 'x-api-key: W4WzcEs-ABgXorzY7h1LCQ' -X POST -d '{"type":"fullstack","action":"identified","identifiers":{"fs_user_id": "abc"},"data":{"idempotence_id":"xyz","source":"go-sdk","data_source_type":"sdk","data_source_version":"1.8.3"}}' https://api.zaius.com/v3/events
40+
curl -i -H 'Content-Type: application/json' -H 'x-api-key: W4WzcEs-ABgXorzY7h1LCQ' -X POST -d '{"type":"fullstack","action":"identified","identifiers":{"fs_user_id": "abc"},"data":{"idempotence_id":"xyz","source":"go-sdk","data_source_type":"sdk","data_source_version":"2.0.0-beta"}}' https://api.zaius.com/v3/events
4141
[Event Response]
4242
{"title":"Accepted","status":202,"timestamp":"2022-06-30T20:59:52.046Z"}
4343
*/

pkg/odp/event/event_api_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ func (e *EventAPIManagerTestSuite) TestSuggestRetryForNetworkTimeout() {
110110
// "idempotence_id": "xyz",
111111
// "source": "go-sdk",
112112
// "data_source_type": "sdk",
113-
// "data_source_version": "1.8.3",
113+
// "data_source_version": "2.0.0-beta",
114114
// },
115115
// }}
116116
// canRetry, err := e.eventAPIManager.SendOdpEvents("W4WzcEs-ABgXorzY7h1LCQ", "https://api.zaius.com", events)

0 commit comments

Comments
 (0)