Closed
Bug 1177126
Opened 11 years ago
Closed 11 years ago
Add a method to get list of repositories
Categories
(Tree Management Graveyard :: Treeherder: Client Libraries, defect)
Tree Management Graveyard
Treeherder: Client Libraries
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: wlach, Assigned: sabergeass)
Details
Attachments
(1 file, 1 external file)
|
1.31 KB,
patch
|
Details | Diff | Splinter Review |
We have an API method to get a list of valid treeherder repositories, called /repository/. E.g.:
https://treeherder.mozilla.org/api/repository/
We should have a python client method to use this endpoint to get and return this data. Let's call it get_repositories. We can probably model this on the current get_option_collection_hash method, currently here:
https://github.com/mozilla/treeherder/blob/master/treeherder/client/thclient/client.py#L738
Hi Will,
I would like to work on this bug, please assign it to me. Thank you :)
I just get and return the data like the format like blow:
[ {'dvcs_type': 'hg', 'name': 'mozilla-central', 'url': 'https://hg.mozilla.org/mozilla-central', 'active_status': 'active', 'codebase': 'gecko', 'repository_group': {'name': 'development', 'description': ''}, 'id': 1, u'description': ''}
{'dvcs_type': 'hg', 'name': 'mozilla-inbound', 'url': 'https://hg.mozilla.org/integration/mozilla-inbound', 'active_status': 'active', 'codebase': 'gecko', 'repository_group': {'name': 'development', 'description': ''}, 'id': 2, 'description': ''},.....]
I will create a pr on github if it's ok :)
Attachment #8626034 -
Flags: review?(wlachance)
| Reporter | ||
Comment 3•11 years ago
|
||
Comment on attachment 8626034 [details] [diff] [review]
bug1177126.patch
The idea is right, could you file a pull request and ask for review on that though? Thanks!
Flags: needinfo?(sabergeass)
Attachment #8626034 -
Flags: review?(wlachance)
Here is the PR :)
Flags: needinfo?(sabergeass)
Attachment #8626399 -
Flags: review?(wlachance)
| Reporter | ||
Comment 5•11 years ago
|
||
Comment on attachment 8626399 [details] [review]
bug1177126.patch
Very close! Just a few modifications necessary and then we can land this.
Attachment #8626399 -
Flags: review?(wlachance) → review-
Attachment #8626399 -
Flags: review- → review?(wlachance)
Comment 7•11 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/1e7939b33599d4c2a17be1f3d85b4e03f99b0215
Bug 1177126 - Add a method to get list of repositories
| Reporter | ||
Comment 8•11 years ago
|
||
Attachment #8626399 -
Flags: review?(wlachance) → review+
| Reporter | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•