File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2016, Optimizely and contributors
2
+ # Copyright 2016-2017 , Optimizely and contributors
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
@@ -173,7 +173,7 @@ def add_event_tags(event_tags)
173
173
next if event_tag_value . nil?
174
174
175
175
event_feature = {
176
- 'id ' => event_tag_key ,
176
+ 'name ' => event_tag_key ,
177
177
'type' => 'custom' ,
178
178
'value' => event_tag_value ,
179
179
'shouldIndex' => false ,
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2016, Optimizely and contributors
2
+ # Copyright 2016-2017 , Optimizely and contributors
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
130
130
} ]
131
131
@expected_conversion_params [ 'eventFeatures' ] = [
132
132
{
133
- 'id ' => 'revenue' ,
133
+ 'name ' => 'revenue' ,
134
134
'type' => 'custom' ,
135
135
'value' => 4200 ,
136
136
'shouldIndex' => false
149
149
@expected_conversion_params [ 'eventMetrics' ] = [ ]
150
150
@expected_conversion_params [ 'eventFeatures' ] = [
151
151
{
152
- 'id ' => 'revenue' ,
152
+ 'name ' => 'revenue' ,
153
153
'type' => 'custom' ,
154
154
'value' => "4200" ,
155
155
'shouldIndex' => false
167
167
it 'should create a valid V2 Event when create_conversion_event is called with boolean event tag' do
168
168
@expected_conversion_params [ 'eventFeatures' ] = [
169
169
{
170
- 'id ' => 'boolean_tag' ,
170
+ 'name ' => 'boolean_tag' ,
171
171
'type' => 'custom' ,
172
172
'value' => false ,
173
173
'shouldIndex' => false
188
188
it 'should create a valid V2 Event when create_conversion_event is called with string event tag' do
189
189
@expected_conversion_params [ 'eventFeatures' ] = [
190
190
{
191
- 'id ' => 'string_tag' ,
191
+ 'name ' => 'string_tag' ,
192
192
'type' => 'custom' ,
193
193
'value' => 'iamstring' ,
194
194
'shouldIndex' => false
208
208
it 'should create a valid V2 Event when create_conversion_event is called with integer event tag' do
209
209
@expected_conversion_params [ 'eventFeatures' ] = [
210
210
{
211
- 'id ' => 'integer_tag' ,
211
+ 'name ' => 'integer_tag' ,
212
212
'type' => 'custom' ,
213
213
'value' => 42 ,
214
214
'shouldIndex' => false
228
228
it 'should create a valid V2 Event when create_conversion_event is called with float event tag' do
229
229
@expected_conversion_params [ 'eventFeatures' ] = [
230
230
{
231
- 'id ' => 'float_tag' ,
231
+ 'name ' => 'float_tag' ,
232
232
'type' => 'custom' ,
233
233
'value' => 42.01 ,
234
234
'shouldIndex' => false
Original file line number Diff line number Diff line change 1
1
#
2
- # Copyright 2016, Optimizely and contributors
2
+ # Copyright 2016-2017 , Optimizely and contributors
3
3
#
4
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
5
# you may not use this file except in compliance with the License.
@@ -711,7 +711,7 @@ class InvalidErrorHandler; end
711
711
'eventEntityId' => '111095' ,
712
712
'eventFeatures' => [
713
713
{
714
- 'id ' => 'revenue' ,
714
+ 'name ' => 'revenue' ,
715
715
'type' => 'custom' ,
716
716
'value' => 42 ,
717
717
'shouldIndex' => false
@@ -808,7 +808,7 @@ class InvalidErrorHandler; end
808
808
'eventName' => 'test_event' ,
809
809
'eventFeatures' => [
810
810
{
811
- 'id ' => 'revenue' ,
811
+ 'name ' => 'revenue' ,
812
812
'type' => 'custom' ,
813
813
'value' => 42 ,
814
814
'shouldIndex' => false
You can’t perform that action at this time.
0 commit comments