Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2250)

Unified Diff: appengine/chromium_rietveld/codereview/models.py

Issue 2137553002: Rietveld: rely on CQ to decide whether to send email. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: fix Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | appengine/chromium_rietveld/codereview/utils.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/chromium_rietveld/codereview/models.py
diff --git a/appengine/chromium_rietveld/codereview/models.py b/appengine/chromium_rietveld/codereview/models.py
index 98ca609867fa144a993eaf3c24e8a5d9b7bc871a..3e9746827964d95340dea7bab3a5ea92048eb5b4 100644
--- a/appengine/chromium_rietveld/codereview/models.py
+++ b/appengine/chromium_rietveld/codereview/models.py
@@ -504,13 +504,13 @@ class Issue(ndb.Model):
return datetime.datetime.now() - landed
return None
- def update_cq_status_url_if_any(self, cq_message):
+ def update_cq_status_url_if_any(self, url):
"""Parses the cq_message for CQ status url and updates corresponding
patchset with it.
"""
- url, issue_num, patchset_num = utils.parse_cq_status_url_message(cq_message)
if not url:
return
+ issue_num, patchset_num = utils.parse_cq_status_url(url)
if self.key.id() != issue_num:
logging.error('CQ posted CQ Status URL %s to the wrong issue %s',
url, self.key.id())
« no previous file with comments | « no previous file | appengine/chromium_rietveld/codereview/utils.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698