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

Unified Diff: dashboard/dashboard/models/sheriff.py

Issue 2138843003: Add support for setting sheriff-specific bug labels. (Closed) Base URL: https://github.com/catapult-project/catapult@master
Patch Set: Fix unit tests 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 | « dashboard/dashboard/file_bug_test.py ('k') | dashboard/dashboard/send_stoppage_alert_emails.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/models/sheriff.py
diff --git a/dashboard/dashboard/models/sheriff.py b/dashboard/dashboard/models/sheriff.py
index e078cb009ddfd5201a786099a87c99001c1707df..531f279057b8a0b810bf30d17aab0c31bf347314 100644
--- a/dashboard/dashboard/models/sheriff.py
+++ b/dashboard/dashboard/models/sheriff.py
@@ -68,6 +68,9 @@ class Sheriff(internal_only_model.InternalOnlyModel):
# these patterns will use this sheriff configuration for alerting.
patterns = ndb.StringProperty(repeated=True, indexed=False)
+ # A list of labels to add to all bugs for the sheriffing rotation.
+ labels = ndb.StringProperty(repeated=True, indexed=False)
+
# Number of days before the Sheriff should get an alert about not having
# received any data for a particular TestMetadata entity; -1 means no alerts.
# If a sheriff wants to receive these alerts, the number should be greater
« no previous file with comments | « dashboard/dashboard/file_bug_test.py ('k') | dashboard/dashboard/send_stoppage_alert_emails.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698