Remove references to obsolete addon collector (retired in 2012)
This commit is contained in:
Родитель
06d85159c0
Коммит
e01868ca5e
|
@ -79,8 +79,6 @@ SERVICES_URL = SITE_URL
|
|||
|
||||
ALLOWED_HOSTS = ALLOWED_HOSTS + [SERVICES_DOMAIN]
|
||||
|
||||
ADDON_COLLECTOR_ID = 1
|
||||
|
||||
# Default AMO user id to use for tasks (from users.json fixture in zadmin).
|
||||
TASK_USER_ID = 10968
|
||||
|
||||
|
|
|
@ -1637,9 +1637,6 @@ JINGO_MINIFY_USE_STATIC = True
|
|||
# Allow URL style format override. eg. "?format=json"
|
||||
URL_FORMAT_OVERRIDE = 'format'
|
||||
|
||||
# Add on used to collect stats (!technical dept around!)
|
||||
ADDON_COLLECTOR_ID = 11950
|
||||
|
||||
# Connection to the hive server.
|
||||
HIVE_CONNECTION = {
|
||||
'host': 'peach-gw.peach.metrics.scl3.mozilla.com',
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
import datetime
|
||||
import itertools
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import connection
|
||||
from django.db.models import Max, Sum
|
||||
|
||||
|
@ -180,8 +179,6 @@ def _get_metrics_jobs(date=None):
|
|||
stats = {
|
||||
'addon_total_updatepings': lambda: UpdateCount.objects.filter(
|
||||
date=date).aggregate(sum=Sum('count'))['sum'],
|
||||
'collector_updatepings': lambda: UpdateCount.objects.get(
|
||||
addon=settings.ADDON_COLLECTOR_ID, date=date).count,
|
||||
}
|
||||
|
||||
return stats
|
||||
|
|
Загрузка…
Ссылка в новой задаче