Commit graph

224 commits

Author SHA1 Message Date
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
Henrik Levkowetz 1ba4350a05 Corrected code for [13834], handling minutes and other non-agenda meeting urls correctly.
- Legacy-Id: 13835
Note: SVN reference [13834] has been migrated to Git commit aba3861b0b
2017-07-11 21:40:15 +00:00
Henrik Levkowetz aba3861b0b Use a datatracker internal url for session agendas and minutes, to avoid X-Frame-Options SAMEORIGIN preventing agenda display in frames.
- Legacy-Id: 13834
2017-07-11 21:01:57 +00:00
Henrik Levkowetz 2c39de61ab Replaced the local copy of the draft/rfc htmlization code with rfc2html as installed modeule.
- Legacy-Id: 13827
2017-07-11 13:52:08 +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
Henrik Levkowetz b7fba37f52 Added a guard to prevent problems with legacy drafts without any draft state.
- Legacy-Id: 13318
2017-05-11 11:47:45 +00:00
Henrik Levkowetz 405f76f238 Updated the makeresources command to use the current AppCommand.handle_app_config() interface.
- Legacy-Id: 13306
2017-05-10 20:08:40 +00:00
Henrik Levkowetz 1e98833863 Removed debug statements.
- Legacy-Id: 13229
2017-04-18 14:12:10 +00:00
Henrik Levkowetz 7e8aeeefee Moved the caching of htmlized documents into Document.htmlized() in order to avoid caching failed htmliztions (usually because of a missing .txt file).
- Legacy-Id: 13227
2017-04-16 13:17:18 +00:00
Henrik Levkowetz 128be4b2e8 Applied a patch from production to trunk.
- Legacy-Id: 13214
2017-04-14 12:09:46 +00:00
Henrik Levkowetz b4fd2b63a8 Merged in [13205] from housley@vigilsec.com:
Check downref registry when producing Last Call text.  Fixes #2069.
 - Legacy-Id: 13210
Note: SVN reference [13205] has been migrated to Git commit aa7ed23cda
2017-04-12 21:24:33 +00:00
Russ Housley aa7ed23cda Check downref registry when producing Last Call text. Fixes #2069.
- Legacy-Id: 13205
2017-04-12 18:27:05 +00:00
Henrik Levkowetz d19179ba44 Merged in [13181] from housley@vigilsec.com:
This completes a good chunk of the downref registry work requested in ticket
#2069. The registry has been imported to the database and can be shown, and
entries can be added to the registry.  Addresses issue #2069.
 - Legacy-Id: 13190
Note: SVN reference [13181] has been migrated to Git commit f0125634f8
2017-04-10 22:47:01 +00:00
Russ Housley f0125634f8 Add downref registry to the datatracker at the request of the IESG. Still need to integrate with Last Call message generation
- Legacy-Id: 13181
2017-04-03 17:36:27 +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 d2c2d80341 Merged in [13112] from lars@netapp.com:
Fix various \'RemovedInDjango20Warning\' warnings.
 - Legacy-Id: 13141
Note: SVN reference [13112] has been migrated to Git commit 8a70e9773d
2017-03-26 22:06:47 +00:00
Lars Eggert 8a70e9773d Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Henrik Levkowetz d3558524f2 Improved traceback for a logger.error() message.
- Legacy-Id: 13093
2017-03-24 09:03:06 +00:00
Henrik Levkowetz b603791cae Another fix for get_file_path().
- Legacy-Id: 13088
2017-03-23 10:39:35 +00:00
Henrik Levkowetz 570ef785d6 Improved Document.get_file_path().
- Legacy-Id: 13059
2017-03-22 12:06:28 +00:00
Henrik Levkowetz 5203118041 Changed one more draft directory reference to use the draft archive setting.
- Legacy-Id: 13056
2017-03-22 09:48:11 +00:00
Henrik Levkowetz 475d18ea8e Changed where to look for the text version of expired drafts.
- Legacy-Id: 13052
2017-03-21 15:12:30 +00:00
Henrik Levkowetz e8043e53fb Made Document.htmlized() be a bit smarter about handling documents which have not been provided in .txt format.
- Legacy-Id: 13050
2017-03-21 14:02:43 +00:00
Henrik Levkowetz a67e9dd5c4 Added a number of new methods on DocumentInfo/Document/DocHistory, to support the new htmlized document page. Added caching for some methods.
- Legacy-Id: 13039
2017-03-20 13:51:46 +00:00
Henrik Levkowetz fe8cd06a76 Back out the htmlization code for the moment.
- Legacy-Id: 12997
2017-03-12 12:12:44 +00:00
Henrik Levkowetz 2ba55b1b5b Added text() and htmlized() methods on Document, to help with display of htmlized text.
- Legacy-Id: 12992
2017-03-11 13:44:03 +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 05d57f6577 Added a 'rev' field to DocEvent, and removed the corresponding field from NewRevisionDocEvent and SubmissionDocEvent. Added a migration for an initial schema change, one data migration to copy and infer revision information, another schema migration to remove extraneous revision field, and another data migration to fix up bad timestamps and bad revision info from the period 2016-09-10 to 2016-10-04.
- Legacy-Id: 12974
2017-03-05 19:59:27 +00:00
Henrik Levkowetz 27351c4349 Fixed url lookups for doc.views_doc.document_main() to only use dotted-path, and removed the doc_view explicit url name. Fixes a 500 error in /submit/status/NNNN/.
- Legacy-Id: 12897
2017-02-22 11:40:55 +00:00
Henrik Levkowetz c889856dfa Added a validator to Document.title to prevent control chars in the title (complementing a recent cleanup of more than 120 instances of document titles containing vertical tabs)
- Legacy-Id: 12893
2017-02-20 20:47:37 +00:00
Ole Laursen b2ff10b0f2 Add support for extracting the country line from the author addresses
to the draft parser (incorporating patch from trunk), store the
extracted country instead of trying to turn it into an ISO country
code, add country and continent name models and add initial data for
those, add helper function for cleaning the countries, add author
country and continent charts, move the affiliation models to
stats/models.py, fix a bunch of bugs.
 - Legacy-Id: 12846
2017-02-15 18:43:57 +00:00
Henrik Levkowetz ffb029300f Added a guard to prevent trying to get a document path for a meeting document when the document is not associated with a meeting session.
- Legacy-Id: 12790
2017-02-08 17:00:12 +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