Skip to content

Commit ad22d32

Browse files
Use product::component to refer to components in all emails (#2296)
1 parent 5ea035c commit ad22d32

16 files changed

+24
-23
lines changed

bugbot/rules/assignee_no_login.py

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def get_extra_for_template(self):
4242
def columns(self):
4343
return [
4444
"triage_owner_name",
45+
"product",
4546
"component",
4647
"id",
4748
"summary",

bugbot/rules/to_triage.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def ignore_meta(self):
4242
return True
4343

4444
def columns(self):
45-
return ["component", "id", "summary", "type"]
45+
return ["product", "component", "id", "summary", "type"]
4646

4747
def columns_nag(self):
4848
return self.columns()

bugbot/rules/workflow/no_severity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def ignore_meta(self):
7474
return True
7575

7676
def columns(self):
77-
return ["component", "id", "summary"]
77+
return ["product", "component", "id", "summary"]
7878

7979
def handle_bug(self, bug, data):
8080
if (

bugbot/rules/workflow/p1_no_activity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def has_product_component(self):
4242
return True
4343

4444
def columns(self):
45-
return ["component", "id", "summary", "last_comment", "assignee"]
45+
return ["product", "component", "id", "summary", "last_comment", "assignee"]
4646

4747
def set_people_to_nag(self, bug, buginfo):
4848
priority = "high"

bugbot/rules/workflow/p1_no_assignee.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def has_product_component(self):
4747
return True
4848

4949
def columns(self):
50-
return ["component", "id", "summary", "last_comment"]
50+
return ["product", "component", "id", "summary", "last_comment"]
5151

5252
def handle_bug(self, bug, data):
5353
# check if the product::component is in the list

bugbot/rules/workflow/p2_merge_day.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def ignore_meta(self):
2020
return True
2121

2222
def columns(self):
23-
return ["component", "id", "summary"]
23+
return ["product", "component", "id", "summary"]
2424

2525
def handle_bug(self, bug, data):
2626
# check if the product::component is in the list

bugbot/rules/workflow/p2_no_activity.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def has_product_component(self):
4343
return True
4444

4545
def columns(self):
46-
return ["component", "id", "summary", "last_comment"]
46+
return ["product", "component", "id", "summary", "last_comment"]
4747

4848
def set_people_to_nag(self, bug, buginfo):
4949
priority = "default"

bugbot/rules/workflow/p3_p4_p5.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def has_product_component(self):
2727
return True
2828

2929
def columns(self):
30-
return ["component", "id", "summary"]
30+
return ["product", "component", "id", "summary"]
3131

3232
def handle_bug(self, bug, data):
3333
# check if the product::component is in the list

templates/assignee_no_login.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
</tr>
1212
</thead>
1313
<tbody>
14-
{% for i, (triage_owner_name, comp, bugid, summary, assignee, assignee_status) in enumerate(data) -%}
14+
{% for i, (triage_owner_name, product, comp, bugid, summary, assignee, assignee_status) in enumerate(data) -%}
1515
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1616
{% endif -%}
1717
>
1818
<td>{{ triage_owner_name | e }}</td>
19-
<td>{{ comp | e }}</td>
19+
<td>{{ product | e }}::{{ comp | e }}</td>
2020
<td>
2121
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2222
</td>

templates/no_severity.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
</tr>
1212
</thead>
1313
<tbody>
14-
{% for i, (comp, bugid, summary) in enumerate(data) -%}
14+
{% for i, (product, comp, bugid, summary) in enumerate(data) -%}
1515
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1616
{% endif -%}
1717
>
18-
<td>{{ comp | e }}</td>
18+
<td>{{ product | e }}::{{ comp | e }}</td>
1919
<td>
2020
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2121
</td>

templates/p1_no_activity.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
</tr>
1313
</thead>
1414
<tbody>
15-
{% for i, (comp, bugid, summary, last_comment, assignee) in enumerate(data) -%}
15+
{% for i, (product, comp, bugid, summary, last_comment, assignee) in enumerate(data) -%}
1616
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1717
{% endif -%}
1818
>
19-
<td>{{ comp | e }}</td>
19+
<td>{{ product | e }}::{{ comp | e }}</td>
2020
<td>
2121
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2222
</td>

templates/p1_no_assignee.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
</tr>
1616
</thead>
1717
<tbody>
18-
{% for i, (comp, bugid, summary, last_comment) in enumerate(data) -%}
18+
{% for i, (product, comp, bugid, summary, last_comment) in enumerate(data) -%}
1919
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
2020
{% endif -%}
2121
>
22-
<td>{{ comp | e }}</td>
22+
<td>{{ product | e }}::{{ comp | e }}</td>
2323
<td>
2424
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2525
</td>

templates/p2_merge_day.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
</tr>
99
</thead>
1010
<tbody>
11-
{% for i, (component, bugid, summary) in enumerate(data) -%}
11+
{% for i, (product, comp, bugid, summary) in enumerate(data) -%}
1212
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1313
{% endif -%}
1414
>
15-
<td>{{ comp | e }}</td>
15+
<td>{{ product | e }}::{{ comp | e }}</td>
1616
<td>
1717
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
1818
</td>

templates/p2_no_activity.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
</tr>
1616
</thead>
1717
<tbody>
18-
{% for i, (comp, bugid, summary, last_comment) in enumerate(data) -%}
18+
{% for i, (product, comp, bugid, summary, last_comment) in enumerate(data) -%}
1919
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
2020
{% endif -%}
2121
>
22-
<td>{{ comp | e }}</td>
22+
<td>{{ product | e }}::{{ comp | e }}</td>
2323
<td>
2424
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2525
</td>

templates/p3_p4_p5.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
</tr>
1111
</thead>
1212
<tbody>
13-
{% for i, (comp, bugid, summary) in enumerate(data) -%}
13+
{% for i, (product, comp, bugid, summary) in enumerate(data) -%}
1414
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1515
{% endif -%}
1616
>
17-
<td>{{ comp | e }}</td>
17+
<td>{{ product | e }}::{{ comp | e }}</td>
1818
<td>
1919
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2020
</td>

templates/to_triage.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
</tr>
1212
</thead>
1313
<tbody>
14-
{% for i, (comp, bugid, summary, type) in enumerate(data) -%}
14+
{% for i, (product, comp, bugid, summary, type) in enumerate(data) -%}
1515
<tr {% if i % 2 == 0 %}bgcolor="#E0E0E0"
1616
{% endif -%}
1717
>
18-
<td>{{ comp | e }}</td>
18+
<td>{{ product | e }}::{{ comp | e }}</td>
1919
<td>
2020
<a href="https://bugzilla.mozilla.org/show_bug.cgi?id={{ bugid }}">{{ bugid }}</a>
2121
</td>

0 commit comments

Comments
 (0)