Skip to content

Commit acff585

Browse files
committed
Added submission tool cutoff text and logic for the case when there is only one cutoff date (in other words, the -00 and -01 cutoffs are the same).
- Legacy-Id: 9130
1 parent 5bb83f0 commit acff585

2 files changed

Lines changed: 53 additions & 15 deletions

File tree

changelog

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
1+
ietfdb (5.12.0) ietf; urgency=medium
2+
3+
This release provides measurement of how much of the code is being exercised
4+
by our test suite, by integrating the 'coverage.py' tool in the test suite
5+
itself. The percentage of the code excercised by the test suite is compared
6+
with the figure from the latest release, and a lower coverage constitutes a
7+
test failure. This way it shouldn't be possible to add new code without
8+
also adding tests, without getting a test suite failure. This should
9+
encourage gradually increasing levels of test suit coverage :-)
10+
11+
Additionally, similar measurements and comparisons have been added for
12+
template and URL coverage of the test suite; these also have been
13+
implemented as tests, and sinking coverage of templates or URLs in the
14+
test suite will result in tests failures, in the same way as for code
15+
coverage.
16+
17+
The results of the test suit coverage of code, templates, and URLs is saved
18+
to disk, in order to make the coverage details available for inspection.
19+
Coverage data per source file/template/URL is available in json format in
20+
a file 'coverage-latest.json' in the working directory, and more detailed
21+
per-line code coverage data is available in a file '.coverage', which is
22+
readable by the standalone 'coverage' program from 'coverage.py' from
23+
http://nedbatchelder.com/code/coverage/.
24+
25+
* Merged in personal/henrik/v5.11.1-dev0@9103, which provides new tests
26+
for the test suite's code coverage, template coverage, and URL coverage.
27+
28+
-- Henrik Levkowetz <henrik@levkowetz.com> 25 Feb 2015 19:15:36 -0000
29+
30+
131
ietfdb (5.11.2) ietf; urgency=medium
232

333
This is a minor release with a few additional bugfixes:

ietf/submit/forms.py

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,30 @@ def set_cutoff_warnings(self):
5151
cutoff_00_str = cutoff_00.strftime("%Y-%m-%d %H:%M %Z")
5252
cutoff_01_str = cutoff_01.strftime("%Y-%m-%d %H:%M %Z")
5353
reopen_str = reopen.strftime("%Y-%m-%d %H:%M %Z")
54-
if now.date() >= (cutoff_00.date() - meeting.idsubmit_cutoff_warning_days) and now <= cutoff_00:
55-
self.cutoff_warning = ( 'The last submission time for new documents (i.e., version -00 Internet-Drafts) before %s is %s.<br/><br/>' % (meeting, cutoff_00_str) +
56-
'The last submission time for revisions to existing documents before %s is %s.<br/>' % (meeting, cutoff_01_str) )
57-
elif now.date() >= cutoff_00.date() and now <= cutoff_01:
58-
# We are in the first_cut_off
59-
if now < cutoff_00:
54+
if cutoff_00 == cutoff_01:
55+
if now.date() >= (cutoff_00.date() - meeting.idsubmit_cutoff_warning_days) and now.date() < cutoff_00.date():
56+
self.cutoff_warning = ( 'The last submission time for Internet-Drafts before %s is %s.<br/><br/>' % (meeting, cutoff_00_str))
57+
elif now <= cutoff_00:
6058
self.cutoff_warning = (
61-
'The last submission time for new documents (i.e., version -00 Internet-Drafts) before the meeting is %s.<br/>'
62-
'After that, you will not be able to submit a new document until after %s (IETF-meeting local time)' % (cutoff_00_str, reopen_str, ))
63-
else: # No 00 version allowed
64-
self.cutoff_warning = (
65-
'The last submission time for new documents (i.e., version -00 Internet-Drafts) was %s.<br/>'
66-
'You will not be able to submit a new document until after %s (IETF-meeting local time).<br/><br>'
67-
'You can still submit a version -01 or higher Internet-Draft until %s' % (cutoff_00_str, reopen_str, cutoff_01_str, ))
68-
self.in_first_cut_off = True
69-
elif now > cutoff_01 and now < reopen:
59+
'The last submission time for new Internet-Drafts before the meeting is %s.<br/>'
60+
'After that, you will not be able to submit drafts until after %s (IETF-meeting local time)' % (cutoff_00_str, reopen_str, ))
61+
else:
62+
if now.date() >= (cutoff_00.date() - meeting.idsubmit_cutoff_warning_days) and now.date() < cutoff_00.date():
63+
self.cutoff_warning = ( 'The last submission time for new documents (i.e., version -00 Internet-Drafts) before %s is %s.<br/><br/>' % (meeting, cutoff_00_str) +
64+
'The last submission time for revisions to existing documents before %s is %s.<br/>' % (meeting, cutoff_01_str) )
65+
elif now.date() >= cutoff_00.date() and now <= cutoff_01:
66+
# We are in the first_cut_off
67+
if now < cutoff_00:
68+
self.cutoff_warning = (
69+
'The last submission time for new documents (i.e., version -00 Internet-Drafts) before the meeting is %s.<br/>'
70+
'After that, you will not be able to submit a new document until after %s (IETF-meeting local time)' % (cutoff_00_str, reopen_str, ))
71+
else: # No 00 version allowed
72+
self.cutoff_warning = (
73+
'The last submission time for new documents (i.e., version -00 Internet-Drafts) was %s.<br/>'
74+
'You will not be able to submit a new document until after %s (IETF-meeting local time).<br/><br>'
75+
'You can still submit a version -01 or higher Internet-Draft until %s' % (cutoff_00_str, reopen_str, cutoff_01_str, ))
76+
self.in_first_cut_off = True
77+
if now > cutoff_01 and now < reopen:
7078
self.cutoff_warning = (
7179
'The last submission time for the I-D submission was %s.<br/><br>'
7280
'The I-D submission tool will be reopened after %s (IETF-meeting local time).' % (cutoff_01_str, reopen_str))

0 commit comments

Comments
 (0)