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)

defect
Not set
normal

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 :)
Attached patch bug1177126.patch — — Splinter Review
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)
Assignee: nobody → sabergeass
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)
Attached file bug1177126.patch —
Here is the PR :)
Flags: needinfo?(sabergeass)
Attachment #8626399 - Flags: review?(wlachance)
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)
Attachment #8626399 - Flags: review?(wlachance) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: