Skip to content

Commit

Permalink
Merge pull request #309 from gregarndt/bug_1113635_repository_url_pulse
Browse files Browse the repository at this point in the history
Bug 1113635 - Add repository url to new result set pulse messages r=mdoglio
  • Loading branch information
maurodoglio committed Jan 2, 2015
2 parents 3f762b2 + 995f44d commit d9b1aa7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion schemas/resultset-message.json
Expand Up @@ -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"]
}
}
3 changes: 3 additions & 0 deletions treeherder/model/tasks.py
Expand Up @@ -98,6 +98,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
Expand Down

0 comments on commit d9b1aa7

Please sign in to comment.