Skip to content

Commit c427d98

Browse files
committed
Forward merge from trunk.
- Legacy-Id: 10423
2 parents cf7d794 + db7aa73 commit c427d98

16 files changed

Lines changed: 72 additions & 19 deletions

File tree

INSTALL

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ General Instructions for Deployment of a New Release
3737

3838
pip install -r requirements.txt
3939

40-
5. Run migrations::
40+
5. Move static files to the appropriate direcrory for serving via CDN::
4141

42-
ietf/manage.py migrate
42+
ietf/manage.py collectstatic
4343

44-
6. Move static files to the appropriate direcrory for serving via CDN::
44+
6. Run migrations::
4545

46-
ietf/manage.py collectstatic
46+
ietf/manage.py migrate
4747

4848
7. Run some basic datatracker system checks::
4949

bin/mergeready

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ COPYRIGHT
3838
"""
3939
from __future__ import print_function
4040

41-
import sys, os.path, getopt, re
41+
import sys, os.path, getopt, re, tzparse, pytz
4242
import debug
4343

4444
version = "0.20"
@@ -130,7 +130,9 @@ def split_loginfo(line):
130130
who = parts[2]
131131
date = parts[4]
132132
time = parts[5]
133-
when = "%s_%s" % (date, time)
133+
tz = parts[6]
134+
when = tzparse.tzparse(" ".join(parts[4:7]), "%Y-%m-%d %H:%M:%S %Z")
135+
when = when.astimezone(pytz.utc)
134136
return rev, who, when
135137

136138
# ----------------------------------------------------------------------
@@ -235,7 +237,7 @@ def get_ready_commits(repo, tree):
235237
branch = '/'.join(path.split('/')[1:4])
236238
elif re.search("(?i)((commit|branch) ready (for|to) merge)", line):
237239
if not (rev in merged_revs and branch == merged_revs[rev]):
238-
note(" %s %s: %s@%s" % (when, who, branch, rev))
240+
note(" %s %s: %s@%s" % (when.strftime("%Y-%m-%d %H:%MZ"), who, branch, rev))
239241
list += [(rev, repo, branch),]
240242
elif rev in merged_revs and not branch == merged_revs[rev]:
241243
sys.stderr.write('Rev %s: %s != %s' % (rev, branch, merged_revs[rev]))
@@ -282,7 +284,7 @@ for entry in ready:
282284
#
283285
merge_path = os.path.join(*path.split(os.path.sep)[:4])
284286
if not (rev, repo, merge_path) in hold:
285-
output_line = "%s %-24s %s@%s" % (when, who+":", merge_path, rev)
287+
output_line = "%s %-24s %s@%s" % (when.strftime("%Y-%m-%d_%H:%MZ"), who+":", merge_path, rev)
286288
if unittest == 'passed':
287289
ready_commits[when] = output_line
288290
else:

changelog

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
ietfdb (6.8.0) ietf; urgency=medium
2+
3+
* Merged in [10414] from rjsparks@nostrum.com:
4+
Put possibly replaces sections in the right columns. Fixes #1802.
5+
6+
* Keep draft aliases for 2 years rather than 1 year from posting.
7+
8+
* Merged in [10405] from rjsparks@nostrum.com:
9+
Addresses an issue where the WG document page would show the same document
10+
in more than one section. Fixes #1827.
11+
12+
* Merged in [10384] from rjsparks@nostrum.com:
13+
When a group gives a document a new group state (particularly for the
14+
first time), send a message that says what happened instead of simply
15+
\'Adopted\'. Fixes #1830.
16+
17+
* Merged in [10383] and [10413] from rcross@amsl.com:
18+
Updated proceedings permissions.
19+
20+
* Merged in [10379] from rjsparks@nostrum.com:
21+
Change the acronym link on the html agenda page to go to the group's
22+
charter page rather than the charter's document page.
23+
24+
* Merged in [10378] from rjsparks@nostrum.com:
25+
Make the internal review message reflect whether this is a new chartering
26+
effort or a recharter. Fixes #1814.
27+
28+
* Fixed a unicode issue with rendering of contact names.
29+
30+
-- Henrik Levkowetz <henrik@levkowetz.com> 03 Nov 2015 23:44:55 -0800
31+
32+
133
ietfdb (6.8.0) ietf; urgency=medium
234

335
**IETF 94 Code Sprint**

hold-for-merge

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
branch/iola/event-saving-refactor-r10076 @ 10190
44

5+
personal/rcross/v6.7.3.dev0@10382 # Test errors, corrected in later commit
56
branch/amsl/liaisons@10160 # Merged as branch/amsl/liaisons/6.4.1 @ 10160
67
personal/lars/6.2.1.dev0@9970 # Requires the timeline work
78
personal/lars/6.0.5.dev0@9734 # Obsoleted - don't use 'bleach'

ietf/bin/generate-draft-aliases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ if __name__ == '__main__':
106106
import time
107107

108108
# Year ago?
109-
show_since = datetime.datetime.now() - datetime.timedelta(365)
109+
show_since = datetime.datetime.now() - datetime.timedelta(2*365)
110110
# 10 years ago?
111111
#show_since = datetime.datetime.now() - datetime.timedelta(10 * 365)
112112

ietf/doc/mails.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,8 @@ def email_adopted(request, doc, prev_state, new_state, by, comment=""):
393393
state_type = (prev_state or new_state).type
394394

395395
send_mail(request, to, settings.DEFAULT_FROM_EMAIL,
396-
u"The %s %s has adopted %s" %
397-
(doc.group.acronym.upper(),doc.group.type_id.upper(), doc.name),
396+
u'The %s %s has placed %s in state "%s"' %
397+
(doc.group.acronym.upper(),doc.group.type_id.upper(), doc.name, new_state or "None"),
398398
'doc/mail/doc_adopted_email.txt',
399399
dict(doc=doc,
400400
url=settings.IDTRACKER_BASE_URL + doc.get_absolute_url(),
@@ -473,6 +473,7 @@ def email_charter_internal_review(request, charter):
473473
ads=charter.group.role_set.filter(name='ad').values_list('person__name',flat=True),
474474
charter_text=charter_text,
475475
milestones=charter.group.groupmilestone_set.filter(state="charter"),
476+
review_type = "new" if charter.group.state_id == "proposed" else "recharter",
476477
),
477478
cc=addrs.cc,
478479
extra={'Reply-To':"iesg@ietf.org"},

ietf/doc/tests_charter.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,22 @@ 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())
106107

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

110111
self.assertTrue("State Update Notice" in outbox[-1]['Subject'])
111112
self.assertTrue("ames-chairs@" in outbox[-1]['To'])
113+
114+
# Exercise internal review of a recharter
115+
group = Group.objects.get(acronym="mars")
116+
charter = group.charter
117+
url = urlreverse('charter_change_state', kwargs=dict(name=charter.name))
118+
empty_outbox()
119+
r = self.client.post(url, dict(charter_state=str(State.objects.get(used=True,type="charter",slug="intrev").pk), message="test"))
120+
self.assertEqual(r.status_code, 302)
121+
self.assertTrue("A new charter" in outbox[-3].get_payload())
112122

113123
def test_edit_telechat_date(self):
114124
make_test_data()

ietf/doc/tests_draft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ def test_adopt_document(self):
11411141
self.assertEqual(draft.docevent_set.count() - events_before, 5)
11421142
self.assertEqual(draft.notify,"aliens@example.mars")
11431143
self.assertEqual(len(outbox), mailbox_before + 1)
1144-
self.assertTrue("has adopted" in outbox[-1]["Subject"].lower())
1144+
self.assertTrue("Call For Adoption" in outbox[-1]["Subject"])
11451145
self.assertTrue("mars-chairs@ietf.org" in outbox[-1]['To'])
11461146
self.assertTrue("draft-ietf-mars-test@" in outbox[-1]['To'])
11471147
self.assertTrue("mars-wg@" in outbox[-1]['To'])

ietf/group/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def search_for_group_documents(group):
390390
for d in raw_docs_related:
391391
parts = d.name.split("-", 2);
392392
# canonical form draft-<name|ietf|irtf>-wg-etc
393-
if len(parts) >= 3 and parts[1] not in ("ietf", "irtf") and parts[2].startswith(group.acronym + "-"):
393+
if len(parts) >= 3 and parts[1] not in ("ietf", "irtf") and parts[2].startswith(group.acronym + "-") and d not in docs:
394394
d.search_heading = "Related Internet-Draft"
395395
docs_related.append(d)
396396

ietf/ietfauth/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ def has_role(user, role_names, *args, **kwargs):
5252
"ISE" : Q(person=person, name="chair", group__acronym="ise"),
5353
"IAD": Q(person=person, name="admdir", group__acronym="ietf"),
5454
"IETF Chair": Q(person=person, name="chair", group__acronym="ietf"),
55+
"IETF Trust Chair": Q(person=person, name="chair", group__acronym="ietf-trust"),
5556
"IRTF Chair": Q(person=person, name="chair", group__acronym="irtf"),
5657
"IAB Chair": Q(person=person, name="chair", group__acronym="iab"),
5758
"IAB Executive Director": Q(person=person, name="execdir", group__acronym="iab"),
5859
"IAB Group Chair": Q(person=person, name="chair", group__type="iab", group__state="active"),
60+
"IAOC Chair": Q(person=person, name="chair", group__acronym="iaoc"),
5961
"WG Chair": Q(person=person,name="chair", group__type="wg", group__state__in=["active","bof", "proposed"]),
6062
"WG Secretary": Q(person=person,name="secr", group__type="wg", group__state__in=["active","bof", "proposed"]),
6163
"RG Chair": Q(person=person,name="chair", group__type="rg", group__state__in=["active","proposed"]),

0 commit comments

Comments
 (0)