Change active experiments format in Experiments ETL

This commit is contained in:
Frank Bertsch 2017-02-09 12:40:14 -06:00 коммит произвёл Mark Reid
Родитель 3c4b71e172
Коммит 339ec519b8
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1 +1 @@
8
9

Просмотреть файл

@ -6,7 +6,7 @@ tags:
- experiment
- firefox
created_at: 2017-02-01 00:00:00
updated_at: 2017-02-08 16:14:29.584240
updated_at: 2017-02-09 12:39:55.049642
tldr: 'We take all the pings from yesterday, get the information about any experiments:
those that started, those running, and those that ended. These are aggregated by
channel and outputted to files in s3.'
@ -148,7 +148,7 @@ def write_aggregate(agg, date, filename_prefix='experiments'):
}
for exp_id, experiment in channel['experiments'].iteritems():
d["experiments"][exp_id] = {
"active": experiment['active'].items(),
"active": experiment['active'],
"activations": experiment['EXPERIMENT_ACTIVATION'].items(),
"terminations": experiment['EXPERIMENT_TERMINATION'].items()
}

Просмотреть файл

@ -188,7 +188,7 @@
" }\n",
" for exp_id, experiment in channel['experiments'].iteritems():\n",
" d[\"experiments\"][exp_id] = {\n",
" \"active\": experiment['active'].items(),\n",
" \"active\": experiment['active'],\n",
" \"activations\": experiment['EXPERIMENT_ACTIVATION'].items(),\n",
" \"terminations\": experiment['EXPERIMENT_TERMINATION'].items() \n",
" }\n",