oyiptong / up-headliner

Headliner is a JSON API that returns personalized content obtained from providers
Mozilla Public License 2.0
0 stars 2 forks source link

Use ?src=recmozup instead of ?src=moz-up #2

Closed Mardak closed 10 years ago

Mardak commented 10 years ago

We can trigger the ribbon recommendations by providing a src that starts with "rec", so instead of uri.query.add({"src": "moz-up"}) we can still track our personalization while also getting recommendations.

Mardak commented 10 years ago

It seems that production has a fix, but this repository still has "moz-up"

oyiptong commented 10 years ago

the url decoration is a setting that defaults to "recmoz". https://github.com/oyiptong/up-headliner/blob/master/up/headliner/settings.py#L49

Old data in your local redis server that has the decoration set to moz-up needs to be "migrated" using this script: https://github.com/oyiptong/up-headliner/blob/master/scripts/nytimes_update_url_decorations.py

oyiptong commented 10 years ago

Please try the script and close the issue if that resolves the problem for you.