Jennifer Richards
81d9234d54
Use temporary directories instead of "real" filesystem for tests. Fixes #3414 . Commit ready for merge.
...
- Legacy-Id: 19555
2021-11-05 19:45:57 +00:00
Robert Sparks
3697180cc1
Reverted merge of timezone-aware migration efforts.
...
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz
774e752a54
Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
...
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz
f10ddadc0e
Merged in changes from trunk up to r17584.
...
- Legacy-Id: 17593
2020-04-07 16:02:52 +00:00
Henrik Levkowetz
50bb971fc3
Merged in [17496] from rjsparks@nostrum.com:
...
Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Removed unnecessary imports.
- Legacy-Id: 17522
Note: SVN reference [17496] has been migrated to Git commit db5d11ea32
2020-03-23 22:34:03 +00:00
Robert Sparks
db5d11ea32
Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Commit ready for merge.
...
- Legacy-Id: 17496
2020-03-21 22:11:33 +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
59cfdf11fb
Fixed a pyflakes issue
...
- Legacy-Id: 17334
2020-02-23 16:28:47 +00:00
Henrik Levkowetz
d2ad86c5df
Python 2/3 changes pulled from the production server after the switch to python 3.
...
- Legacy-Id: 17327
2020-02-23 01:34:52 +00:00
Henrik Levkowetz
b5697b62ab
Fixed some py2/py3 issues in ID index generation modules.
...
- Legacy-Id: 17262
2020-01-28 13:29:54 +00:00
Henrik Levkowetz
3e9bad1c8b
Merged in [16883] from sasha@dashcare.nl:
...
Fix #2277 - Do not allow reviewers to reject overdue reviews.
If a review request is past the deadline, reviewers will no longer be
able to reject the assignment.
- Legacy-Id: 16909
Note: SVN reference [16883] has been migrated to Git commit 3c2b01b3ff
2019-10-22 20:59:13 +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
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +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
6118975620
Added an explicit ID-Exists state for the IESG state machine. Reworked code so that the IESG state machine always has a state. Added the ability to release a document from a working group, research group, or the independent stream. Releasing a document removes all stream state, and sets the document to have no stream.
...
- Legacy-Id: 15809
2018-12-11 22:38:05 +00:00
Henrik Levkowetz
56d622b185
Changed the generation of the 1id-index.txt file to not list individual drafts in states Candidate for WG Adoption and Call for WG Adoption Issued as group drafts.
...
- Legacy-Id: 15612
2018-10-24 17:40:36 +00:00
Robert Sparks
2159fdd975
Use factories for ietf.idindex.tests. Commit ready for merge.
...
- Legacy-Id: 15380
2018-07-18 15:35:20 +00:00
Henrik Levkowetz
76628be3fd
Merged in ^/branch/iola/author-stats-r13145 from olau@iola.dk, and fixed some tests in code which moved after the latest merge with trunk. The test suite passes, but the migrations are _not_ ready to run, because of numbering conflicts (again due to code changes on trunk since the latest sync).
...
- Legacy-Id: 13479
2017-05-31 20:59:26 +00:00
Ole Laursen
5b677dc6ba
Merge author stats branch into new branch from trunk
...
- Legacy-Id: 13159
2017-03-28 14:36:40 +00:00
Henrik Levkowetz
14c748df98
Changed the creation of temporary test dirs to use names which include the test class name, in order to make it possible to run test cases in parallel. Disabled coverage testing when running in parallel (those classes cannot be pickled and distributed to the test runner threads, and also won't pass coverage data back). Tweaked the TestCase.tempdir() method.
...
- Legacy-Id: 13157
2017-03-27 21:41:18 +00:00
Henrik Levkowetz
4daf66d11c
Added DocEvent rev= parameter througout the code.
...
- Legacy-Id: 12978
2017-03-06 15:08:21 +00:00
Henrik Levkowetz
cf4a4b02a7
Reworked the email address handling in order to be able to support non-ascii names as part of email address fields. Reworked the generation of user names in the test suite to generate names from multiple non-ascii locales. Fixes issue #2080 .
...
- Legacy-Id: 12872
2017-02-18 21:50:18 +00:00
Henrik Levkowetz
dca5c9c4d4
Fixed a bug in a queryset argument in all_id_text(); __in was not used, but the value given was a multi-row queryset.
...
- Legacy-Id: 12780
2017-02-02 12:24:27 +00:00
Ole Laursen
9308948195
Add person, affiliation and country (through django-countries) to
...
DocumentAuthor, rename author field to email and make it optional (for
modeling old email-less submissions), remove the authors many to many
referencing field from Document as it is not really pointing the right
place.
Update the Secretariat tools to show affiliation and country.
Add migration for getting rid of the fake email addresses that the
migration script created some years ago (just set the author email
field to null).
- Legacy-Id: 12739
2017-01-26 17:10:08 +00:00
Henrik Levkowetz
173f5419ac
Changed the state shown in all_id.txt for drafts which have entered IESG processing, but then been replaced, to show as 'Replaced' instead of 'In IESG Processing'. This is consistent with how they are shown in all_id2.txt.
...
- Legacy-Id: 12529
2016-12-15 10:44:23 +00:00
Henrik Levkowetz
8e56935cfd
Undid commit 12527, which contained much too much.
...
- Legacy-Id: 12528
2016-12-15 10:38:54 +00:00
Henrik Levkowetz
e3c6e0ac6b
Changed the state shown in all_id.txt for drafts which have entered IESG processing, but then been replaced, to show as 'Replaced' instead of 'In IESG Processing'. This is consistent with how they are shown in all_id2.txt.
...
- Legacy-Id: 12527
2016-12-15 10:36:15 +00:00
Henrik Levkowetz
18f65e09a0
Removed bad select_related names.
...
- Legacy-Id: 12456
2016-12-05 15:23:27 +00:00
Henrik Levkowetz
68655b569b
Fixed 2 testing bugs. Added tests for handling of submitters without email and drafts with non-ascii names in the author section.
...
- Legacy-Id: 12064
2016-09-30 17:35:35 +00:00
Henrik Levkowetz
f2c31f242b
Changed the 1id_index generation to use a new Person method .plain_ascii(). Added tests for some Person name methods.
...
- Legacy-Id: 11993
2016-09-15 17:29:08 +00:00
Henrik Levkowetz
807e89cb85
Change 1id_index back to using plain names, undoing an inadvertent change to names with title.
...
- Legacy-Id: 11986
2016-09-13 18:53:52 +00:00
Henrik Levkowetz
5acff0e95f
Added a method Person.ascii_name() for use when generating 1id-*.txt files. Added caching for Person.plain_name(). Fixes a problem with non-ascii names in 1id-*.txt which lead to non-ascii names in xml2rfc reference files.
...
- Legacy-Id: 11510
2016-07-01 20:08:28 +00:00
Henrik Levkowetz
e6a005dba6
Added a score of setting save/restores to test setup/teardown actions.
...
- Legacy-Id: 11436
2016-06-21 07:51:02 +00:00
Henrik Levkowetz
cf7d794b09
Modified the test data to use some AD and WG chair names that contain non-ascii characters, and fixed test issues found.
...
- Legacy-Id: 10418
2015-11-04 07:34:56 +00:00
Ole Laursen
8bca1b4b33
Summary: Make name the primary key for DocAlias.
...
This fixes Javascript widgets working with DocAliases, such as the
replaces field in draft submission, to work better with Javascript
disabled. It also makes sense from a modelling perspective as the name
really is a unique key for the alias.
The actual transformation requires a series of migrations taking a
couple of minutes to complete. The actual switch to the key is done at
the end.
Branch ready for merge.
- Legacy-Id: 10111
2015-09-30 13:47:33 +00:00
Henrik Levkowetz
6f285a12f4
Changed the handling of some test directory creation and removal code, to be more consistent. Fixed a problem where a test didn't create and remove a test directory it used.
...
- Legacy-Id: 9203
2015-03-15 16:01:15 +00:00
Henrik Levkowetz
86997e1e95
Turned the api.py file into a module. Moved the makeresources management command to the api module. Added some api tests. Added crawling of api files to the test-crawler. Adjusted some resource files discovered by the test suite and test-crawler. Removed a bunch of empty model files.
...
- Legacy-Id: 9144
2015-03-03 20:23:36 +00:00
Henrik Levkowetz
cebffd36d8
Added django.setup() to some additional scripts, as required under Django 1.7.
...
- Legacy-Id: 9068
2015-02-10 22:09:22 +00:00
Ole Laursen
f291a466d7
Change Document.shepherd to point to the email address rather than the
...
person, add migration to fix the existing shepherds, fix wording and
max entries on change shepherd page to be more self-explanatory
- Legacy-Id: 8268
2014-08-13 11:40:01 +00:00
Henrik Levkowetz
8c42989d5d
Pyflakes cleanup compliant with pyflakes 0.8.1, which seems to find things 0.8.0 didn't fin.
...
- Legacy-Id: 7558
2014-04-01 16:25:18 +00:00
Henrik Levkowetz
02031a01b9
Cleaned out some (arbitrary) submodule name imports into ietf.utils, and made the corresponding import statements import the names directly from the correct submodules.
...
- Legacy-Id: 7495
2014-03-16 07:09:38 +00:00
Henrik Levkowetz
ab069c4570
Made ietf/idindex/ pyflakes-clean.
...
- Legacy-Id: 7466
2014-03-15 17:17:25 +00:00
Ole Laursen
591e90a7a0
Put a proper command-line interface on the test crawler, spit out number of errors (if any), also add wrapper script for running the test-crawler and idindex generation scripts, in the future other (safe, non-mutating) scripts operating on real data can be added too
...
- Legacy-Id: 7107
2014-01-12 16:55:42 +00:00
Ole Laursen
be8eb96bec
Get rid of a bunch of DB queries in all_id2_txt
...
- Legacy-Id: 7106
2014-01-12 14:16:37 +00:00
Ole Laursen
defb116721
Use prefetch_related to reduce the number of queries on the search page and in idindex generation, adjust a couple of members on Document slightly to not filter on relations (filtering doesn't work with prefetch_related)
...
- Legacy-Id: 6992
2013-12-18 16:58:34 +00:00
Ole Laursen
e54bd17499
Port from django.core.management.setup_environ to DJANGO_SETTINGS_MODULE
...
- Legacy-Id: 6985
2013-12-18 15:51:11 +00:00