Implementation of blueprint stackalytics-core

This change incorporates the following:
 * Config for most of OS projects
 * Configure filtering of robots commits
 * Clean-up dashboard module
 * Layout is clean-up
 * Remove unused styles and scripts
 * Factories replaced by factory methods

Change-Id: I1a719b356a5e3275d14bbceae198a1d0cb6dbbbd
This commit is contained in:
Ilya Shakhat
2013-07-12 12:43:30 +04:00
parent 6d89020cab
commit cef22af5d6
45 changed files with 751 additions and 3021 deletions

View File

@@ -186,11 +186,10 @@ class MemcachedStorage(RuntimeStorage):
self.commit_id_index[record['commit_id']] = record['record_id']
class RuntimeStorageFactory(object):
@staticmethod
def get_storage(uri):
LOG.debug('Runtime storage is requested for uri %s' % uri)
match = re.search(r'^memcached:\/\/', uri)
if match:
return MemcachedStorage(uri)
def get_runtime_storage(uri):
LOG.debug('Runtime storage is requested for uri %s' % uri)
match = re.search(r'^memcached:\/\/', uri)
if match:
return MemcachedStorage(uri)
else:
raise Exception('Unknown runtime storage uri %s' % uri)