Commit 8ea011cf authored by sheyang@chromium.org's avatar sheyang@chromium.org

my_activity fetches issues from monorail. Also deleted some projects which...

my_activity fetches issues from monorail. Also deleted some  projects which are not hosted on monorail.

Blocked on deployment of https://chromereviews.googleplex.com/365267013/

BUG=monorail:762

Review URL: https://codereview.chromium.org/1754433002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@299032 0039d316-1c4b-4281-b951-d872f2087c98
parent 5c2f2a67
...@@ -101,21 +101,10 @@ gerrit_instances = [ ...@@ -101,21 +101,10 @@ gerrit_instances = [
] ]
google_code_projects = [ google_code_projects = [
{
'name': 'brillo',
'shorturl': 'brbug.com',
},
{ {
'name': 'chromium', 'name': 'chromium',
'shorturl': 'crbug.com', 'shorturl': 'crbug.com',
}, },
{
'name': 'chromium-os',
'shorturl': 'crosbug.com',
},
{
'name': 'chrome-os-partner',
},
{ {
'name': 'google-breakpad', 'name': 'google-breakpad',
}, },
...@@ -410,10 +399,10 @@ class MyActivity(object): ...@@ -410,10 +399,10 @@ class MyActivity(object):
def project_hosting_issue_search(self, instance): def project_hosting_issue_search(self, instance):
auth_config = auth.extract_auth_config_from_options(self.options) auth_config = auth.extract_auth_config_from_options(self.options)
authenticator = auth.get_authenticator_for_host( authenticator = auth.get_authenticator_for_host(
"code.google.com", auth_config) "bugs.chromium.org", auth_config)
http = authenticator.authorize(httplib2.Http()) http = authenticator.authorize(httplib2.Http())
url = "https://www.googleapis.com/projecthosting/v2/projects/%s/issues" % ( url = ("https://monorail-prod.appspot.com/_ah/api/monorail/v1/projects"
instance["name"]) "/%s/issues") % instance["name"]
epoch = datetime.utcfromtimestamp(0) epoch = datetime.utcfromtimestamp(0)
user_str = '%s@chromium.org' % self.user user_str = '%s@chromium.org' % self.user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment