Permalink
Browse files

Merge pull request #76 from mozilla/remove-summary-cache-id

Remove summary cache
  • Loading branch information...
2 parents 1ccf2d5 + 896e75b commit 12cf0d9cd35451520014b4b0f04af6a7055e8a91 @jeads jeads committed Nov 21, 2012
Showing with 0 additions and 40 deletions.
  1. +0 −5 crontab.txt
  2. +0 −35 datazilla/webapp/apps/datazilla/views.py
View
@@ -2,11 +2,6 @@
PYTHON_ROOT=/usr/bin/
DATAZILLA_HOME=/usr/local/datazilla
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project stoneridge
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project b2g
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project jetperf
-*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_summary_cache --build --cache --project test
-
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project stoneridge
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project b2g
*/2 * * * * $PYTHON_ROOT/python $DATAZILLA_HOME/manage.py populate_test_collections --load --project jetperf
@@ -279,41 +279,6 @@ def _get_test_run_summary(project, method, request, dm):
json_data = '{}'
- #Commenting the use of memcache out for now, the shared memcache
- #in production is failing to return the expected data. This works
- #in development so it's likely a configuration issue of some sort.
- """
- if product_ids and (not test_ids) and (not platform_ids):
-
- if len(product_ids) > 1:
- extend_list = { 'data':[], 'columns':[] }
- for id in product_ids:
- key = utils.get_summary_cache_key(project, str(id), time_key)
-
- compressed_json_data = cache.get(key)
-
- if compressed_json_data:
- json_data = zlib.decompress( compressed_json_data )
- data = json.loads( json_data )
- extend_list['data'].extend( data['data'] )
- extend_list['columns'] = data['columns']
-
- json_data = json.dumps(extend_list)
-
-
- else:
- key = utils.get_summary_cache_key(
- project,
- str(product_ids[0]),
- time_key,
- )
- compressed_json_data = cache.get(key)
-
- if compressed_json_data:
- json_data = zlib.decompress( compressed_json_data )
-
- else:
- """
table = dm.get_test_run_summary(time_ranges[time_key]['start'],
time_ranges[time_key]['stop'],
product_ids,

0 comments on commit 12cf0d9

Please sign in to comment.