Skip to content

Commit bcea973

Browse files
committed
Fix the internal review email template and related code to handle IRTF RGs
better. Commit ready for merge. - Legacy-Id: 10673
1 parent 37c5d31 commit bcea973

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

ietf/doc/mails.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def generate_last_call_announcement(request, doc):
9898
group = "an individual submitter"
9999
expiration_date += datetime.timedelta(days=14)
100100
else:
101-
group = "the %s WG (%s)" % (doc.group.name, doc.group.acronym)
101+
group = "the %s %s (%s)" % (doc.group.name, doc.group.type.name, doc.group.acronym)
102102

103103
doc.filled_title = textwrap.fill(doc.title, width=70, subsequent_indent=" " * 3)
104104

@@ -162,7 +162,7 @@ def generate_approval_mail_approved(request, doc):
162162

163163
# the second check catches some area working groups (like
164164
# Transport Area Working Group)
165-
if doc.group.type_id not in ("area", "individ", "ag") and not doc.group.name.endswith("Working Group"):
165+
if doc.group.type_id not in ("area", "individ", "ag", "rg") and not doc.group.name.endswith("Working Group"):
166166
doc.group.name_with_wg = doc.group.name + " Working Group"
167167
else:
168168
doc.group.name_with_wg = doc.group.name
@@ -467,7 +467,7 @@ def email_charter_internal_review(request, charter):
467467
markup=False,
468468
)
469469
send_mail(request, addrs.to, settings.DEFAULT_FROM_EMAIL,
470-
'Internal WG Review: %s (%s)'%(charter.group.name,charter.group.acronym),
470+
'Internal %s Review: %s (%s)'%(charter.group.type.name,charter.group.name,charter.group.acronym),
471471
'doc/mail/charter_internal_review.txt',
472472
dict(charter=charter,
473473
chairs=charter.group.role_set.filter(name='chair').values_list('person__name',flat=True),

ietf/doc/tests_charter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def find_event(t):
103103
if slug=="intrev":
104104
self.assertTrue("Internal WG Review" in outbox[-3]['Subject'])
105105
self.assertTrue(all([x in outbox[-3]['To'] for x in ['iab@','iesg@']]))
106-
self.assertTrue("A new IETF working" in outbox[-3].get_payload())
106+
self.assertTrue("A new IETF WG" in outbox[-3].get_payload())
107107

108108
self.assertTrue("state changed" in outbox[-2]['Subject'].lower())
109109
self.assertTrue("iesg-secretary@" in outbox[-2]['To'])

ietf/templates/doc/mail/charter_internal_review.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{% autoescape off %}{% filter wordwrap:73 %}
22

3-
{% if review_type == "new" %}A new IETF working group is being considered in the {{ charter.group.parent.name }}.{% endif %}{% if review_type == "recharter" %}A new charter for the {{ charter.group.name }} ({{charter.group.acronym}}) working group in the {{ charter.group.parent.name }} of the IETF is being considered. {% endif %} The draft charter for this working group is provided below for your review and comment.
3+
{% if review_type == "new" %}A new {% if charter.group.type_id == "rg" %}IRTF{% else %}IETF{% endif %} {{ charter.group.type.name }} is being considered in the {% if charter.group.type_id == "rg" %}IRTF{% else %}IETF{% endif %}.{% elif review_type == "recharter" %}A new charter for the {{ charter.group.name }} ({{charter.group.acronym}}) {{ charter.group.type.name }} {% if charter.group.type_id == "rg" %}IRTF{% else %}in the {{ charter.group.parent }} of the IETF{% endif %} is being considered. {% endif %} The draft charter for this {{ charter.group.type.name }} is provided below for your review and comment.
44

5-
Review time is one week.
5+
Review time is one week.
66

7-
The IETF Secretariat
7+
The IETF Secretariat
88

9-
{{charter.group.name}} ({{ charter.group.acronym }})
10-
--------------------------------------------------
11-
Current Status: {{ charter.group.state.name }} {% if charter.group.state_id != 'bof' %}Working Group{% endif %}
12-
13-
Chairs : {{ chairs|join:', '|default:'TBD' }}
9+
{{charter.group.name}} ({{ charter.group.acronym }})
10+
--------------------------------------------------
11+
Current Status: {{ charter.group.state.name }} {{ charter.group.type.name }}
1412

13+
Chairs: {{ chairs|join:', '|default:'TBD' }}
14+
{% if charter.group.type_id != "rg" %}
1515
Area Director: {{ ads|join:', '|default:'TBD' }}
16-
16+
{% endif %}
1717
Mailing List: {{ charter.group.list_email|default:'TBD' }}
1818

1919
{{ charter.name }}-{{ charter.rev }}

0 commit comments

Comments
 (0)