Henrik Levkowetz
f10ddadc0e
Merged in changes from trunk up to r17584.
...
- Legacy-Id: 17593
2020-04-07 16:02:52 +00:00
Henrik Levkowetz
4d345573ae
Check if any files matching the submitted draft name and revision already exists on disk in the active drafts or archived drafts directories, and if so reject the submission. Fixes issue #2908
...
- Legacy-Id: 17498
2020-03-21 22:56:57 +00:00
Robert Sparks
edc41a8705
Don't warn about idcutoff when the cutoff is after the meeting starts. Fixes #2907 . Commit ready for merge.
...
- Legacy-Id: 17419
2020-03-11 16:15:40 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
e9a37d8ac8
Removed six.text_type(), changed six.moves.urllib to plain urllib, and removed now unused six imports.
...
- Legacy-Id: 17385
2020-03-05 14:41:41 +00:00
Henrik Levkowetz
b4d7dd131a
Added ability to use the submission API with active secondary email addresses. Fixes issue #2639 .
...
- Legacy-Id: 17383
2020-03-04 18:05:56 +00:00
Henrik Levkowetz
096c08aac4
Added a test case for draft submission errors due to periods in document names.
...
- Legacy-Id: 17251
2020-01-18 15:07:51 +00:00
Henrik Levkowetz
6482254a03
Merged in ^/branch/akayla/irsg/6.113.1.dev0 from peter@akayla.com.
...
This provides support for IRSG ballots, similar to the IESG ballots support which has been in use for quite some time. The IRSG ballots differ from IESG ballots in a number of ways, described in detail in the RFP and SoW for this work and implemented here.
- Legacy-Id: 17164
2019-12-20 15:00:55 +00:00
Peter E. Yee
bb7e504d14
12/13 merged into 6.113.1.dev0 with migration ordering failure
...
- Legacy-Id: 17149
2019-12-13 19:53:45 +00:00
Henrik Levkowetz
994e0ba6cc
Moved the code that generates .txt and .html draft files from .xml to a place where potential errors can be caught and displayed better. Related to ticket #2814 .
...
- Legacy-Id: 16862
2019-10-15 14:33:35 +00:00
Henrik Levkowetz
9d4ca615d3
Merged in [16607] from rcross@amsl.com:
...
Fix issue where third session requests, which rerequire AD approval, get left with approved status, instead of scheduled, after Secretraiat sends out notifications of official schedule. Fixes #2765 .
- Legacy-Id: 16817
Note: SVN reference [16607] has been migrated to Git commit 9a82586e1b
2019-10-02 20:55:54 +00:00
Henrik Levkowetz
3939c0b88c
Changed draft submission to not require an email round-trip when the submitter is logged in. Added corresponding test cases.
...
- Legacy-Id: 16749
2019-09-26 14:43:26 +00:00
Henrik Levkowetz
78889979a1
Changed the draft submission form and views so that an email address is required for each author in order to complete self-service draft submission. It is possible to add these as metadata updates, but this will lead to submission through the secretariat (and the email addresses will still be required). Also updated related templates to make the handling of form section headings more consistent.
...
- Legacy-Id: 16745
2019-09-23 17:26:16 +00:00
Henrik Levkowetz
a3f59ee9a2
Added conversion of version 3 XML draft submissions to v3 HTML, in addition to text. Added a link to HTML versions (when present) to the document status page, and renamed the link to the htmlized version to 'htmlized'. Converted the submission XML test-file to version 3. Added test code to check that HTML is generated for version 3 XML submissions.
...
- Legacy-Id: 16737
2019-09-20 14:24:44 +00:00
Henrik Levkowetz
44f42cdb3a
Undid the previous commit
...
- Legacy-Id: 16735
2019-09-20 11:30:04 +00:00
Henrik Levkowetz
e3e9f676b7
Added class 'bg-danger' to submission error messages. The big 'Meta-Data errors found' pane on red background is so noticeable that class 'text-danger' which gives bold text is insufficient to stand out clearly. Adding 'bg-danger' gives the specific error messages red background, too.
...
- Legacy-Id: 16734
2019-09-20 11:28:53 +00:00
Henrik Levkowetz
bdc73e771a
Python2/3 compatibility: replaced six.ensure_text() with either six.text_type or django's force_text(), depending on the case, and fixed a variable scope issue.
...
- Legacy-Id: 16461
2019-07-16 13:20:05 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
48bab56be9
Removed a print() call
...
- Legacy-Id: 16420
2019-07-07 13:04:20 +00:00
Henrik Levkowetz
1225f8af6b
Refactored submission code to be clearer and only do mimetype extraction in one place, made the point where files are saved less obscure, fixed bytes/str issues for file read and write, fixed regex strings, fixed variable name visibility due to scope changes in py3.
...
- Legacy-Id: 16375
2019-07-04 15:49:42 +00:00
Henrik Levkowetz
97a555936d
Changed a large number of test assertions to use assertContains() and removed separate, now unnecessary,status_code checks. Also changed many assertTrue(... in ...) to use assertIn().
...
- Legacy-Id: 16346
2019-06-30 21:03:34 +00:00
Henrik Levkowetz
15e74e89cb
Converted instances of assertTrue(text in response.content) to the recommended assertContains(response, text), and similar for assertFalse(... in ...)
...
- Legacy-Id: 16336
2019-06-29 13:43:31 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
13705976e2
Merged in [16287] from rjsparks@nostrum.com:
...
Send mail to a list when a new IETF WG -00 is submitted. Fixes #2730 .
- Legacy-Id: 16289
Note: SVN reference [16287] has been migrated to Git commit 9ace7db719
2019-06-19 14:32:25 +00:00
Henrik Levkowetz
db12f2b948
Fixed some name versus pk issues lingering after the Document/DocAlias primary key refactoring. Fixes issue #2729 .
...
- Legacy-Id: 16288
2019-06-19 12:57:52 +00:00
Robert Sparks
9ace7db719
Send mail to a list when a new IETF WG -00 is submitted. Fixes #2730 . Commit ready for merge.
...
- Legacy-Id: 16287
2019-06-18 21:24:49 +00:00
Henrik Levkowetz
426870b766
Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
...
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz
a2cafded25
Changed DocAlias to be many-to-many, in order to be able to handle STD aliases referring to multiple RFCs.
...
- Legacy-Id: 16249
2019-06-14 20:38:14 +00:00
Henrik Levkowetz
815602351f
This is a series of 50 migrations that changes the Document and DocAlias
...
primary keys from character strings to integers, and makes corresponding code
changes.
This was prompted by database limitations discovered when trying to make
DocAlias use a m2m document field; with 255 long strings as primary keys for
Document and DocAlias this violated the MySQL database limitations.
Changing the primary keys to integers should also improve efficiency.
Due to the data migrations which create the new integer primary keys and adds
corresponding integer foreign keys matching the previous string foreign keys
in all tables having foreign keys to Document and DocAlias, some of these
migrations take a long time. The total set of migrations are expected to have
a runtime on the order of 2 hours.
- Legacy-Id: 16237
2019-06-10 11:32:46 +00:00
Robert Sparks
21a673490b
Incremental improvements to the submit_existing tests. Commit ready for merge.
...
- Legacy-Id: 15833
2018-12-18 23:22:40 +00:00
Robert Sparks
3d6c1f991b
Make state/substate changes on new submissions sensitive to stream. Fixes #2642 . Commit ready for merge.
...
- Legacy-Id: 15829
2018-12-17 22:38:22 +00:00
Henrik Levkowetz
ef3cbf4684
Merged in [15595] from rjsparks@nostrum.com:
...
Converted stats, submit, sync. and utils/test to use factories. Excluded utils/test_data from coverage checks.
- Legacy-Id: 15599
Note: SVN reference [15595] has been migrated to Git commit 39e76a836996ec9ed8ea449c92bdfae91c3dbaae
2018-10-19 12:54:58 +00:00
Henrik Levkowetz
232774a5cc
Adjusted the test_submit_nonascii_name() to match the output from idnits 2.16.0, which emits warnings rather than errors for nonascii content.
...
- Legacy-Id: 15525
2018-10-07 14:18:00 +00:00
Henrik Levkowetz
e87442f33a
Merged in [15282] from housley@vigilsec.com:
...
Set reply-to for I-D Announcements that include a CC to a mail list. Fixes #2530 .
- Legacy-Id: 15289
Note: SVN reference [15282] has been migrated to Git commit 733c304e3d
2018-07-10 17:16:47 +00:00
Henrik Levkowetz
4db4dd16b0
Merged in ^/personal/henrik/6.79.1-gdpr@15180 containing GDPR-adaptations.
...
- Legacy-Id: 15181
2018-05-28 11:26:24 +00:00
Henrik Levkowetz
f0c0753e28
Added email origin information to some function calls that needed it.
...
- Legacy-Id: 15130
2018-05-05 12:49:10 +00:00
Henrik Levkowetz
d076a1728c
Added a 'recent drafts' page, showing drafs submitted the last 7 days.
...
- Legacy-Id: 15099
2018-05-01 17:55:22 +00:00
Henrik Levkowetz
fec59ad937
Fixed a PyQuery property access that should have been a method call.
...
- Legacy-Id: 15087
2018-04-26 11:51:39 +00:00
Henrik Levkowetz
a9fbea113b
Changed incorrect use of 404 status code in api to 400. Fixes issue #2498 .
...
- Legacy-Id: 15044
2018-04-13 11:11:48 +00:00
Henrik Levkowetz
9bd18df83b
Use .assertIn(...) in tests instead of .assertTrue(x in y) as the failure messages are much more informative
...
- Legacy-Id: 15026
2018-04-07 10:09:07 +00:00
Henrik Levkowetz
b75ee89865
Added a test case for reference extraction.
...
- Legacy-Id: 14869
2018-03-20 11:04:12 +00:00
Henrik Levkowetz
47a0b9d3ce
Changed handling of yang modeules from drafts with errors, to not place them in separate directories, due to possible follow-on effects. Added use of IANA-held modules when validating, and regular rsyncing from IANA.
...
- Legacy-Id: 14389
2017-12-04 14:37:15 +00:00
Henrik Levkowetz
98d234cd86
Refactored the handling of BallotDocEvent in tests, only creating them as needed, in preparation for stricter checks on state transitions to avoid mismatches between state and ballot.
...
- Legacy-Id: 14380
2017-11-30 16:02:31 +00:00
Henrik Levkowetz
7c9364b61f
Added some more debugging output for occasional author extraction failures during test. See also [14226].
...
- Legacy-Id: 14233
Note: SVN reference [14226] has been migrated to Git commit 215008211a
2017-10-30 11:22:45 +00:00
Henrik Levkowetz
215008211a
Added some debugging code to help identify random test failures
...
- Legacy-Id: 14226
2017-10-27 05:53:23 +00:00
Henrik Levkowetz
7b2d921a5a
Tweaked the submission search form to accept draft names which include revision numbers. Fixes issue #2380 .
...
- Legacy-Id: 14171
2017-09-27 15:08:40 +00:00
Henrik Levkowetz
2d817427fc
Added a cancel button to the submission confirmation page. Fixes issue #2379 .
...
- Legacy-Id: 14170
2017-09-27 14:18:12 +00:00
Henrik Levkowetz
2c1438c240
Moved unidecode_name from utils.text to person.name.
...
Modified UserFactory to use a new locale for each new user, instead of the
same locale for a whole test run. This (almost) ensures the exercise of
code to deal with non-ascii names, something which would not happen if a
locale with ascii names was chosen at the start of a run.
Modified name.initials() to not use non-word characters as initials.
Modified unidecode_name() to do more normalization, to conform to the
conventions used in internet-drafts.
Added saving of the factory-boy random state in order to be able to re-run
a test suite with the same pseudo-random sequence as in a previous failed
run.
Fixed an issue with email formatting in test_api_submit_ok().
Modified the draft author extraction code to deal better with names with
embedded apostrophes.
- Legacy-Id: 14141
2017-09-20 15:36:30 +00:00
Henrik Levkowetz
6aa2cfca89
Updated tests to match the submission API info page.
...
- Legacy-Id: 14127
2017-09-17 14:02:52 +00:00
Henrik Levkowetz
3af2554b2f
Added an API for draft submission, at /api/submit. Added an urls.py file under api/ to hold api urls, and moved those from ietf/urls.py. Refactored out many parts of the regular submission forms and functions in submit/forms.py and submit/views.py in order to re-use the appropriate parts for the submission API. Moved support functions to submit/utils.py. Added a new validation errors for missing docName in xml-based submissions. Updated the submission test document templates to use insert additional values. Added failure and success test cases for automated API submissions, and refactored some test utility functions.
...
- Legacy-Id: 14125
2017-09-16 09:35:42 +00:00