Respect history of official projects list

List of official projects constantly changes, if the project
became official it appears in the past stats too. To prevent this
Stackalytics now checks list of official projects once per release
using tags specified in the default_data.json. For initial approach
we use election tags for openstack/governance project.

Change-Id: I140025775f049fa2be85f42380ab620f84abf267
Partially-Bug: #1497403
This commit is contained in:
Ilya Shakhat
2015-10-01 18:32:10 +03:00
parent de18e65281
commit bfee58eb06
7 changed files with 278 additions and 43 deletions

View File

@@ -240,8 +240,10 @@ def apply_corrections(uri, runtime_storage_inst):
def process_project_list(runtime_storage_inst, project_list_uri):
module_groups = runtime_storage_inst.get_by_key('module_groups') or {}
releases = runtime_storage_inst.get_by_key('releases') or {}
official_module_groups = governance.process_official_list(releases)
official_module_groups = governance.read_projects_yaml(project_list_uri)
LOG.debug('Update module groups with official: %s', official_module_groups)
module_groups.update(official_module_groups)