Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Project 'openstack/openstack' is excluded from analysis
Browse files Browse the repository at this point in the history
That project has all core projects as sub-modules. As result commits
are assigned incorrectly and all emails are assigned to 'openstack/openstack'.

The change introduces parameter 'exclude' for project source.

Resolves bug 1246785

Change-Id: I35a004382b187e4322e65f898177f91deced1dac
  • Loading branch information
Ilya Shakhat committed Oct 31, 2013
1 parent 9f27d1c commit bce1cc2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion etc/default_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -5339,7 +5339,8 @@
{
"organization": "openstack",
"project_type": "openstack",
"project_group": "other"
"project_group": "other",
"exclude": ["openstack"]
},
{
"organization": "openstack-dev",
Expand Down
6 changes: 6 additions & 0 deletions etc/default_data.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,12 @@
},
"project_group": {
"type": ["string", "null"]
},
"exclude": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["organization", "project_type"],
Expand Down
4 changes: 3 additions & 1 deletion stackalytics/processor/default_data_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ def _retrieve_project_list(default_data):
LOG.warn('Fail to retrieve list of projects. Keep it unmodified')
return False

exclude = set(project_source.get('exclude', []))

for repo in repos:
repo_uri = repo.git_url
repo_name = repo.name

if repo_uri not in repo_index:
if (repo_uri not in repo_index) and (repo_name not in exclude):
r = {
'branches': ['master'],
'module': repo_name,
Expand Down

0 comments on commit bce1cc2

Please sign in to comment.