зеркало из https://github.com/mozilla/treeherder.git
Bug 1113635 - Add repository url to new result set pulse messages
This commit is contained in:
Родитель
1e30f7ba77
Коммит
995f44d92c
|
@ -18,8 +18,13 @@
|
|||
"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,
|
||||
"required": ["version", "revision_hash"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче