Lars Eggert
e14dcdac8f
Rename crawl_history to make_rev_history, which is more descriptive. Fix #2224
...
(thanks, Robert!) by generating graphs for the entire revision history of a doc,
both forward and backward in time. Commit ready for merge.
- Legacy-Id: 13109
2017-03-25 18:52:46 +00:00
Lars Eggert
afdf154e0a
Change "ID Tracker" to "Datatracker" in various places. Fixes some of #2100 .
...
Commit ready for merge.
- Legacy-Id: 13108
2017-03-25 18:23:38 +00:00
Henrik Levkowetz
eef984202f
Better handling of missing documents (such as rfc575)
...
- Legacy-Id: 13060
2017-03-22 12:07:08 +00:00
Henrik Levkowetz
570ef785d6
Improved Document.get_file_path().
...
- Legacy-Id: 13059
2017-03-22 12:06:28 +00:00
Henrik Levkowetz
9082b0abe5
Another tweak to the rev pattern, and exception handling when breaking apart name an rev for documents which don't use the charter rev model.
...
- Legacy-Id: 13057
2017-03-22 09:50:07 +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
814e1315b5
Added a new document tab for some documents, showing htmlized drafts and RFCs
...
using the htmlization code previously developed for tools.ietf.org. As the
generation of the htmlized page is a bit too costly to do on the fly for
often-referenced drafts and RFCs, the part of each page which contains the
htmlized document is cached on file with a cache time of 2 weeks.
Changed all links which pointed to the htmlized version on tools to instead
point at the datatracker htmlized document.
Tweaked some URLs which didn't permit retrieval of intermediate-rev-charters.
Narrowed the pattern for document names to disallow dots in names, and
instead explicitly enumerated the few historical draftw with dots in the
name.
Added a file-system cache for the htmlized documents, and specified a
max_entries value for caches, overriding the default 300 entries.
Tweaked the code for new author email entries to provide a time if missing
in an updated entry.
Changed links in various email templates which pointed at tools.ietf.org
pages to instead point at datatracker pages, where appropriate.
Changed the search result rows to provide links to both the current meta-
information document pages (with a (i) info symbol) and to the new htmlized
document pages.
- Legacy-Id: 13040
2017-03-20 14:08:52 +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
d6d6fd65db
Applied a patch rjsparks@nostrum.com to make ballot grids show for statchg documents in ietf last call.
...
- Legacy-Id: 13015
2017-03-15 14:57:20 +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
8eb447e77f
Added an improved guard against trying to fetch milestones for a group value of None.
...
- Legacy-Id: 12989
2017-03-08 15:19:08 +00:00
Henrik Levkowetz
707b006d17
Added a guard against trying to fetch milestones for a group value of None.
...
- Legacy-Id: 12988
2017-03-08 15:14:58 +00:00
Henrik Levkowetz
de2356d693
Added a migration for the tweaked DocEvent.rev field.
...
- Legacy-Id: 12979
2017-03-07 09:48:22 +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
dd305e0d87
Fixed a bug in the StateAdmin list_filter setting.
...
- Legacy-Id: 12972
2017-03-04 16:19:29 +00:00
Henrik Levkowetz
0bebccd1cb
Added a data migration which adds 2 new WG states: 'Waiting for Implementation' and 'Held by WG'.
...
- Legacy-Id: 12969
2017-03-04 13:46:17 +00:00
Henrik Levkowetz
9bbd50119f
Added a filter bar for state-type to the admin page for doc.models.State.
...
- Legacy-Id: 12968
2017-03-04 13:45:08 +00:00
Henrik Levkowetz
387068f67d
Updated unreachable markings.
...
- Legacy-Id: 12967
2017-03-04 05:38:23 +00:00
Henrik Levkowetz
c006c44423
Added setting of document author for review document objects.
...
- Legacy-Id: 12957
2017-03-03 19:40:09 +00:00
Henrik Levkowetz
541085b1a8
Changed email notifications for reviews done to save the message as a Message instance before sending it. Added test code to check that a Message instance is created and matches what goes out.
...
- Legacy-Id: 12955
2017-03-03 15:45:29 +00:00
Henrik Levkowetz
ea70381f29
Merged in [12950] from rcross@amsl.com:
...
Fixes #2219 . Area Group chairs are denied material management access.
- Legacy-Id: 12951
Note: SVN reference [12950] has been migrated to Git commit c6d1a59aa4
2017-03-02 21:21:07 +00:00
Henrik Levkowetz
225c1d9afe
Changed the state choices in the document adoption form to exclude the few that should not be available, rather than explicitly list all others. Makes adding WG/RG states simpler.
...
- Legacy-Id: 12949
2017-03-02 20:07:50 +00:00
Henrik Levkowetz
695bf37bc6
Merged in [12930] from rjsparks@nostrum.com:
...
Use the Role email associated with a reviewer as the From when emailing a review. Fixes #2201 .
- Legacy-Id: 12936
Note: SVN reference [12930] has been migrated to Git commit 8577a5e84a
2017-02-28 21:50:12 +00:00
Henrik Levkowetz
6af4ce62aa
Removed debugging code.
...
- Legacy-Id: 12934
2017-02-28 20:42:19 +00:00
Henrik Levkowetz
5bb5ca727b
Created a special function log.unreachable() to mark code unreachable, and changed a function name from log.affirm() to log.assertion().
...
- Legacy-Id: 12933
2017-02-28 20:16:52 +00:00
Robert Sparks
8577a5e84a
Use the Role email associated with a reviewer as the From when emailing a review. Fixes #2201 . Commit ready for merge.
...
- Legacy-Id: 12930
2017-02-28 18:40:09 +00:00
Henrik Levkowetz
5f053ad21a
Cleaned up the remaining explicit url names, using dotted-paths to view
...
functions instead. In all almost 700 changes.
- Legacy-Id: 12923
2017-02-26 23:21:49 +00:00
Henrik Levkowetz
c58c51f919
Added a migration which captures the added validator for title fields.
...
- Legacy-Id: 12907
2017-02-24 10:24:34 +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
988a2b808f
Added explicit charset setting and consistent encoding to several email paths through the datatracker. After introducing support for non-ascii names in email addresses, using role.formatted_email() to insert names into email content doesn't work any more, since uncode names will now be rfc2047-encoded in formatted_email(). Added another method role.name_and_email() for this case. Replaced another case of '%s <%s>' name-and-email formatting with formataddr(). Fixed some tests which did not send unicode email bodies to the email functions. Fixes issue #2017 .
...
- Legacy-Id: 12896
2017-02-21 19:17:10 +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
Henrik Levkowetz
8930d29a8e
Merged in Django-1.10 upgrade work from ^/personal/henrik/6.43.1-django-1.10
...
- Legacy-Id: 12881
2017-02-19 18:18:00 +00:00
Henrik Levkowetz
b8815b00c5
Don't use person.plain_name() when constructing email addresses, as it can contain unicode characters which the current email pipeline can't handle correctly. Use person.plain_ascii() instead (or person.formatted_email()).
...
- Legacy-Id: 12865
2017-02-16 22:59:53 +00:00
Henrik Levkowetz
74af0f5658
Replaced another bunch of explicit url names with dotted-path to the view function.
...
- Legacy-Id: 12849
2017-02-15 22:11:20 +00:00
Henrik Levkowetz
29567adf34
Merged in [12835] from rcross@amsl.com:
...
Fixes #2202 . Interim sessions appear unordered. Switch templates to use ordered assignments() related object manager. Also removed now unused template filters.
- Legacy-Id: 12839
Note: SVN reference [12835] has been migrated to Git commit 8607be0e21
2017-02-14 16:22:54 +00:00
Ryan Cross
8607be0e21
Fixes #2202 . Interim sessions appear unordered. Switch templates to use ordered assignments() related object manager. Also removed now unused template filters. Commit ready for merge.
...
- Legacy-Id: 12835
2017-02-13 22:30:21 +00:00
Henrik Levkowetz
aa5e61d958
Updated all urlpatterns to use ietf.utils.urls.url() instead of django's,
...
in order to autogenerate dotted path url pattern names. Updated a number
of url reverses to use dotted path, and removed explicit url pattern names
as needed.
Changed some imports to prevent import of ietf.urls before django
initialization was complete.
Changed 3 cases of form classes being curried to functions; django 1.10
didn't accept that.
Started converting old-style middleware classes to new-style middleware
functions (incomplete).
Tweaked a nomcom decorator to preserve function names and attributes, like
a good decorator should.
Replaced the removed django templatetag 'removetags' with our own version
which uses bleach, and does sanitizing in addition to removing explicitly
mentionied html tags.
Rewrote the filename argument handling in a management command which had
broken with the upgrade.
- Legacy-Id: 12818
2017-02-11 14:43:01 +00:00
Henrik Levkowetz
19d585255a
Django 1.10 does not permit the view argument to url() to be a string any more. Changed all cases view arguments to url() which were strings to instead reference the actual imported function.
...
- Legacy-Id: 12815
2017-02-10 14:49:16 +00:00
Henrik Levkowetz
088e2ca7f4
Removed dead code which used to work around a now fixed bug (and also used a now removed django function)
...
- Legacy-Id: 12813
2017-02-10 14:43:37 +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
Henrik Levkowetz
8a8283f537
Fixed a pyflakes issue.
...
- Legacy-Id: 12788
2017-02-07 17:50:06 +00:00
Henrik Levkowetz
0948c4a0f3
Applying format_html() in simple_tag-registered tags as per the suggestions for Django-1.9 upgrade wasn't straightforward. Reverting to earlier code for ballot-icond link.
...
- Legacy-Id: 12782
2017-02-02 14:24:36 +00:00
Henrik Levkowetz
e94129641d
@register.simple_tag now (in Django 1.9) needs explicit mark_safe() (or format_html() which invokes mark_safe()). Fixed one case which needed this.
...
- Legacy-Id: 12779
2017-02-01 20:46:51 +00:00
Henrik Levkowetz
de3976bec0
Merged in Django 1.9 upgrade work from ^/personal/henrik/6.41.1-django-1.9
...
- Legacy-Id: 12764
2017-01-31 15:13:01 +00:00
Henrik Levkowetz
40e8380751
Merged django 1.9 work forward to copy of trunk @6.41.0
...
- Legacy-Id: 12756
2017-01-30 23:13:02 +00:00
Henrik Levkowetz
ccfbde8d33
Fixed an issue with building links from URLs which are already part of a link. Fixes issue #2175 .
...
- Legacy-Id: 12742
2017-01-26 20:11:46 +00:00