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
f481f5c3e6
Replaced use of six with the equivalent pure python3 constructs.
...
- Legacy-Id: 16428
2019-07-08 10:43:47 +00:00
Henrik Levkowetz
484dcece5f
Changed all model __unicode__() methods to __str__()
...
- Legacy-Id: 16330
2019-06-28 21:07:08 +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
be92e6b868
Removed an incorrect log.unreachble() invocation.
...
- Legacy-Id: 16262
2019-06-15 21:32:15 +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
Henrik Levkowetz
ca1f3340c0
Changed a ReviewAssignmentDocEvent type from 'closed_review_request' to 'closed_review_assignment', for consistency and readability.
...
- Legacy-Id: 16181
2019-05-02 12:38:41 +00:00
Henrik Levkowetz
8726e74709
Merged in a refactoring of document review code from rjsparks@nostrum.com. This introduces ReviewAssignments, letting us do multiple assingments for a given RevieRequest, without conflating the assignments and their results with the request itself.
...
- Legacy-Id: 16177
2019-04-30 16:54:06 +00:00
Henrik Levkowetz
bb4fe3fbbf
Undid previous commit
...
- Legacy-Id: 16153
2019-04-22 19:22:42 +00:00
Henrik Levkowetz
cfcefc2e32
Merged in [16144] from housley@vigilsec.com:
...
Remove some clutter from I-D upload page. The information was mived to the Instructions tab, but a higligh to the Note Well and BCP 78 was added. Fixes #2057 .
- Legacy-Id: 16151
Note: SVN reference [16144] has been migrated to Git commit 37851b9742
2019-04-22 17:39:26 +00:00
Peter E. Yee
cfdbae1f3c
Fixed bad calls to rfcdiff for -00 drafts and replaced drafts. Fixes issue #2697 . Commit ready for merge.
...
- Legacy-Id: 16095
2019-03-23 18:17:51 +00:00
Robert Sparks
e91d706d5b
Checkpointing. This is an incomplete idea. The tests will fail massively.
...
- Legacy-Id: 15985
2019-03-01 23:19:47 +00:00
Henrik Levkowetz
c9db218e31
Increased the DocumentURL.url field length to the legal URL maximum of 2083
...
- Legacy-Id: 15972
2019-02-25 21:05:25 +00:00
Robert Sparks
25cc00f925
Refactored DocumentInfo to address overloading the external_url field with strings that are not URLs. Commit ready for merge.
...
- Legacy-Id: 15864
2019-01-02 22:55:00 +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
143a58d3cc
Added handling for an EOF exception that can occur when using the django file-based cache.
...
- Legacy-Id: 15769
2018-11-13 13:39:47 +00:00
Robert Sparks
f1c1b9fc6c
invalidate the get_state_slug cache when the get_state cache is invalidated. Fixes #2630 . Commit ready for merge.
...
- Legacy-Id: 15720
2018-11-05 22:43:02 +00:00
Henrik Levkowetz
22a2e29db8
Added an send_email field to BallotPostitionDocEvent to reflect whether the 'Send email' button was used to save the ballot position. Reverted a different earlier schema change which had the same purpose. Added icons on documents' IESG evaluation record to reflect this.
...
- Legacy-Id: 15526
2018-10-07 15:08:17 +00:00
Henrik Levkowetz
cfb214c48a
Added a BallotCommentDocEvent, which extends DocEvent with a send_mail field, in order to better be able to show whether ballot discusses and comments were posted with with the 'send email' button or not.
...
- Legacy-Id: 15515
2018-10-01 13:31:17 +00:00
Henrik Levkowetz
89b8fe6c1b
Moved document methods rfc_number() and rfcnum() to the abstract parent class to have them available also for historical document records. Should fix the recent server 500 on /doc/draft-ietf-aaa-diameter/17/.
...
- Legacy-Id: 15454
2018-09-14 20:29:07 +00:00
Robert Sparks
d9b53a5d6c
Use unversioned links in ics agendas. Partially fixes #2542 . Commit ready for merge.
...
- Legacy-Id: 15446
2018-09-10 20:12:09 +00:00
Robert Sparks
1735f86db0
Removed memoize from latest_event. Commit ready for merge.
...
- Legacy-Id: 15083
2018-04-25 18:15:23 +00:00
Henrik Levkowetz
96e4059e43
Undid some memoization; these values can change during an object's lifetime.
...
- Legacy-Id: 15025
2018-04-07 10:07:57 +00:00
Henrik Levkowetz
5446ae642a
Changed the signature of some document methods to not accept lists (but still accept tuples) in order to make caching possible. Added @memoize to some methods.
...
- Legacy-Id: 15024
2018-04-06 21:25:56 +00:00
Henrik Levkowetz
583d8882c5
Fixed an issue where the change of slide naming between IETF 96 and 97 caused the datatracker to not provide correct link to pre-IETF-97 materials. Thanks to tjw.ietf@gmail.com for the heads-up.
...
- Legacy-Id: 15017
2018-04-05 20:34:56 +00:00
Henrik Levkowetz
1ec98fdd59
Added @memoize to two Document methods
...
- Legacy-Id: 15006
2018-04-04 17:10:06 +00:00
Henrik Levkowetz
43a9291053
Added an index for (doc, type) on DocEvent to speed up latest_event() queries.
...
- Legacy-Id: 14990
2018-04-01 19:33:16 +00:00
Henrik Levkowetz
60a60de94b
Replaced inline database lookups with get_active_ads().
...
- Legacy-Id: 14987
2018-04-01 18:38:50 +00:00
Henrik Levkowetz
4c297ba4c0
Changed settings so that cache keys used by memcached includes the release version, in order to avoid stale and incorrect cache content on new release deployment. Made it easier to pick out cache key composition by normalizing the variable name. Adjusted cache prefix and the composition of some keys to have a unique and consistent cache key prefix.
...
- Legacy-Id: 14943
2018-03-26 21:26:20 +00:00
Henrik Levkowetz
fdba464808
Added result caching for a couple of Document methods.
...
- Legacy-Id: 14795
2018-03-14 19:11:18 +00:00
Henrik Levkowetz
a4768bb514
Removed unused imports. Added some explicit orderings to avoid pagination issues.
...
- Legacy-Id: 14664
2018-02-21 23:54:31 +00:00
Henrik Levkowetz
5638cf3da3
Changed all usage of ForeignKey and OneToOneFiled in model.py files to the compatibility versions from ietf.utils.models.
...
- Legacy-Id: 14661
2018-02-20 15:36:05 +00:00
Henrik Levkowetz
97206c6eeb
Added user notification about ballots closed automatically when creating a new ballot.
...
- Legacy-Id: 14471
2017-12-29 15:24:37 +00:00
Henrik Levkowetz
7d7b7de54f
Fixed an ungarded object attribute access.
...
- Legacy-Id: 14446
2017-12-19 14:38:02 +00:00
Henrik Levkowetz
1f976da5c1
Third part of document read refactoring, after [14406] and [14410]. This replaces all usage of the non-unicode-aware get_document_content() function with unicode-aware Document.text() or Document.text_or_error() methods. This was triggered by yet another report of unicode content not being shown properly, and should fix all instances of document (drafts, agendas, minutes, etc.) display in the datatracker not handling unicode characters properly.
...
- Legacy-Id: 14411
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
Note: SVN reference [14410] has been migrated to Git commit 660c81c272
2017-12-11 16:23:51 +00:00
Henrik Levkowetz
967ece7e7d
Started refactoring of reading text from document files (drafts, charters, etc.) in order to normalise on one way of doing this, and making that return unicode rather than undecoded bytes. This is the first step of two, in order to gauge the possible issues and report on discrepancies.
...
- Legacy-Id: 14406
2017-12-08 21:51:11 +00:00
Henrik Levkowetz
ddfddb61ca
Made the ballot type representation string more expressive, showing both name and doc_type.
...
- Legacy-Id: 14383
2017-12-01 09:27:28 +00:00
Tero Kivinen
7b4727541a
Added closed date column to closed review list. Fixes #2150 . Commit ready for merge
...
- Legacy-Id: 14365
2017-11-11 11:30:00 +00:00
Henrik Levkowetz
8499beb010
Added a 'Recent documents' to the IESG pages.
...
- Legacy-Id: 14300
2017-11-04 12:36:13 +00:00
Henrik Levkowetz
0d15cb0e14
Permit document urls to be up to 512 bytes, rather than the default 200
...
- Legacy-Id: 14230
2017-10-30 11:07:45 +00:00
Henrik Levkowetz
53eb7c8ae8
Added migrations for document url model changes. Updated the name fixtures. Added ability for individual draft authors to edit document urls.
...
- Legacy-Id: 14172
2017-09-27 16:37:13 +00:00
Henrik Levkowetz
92d425fd9b
Added 'Additional URLs' for documents, the same way we have them for groups.
...
This could be used to point to a document source repository, to extracted
yang module files, document wikis, and other relevant resources.
- Legacy-Id: 14166
2017-09-27 10:52:32 +00:00
Henrik Levkowetz
da23da1e8e
Tweaked Document.relations_that_doc() to accept unicode relationship strings, in order to let it be called from modules importing __future__.unicode_literals.
...
- Legacy-Id: 14124
2017-09-16 09:24:29 +00:00
Henrik Levkowetz
b33b62824e
Added a document name validator to avoid new documents with unwanted characters in the name.
...
- Legacy-Id: 13998
2017-07-28 22:48:30 +00:00
Henrik Levkowetz
4295396891
Make Document.href() point at the rfc when doc.is_rfc().
...
- Legacy-Id: 13988
2017-07-27 15:28:11 +00:00
Henrik Levkowetz
3c88cf822b
Replaced some group-specific agenda and minutes urls with session-specific urls, and more consistently pointed at explicitly named meeting materilas. Related to [13964].
...
- Legacy-Id: 13968
Note: SVN reference [13964] has been migrated to Git commit a5d8cc85d3
2017-07-24 17:41:49 +00:00
Henrik Levkowetz
391d5e9ec5
Added a guard for the case that slides might be removed from a session while agenda page construction is in flight.
...
- Legacy-Id: 13926
2017-07-17 09:22:06 +00:00