Bug 1113635 - Add repository url to new result set pulse messages

This commit is contained in:
Greg Arndt 2014-12-19 08:27:24 -06:00
Родитель 1e30f7ba77
Коммит 995f44d92c
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -18,6 +18,11 @@
"title": "Revision Hash Identifier",
"description": "Identifier for the result-set that was created.",
"type": "string"
},
"repository_url": {
"title": "Repository URL",
"description": "URL for the repository for the revision.",
"type": "string"
}
},
"additionalProperties": true,

Просмотреть файл

@ -91,6 +91,9 @@ def publish_to_pulse(project, ids, data_type):
# Get appropriate data for data_type
# using the ids provided
for entry in jm.get_result_set_list_by_ids(ids):
repository = jm.refdata_model.get_repository_info(entry['repository_id'])
entry['repository_url'] = repository['url']
# Don't expose these properties, they are internal, at least that's
# what I think without documentation I have no clue... what any of
# this is