Henrik Levkowetz
34a2352288
Make sure wordwrap() and friend works as intended if they are used as template filters and given string arguments.
...
- Legacy-Id: 13653
2017-06-16 13:15:02 +00:00
Henrik Levkowetz
8d420d4d2f
Added initial data to the versioninfo migration.
...
- Legacy-Id: 13638
2017-06-16 08:55:31 +00:00
Henrik Levkowetz
c4b64e51af
Updated the VersionInfo migration.
...
- Legacy-Id: 13637
2017-06-16 08:45:11 +00:00
Henrik Levkowetz
d98054c103
Added a new yang checker, 'yanglint', to the existing Yang checker class, in
...
addition to the existing 'pyang' checker.
Added modal overlay displays showing the yang check results every place the
yin/yang symbol is shown (red or green) to indicate the presencee and result
of yang checks. Added a Yang Validation: line in the document
meta-information section on the document's page in the datatracker.
Added the result of the xym extaction to the yang check results, to make
extration failures visible.
Added the version of the used xym, pyang, and yanglint commands to the check
results.
Added an action to move successfully extracted and validated modules to the
module library directories immediately on submission.
Added the xym and pyang repositories as svn:external components, rather than
listing them in requirements.txt, as there has been delays of many months
between essential features in the repositories, and an actual release. We may
get occasional buildbot failures if broken code is pulled in from the
repository, but better that than the functionality failure of severely
outdated componets.
Added a new management command to re-run yang validation for active drafts for
which yang modules were found at submission time, in order to pick up imported
models which may have arrived in the model libraries after the draft's
submission. Run daily from bin/daily.
Added a table to hold version information for external commands. The yang
checker output should include the version information of the used checkers,
but seems unnecessary to run each command with its --version switch every
time we check a module...
Added a new management command to collect version information for external
commands on demand. To be run daily from bin/daily.
Added tests to verify that xym, pyang and yanglint information is available
on the submission confirmation page, and updated the yang module contained in
the test document to validate under both pyang and yanglint.
Updated admin.py and resource.py files as needed.
- Legacy-Id: 13630
2017-06-15 16:09:28 +00:00
Henrik Levkowetz
9bd64ba6f2
Merged in [13559] from rcross@amsl.com:
...
When changing a TelechatDate in the admin interface, retain all document associations. Fixes #1349 .
- Legacy-Id: 13577
Note: SVN reference [13559] has been migrated to Git commit 77f4bf21ff
2017-06-10 05:33:36 +00:00
Henrik Levkowetz
4dcdda08d2
Added a test to the test suite which checks if there are interleaved schema and data migrations that have not been released yet. Having split migrations, first all schema and then all data, will permit doing 2 sequential releases; but if the data and schema migrations are interleaved (beyond this) it is problematic to arrange for release without ending up with a prolonged period when running code and table structure is out of sync (while the normally more time-consuming data migrations run).
...
- Legacy-Id: 13576
2017-06-09 21:37:14 +00:00
Henrik Levkowetz
7385a8be51
Changed name and signature for a log helper.
...
- Legacy-Id: 13571
2017-06-09 19:38:48 +00:00
Henrik Levkowetz
023a32715d
Merged in ^/branch/iola/author-stats-r13145 from olau@iola.com, with additional features from ^/personal/henrik/6.52.1-authorstats.
...
- Legacy-Id: 13550
2017-06-06 18:36:59 +00:00
Henrik Levkowetz
a34d078428
Commented out again a function that was commented in by mistake in the committed code.
...
- Legacy-Id: 13543
2017-06-06 16:30:53 +00:00
Henrik Levkowetz
5ca4309691
Fixed a bug in wordwrap() where an URL (or any word) longer than width could prevent line breaking in following text.
...
- Legacy-Id: 13541
2017-06-06 14:03:02 +00:00
Henrik Levkowetz
fb93a8c293
Added dates to unreachable() calls, to make it easier to decide when to remove marked code.
...
- Legacy-Id: 13538
2017-06-06 07:27:07 +00:00
Henrik Levkowetz
b2da91de1b
Added a middleware exception handler for the case of people submitting unicode outside the Basic Multilingual Plane, which cannot currently be saved to the database.
...
- Legacy-Id: 13508
2017-06-03 21:47:51 +00:00
Henrik Levkowetz
5b2087f910
Eliminated several variations on word wrapping, keeping only what used to be wrap_text(), but renamed as ietf.utils.text.wordwrap(). This performs better than django.utils.text.wrap() when there are indented text parts. Replaced django's default wordwrap filter with one calling ietf.utils.text.wordwrap in templates. Changed to triggered wrapping in some cases, with the maybewordwrap filter, which triggers on lines longer than 100 characters. This fixes the issue with undesired wrapping of reviews.
...
- Legacy-Id: 13505
2017-06-02 23:13:22 +00:00
Henrik Levkowetz
16d129cacf
Added examples of how our different text wrapper functions work to ietf.utils.text. Run 'python ietf/utils/text.py | less' to see the results.
...
- Legacy-Id: 13498
2017-06-02 17:59:26 +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
fe30afdfe7
Updated the check_referential_integrity management command to show progress bars when not in verbose mode.
...
- Legacy-Id: 13369
2017-05-16 15:07:56 +00:00
Henrik Levkowetz
b5319c576a
Updated the utils.DumpInfo model to match the database.
...
- Legacy-Id: 13330
2017-05-12 15:27:23 +00:00
Henrik Levkowetz
38bfdb4095
Fixed a bug in the earlier author extraction bugfix.
...
- Legacy-Id: 13295
2017-05-10 12:21:17 +00:00
Henrik Levkowetz
fb70e9a4ff
Fixed an issue with the author extraction code.
...
- Legacy-Id: 13288
2017-05-09 19:19:55 +00:00
Henrik Levkowetz
b1c4b75fbe
Fixed a pyflakes issue.
...
- Legacy-Id: 13235
2017-04-18 20:55:43 +00:00
Henrik Levkowetz
0b730c9554
Updated the referential integrity checking comand.
...
- Legacy-Id: 13234
2017-04-18 20:21:58 +00:00
Henrik Levkowetz
d6b9392f72
Fixed an if-statement which incorrectly disabled coverage testing when the parallel testing count was set to 1.
...
- Legacy-Id: 13231
2017-04-18 16:47:28 +00:00
Henrik Levkowetz
978e8f72f5
Changed the signature of ietf.utils.aliases.dump_sublist() to include a list of the alias domains, in order to be able to generate IRTF group aliases @irtf.org. Updated ietf/bin/generate-*-aliases accordingly.
...
- Legacy-Id: 13206
2017-04-12 18:51:38 +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
d9585b4b73
Add some extra test data to exercise the statistics better
...
- Legacy-Id: 13167
2017-03-29 09:06:12 +00:00
Ole Laursen
a1ba9dfb0a
Remove accidentally committed debug
...
- Legacy-Id: 13160
2017-03-28 14:56:06 +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
605fa26ec3
Made relative paths work for the create_group_wikis commnand. Added wiki and svn dir patterns to docker/settings_local.py.
...
- Legacy-Id: 13150
2017-03-27 17:07:48 +00:00
Ole Laursen
5608ad0061
Move the assert on new X in the test coverage up before the percentage
...
to try get the list of URLs out before the percentage
- Legacy-Id: 13144
2017-03-27 08:45:20 +00:00
Ole Laursen
ef4d55f0c9
Apply patch from Henrik Levkowetz to fix some problems of author parse
...
errors where the affiliation is mistakenly thought to be an extra
author (some of these still remain)
- Legacy-Id: 13142
2017-03-27 08:33:49 +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
3f92aee755
Added the rfcmarkup module. This will be changed to a library dependency when the module is published.
...
- Legacy-Id: 13038
2017-03-20 13:48:13 +00:00
Henrik Levkowetz
53481eebd8
Added a utility function to create a test-class specific temporary directory.
...
- Legacy-Id: 13026
2017-03-19 19:25:26 +00:00
Henrik Levkowetz
bb5096da8a
Added more email validation for draft submission author emails, and blocked some baths that could lead to bad email addresses ('none') being set as document author email addresses.
...
- Legacy-Id: 13010
2017-03-14 14:07:21 +00:00
Henrik Levkowetz
7b3ce6e795
Improved the log.assertion() and unreachable() functions to send a deeper traceback when reporting by email, rather than just the last stack frame.
...
- Legacy-Id: 12999
2017-03-13 05:37:02 +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
319a4850d6
Added rfcmarkup code. Will probably be migrated to a separate lib in time.
...
- Legacy-Id: 12994
2017-03-11 14:02:16 +00:00
Henrik Levkowetz
58dae78a43
Modified the REST API to provide group descriptions taken from the group charters if group.description is blank.
...
- Legacy-Id: 12993
2017-03-11 13:46:19 +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
ff31644ccf
Tweaked assertion() and unreachable() to raise an exception instead of sending email (to the test mailbox ...) when running the test suite.
...
- Legacy-Id: 12977
2017-03-06 14:31:45 +00:00
Henrik Levkowetz
0bcb4ae30c
Fixed a problem with assertion() and unreachable(), which could break if certain names (like 'args') were set in the calling frame.
...
- Legacy-Id: 12975
2017-03-06 13:51:08 +00:00
Henrik Levkowetz
3c6f00869f
Dead code removal: meeting models and test_utils.
...
- Legacy-Id: 12965
2017-03-04 05:19:39 +00:00
Henrik Levkowetz
49ba774ae3
Updated unreachable() marking.
...
- Legacy-Id: 12962
2017-03-04 05:14:51 +00:00
Henrik Levkowetz
3a21e03f8d
Marked a function as unrachable. Added support in send_mail_message for the Message.msgid field.
...
- Legacy-Id: 12954
2017-03-03 15:43:43 +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
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
Henrik Levkowetz
5928bd9faa
Added svn symlink check and creation to test setup. Forced test settings to use an empty INTERNAL_IPS list for consistency in code coverage figures.
...
- Legacy-Id: 12929
2017-02-28 18:02:30 +00:00
Henrik Levkowetz
4f12513b1f
Tweaked the affirm() failure message.
...
- Legacy-Id: 12925
2017-02-27 16:42:23 +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
9fb1a8e05f
Tweaked an import to make Python 2to3 able to handle it.
...
- Legacy-Id: 12922
2017-02-26 10:54:33 +00:00
Henrik Levkowetz
84527c9df6
Added some code to utils.urls.url() to output remaining explicit url names together with the matching dotted-path to the view function.
...
- Legacy-Id: 12921
2017-02-25 20:32:20 +00:00
Henrik Levkowetz
49af9b4e1a
Added an affirm(statement_string) function, which acts like an assert, and lets us trigger an email message with traceback when the statement to affirm is False. Use instead of assert if we still want the server to produce a response, even if something is seriously wrong.
...
- Legacy-Id: 12901
2017-02-23 11:48: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
858d855eff
Changed the new account creation to require a proper name at the same time as the account password is set, before actually creating the account. Also tweaked the password strength and confirmation code.
...
- Legacy-Id: 12892
2017-02-20 16:50:39 +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
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
c344a18bdf
Fixed an issue with the test-crawler which could cause false positives for urls containing apostrophe.
...
- Legacy-Id: 12851
2017-02-16 09:58:34 +00:00
Ole Laursen
d2e85a3aa3
Apply draft parser patch from Henrik to improve the patch on trunk to
...
combine paragraphs across page splits - this makes the country part of
the parser find more countries
- Legacy-Id: 12848
2017-02-15 19:10:59 +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
Ole Laursen
882579bab3
Don't check url reverses on the form admin:blahblah for the time being
...
- Legacy-Id: 12845
2017-02-15 18:39:35 +00:00
Henrik Levkowetz
44ad914fba
Tweaked the company name extraction code in class Draft.
...
- Legacy-Id: 12842
2017-02-15 14:09:54 +00:00
Henrik Levkowetz
bb5e5b97ba
Another tweak to handle page break paragraph joins better in class Draft.
...
- Legacy-Id: 12840
2017-02-14 17:41:30 +00:00
Henrik Levkowetz
6158221fa8
Tweaked the author extraction to recognize short lines as paragraph ends, not only lines ending in '.' or ':'
...
- Legacy-Id: 12837
2017-02-14 14:23:15 +00:00
Henrik Levkowetz
7f607c51d2
Changed from old-style to new-style middleware.
...
- Legacy-Id: 12824
2017-02-12 17:07:48 +00:00
Henrik Levkowetz
a1606e8f7d
Added a 'htmlfilters' tag library containing 'removetags'
...
- Legacy-Id: 12823
2017-02-12 17:05:55 +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
49a899fe66
Added support for management of trac wikis for explicitly named groups, such as the IESG and IAOC. Tweaked the dummy-run handling of the create_group_wikis management command.
...
- Legacy-Id: 12789
2017-02-08 16:37:31 +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
55b430b525
Merged in [12748] from rcross@amsl.com:
...
Fixes #2172 . Add Requested Resources and People who must be there, to email notifications of session requests.
- Legacy-Id: 12757
Note: SVN reference [12748] has been migrated to Git commit eeb35e997d
2017-01-30 23:22:45 +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
Ryan Cross
eeb35e997d
Fixes #2172 . Add Requested Resources and People who must be there, to email notifications of session requests. Commit ready for merge.
...
- Legacy-Id: 12748
2017-01-27 23:32:52 +00:00
Ole Laursen
90051a1575
Add support for displaying and editing author affiliation and country
...
when submitting a draft, replace the Submission.authors line-based
text field with a JSON field
- Legacy-Id: 12745
2017-01-27 16:10:31 +00:00
Ole Laursen
4426e3386f
Add assertNoFormPostErrors for use instead of testing the status code
...
of form post responses to make it easier to see what goes wrong when
the form in a test suddently doesn't validate
- Legacy-Id: 12744
2017-01-27 13:27:19 +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
79c44d25ea
Changed settings_sqlitetest so that local developer additions to context processors and middleware classes are avoided.
...
- Legacy-Id: 12723
2017-01-24 20:42:51 +00:00
Henrik Levkowetz
6f5c0fdd23
Added a trac-admin role name, for help in assigning trac-admin rights to trac instances. Extended the create_group_wikis management command to create and update wikis for groups of type 'team','ag' and 'dir', in addition to 'wg','rg' and 'area'; and also add people with role trac-admin in the group or in the secretariat to those given TRAC_ADMIN permissions in a Trac instance.
...
- Legacy-Id: 12721
2017-01-24 17:21:11 +00:00
Henrik Levkowetz
a5d1aca525
Save database object before using it.
...
- Legacy-Id: 12716
2017-01-23 19:42:03 +00:00
Henrik Levkowetz
613f0c8233
Pyflakes fixes.
...
- Legacy-Id: 12714
2017-01-23 18:35:58 +00:00
Henrik Levkowetz
bdbddc8efd
Rewrote a test to provide on-disk files instead of StringIO files to argparse (it seems optparse could handle this, but argparse can't).
...
- Legacy-Id: 12713
2017-01-23 18:23:05 +00:00
Henrik Levkowetz
450c39af23
Changed the failure leeway of the code coverage test percentage from 0.005% back to 0.02%.
...
- Legacy-Id: 12707
2017-01-19 20:01:19 +00:00
Ole Laursen
aebfe44f9e
Add simple detection of formal languages used in draft, partially
...
based on the code in getauthors by Jari Arkko
- Legacy-Id: 12657
2017-01-16 16:08:56 +00:00
Ole Laursen
34a9f36534
Add helper for getting word count from draft
...
- Legacy-Id: 12655
2017-01-16 11:35:48 +00:00
Henrik Levkowetz
6eec4c2648
Converted all management commands which set up additional command-line switches to use the argparse approach instead of the deprecated optparse approach.
...
- Legacy-Id: 12645
2017-01-11 18:42:38 +00:00
Henrik Levkowetz
7b95411f58
The context_instance parameter to render_to_response() and render_to_string() is now deprecated. Fixed this, and generally changed the idiom render_to_response('template.html', {}, RequestContext(request)) to the newer and simpler render(request, 'template.html', {}). About 200 instances.
...
- Legacy-Id: 12637
2017-01-09 21:26:30 +00:00
Henrik Levkowetz
9c095365dd
Commented out debug output from ietf.utils.urls.url(). Tweaked the url() handling of django views.
...
- Legacy-Id: 12634
2017-01-09 16:32:38 +00:00
Henrik Levkowetz
eb5aa9a691
Django 1.9: Refined the autonaming url() replacement.
...
- Legacy-Id: 12622
2016-12-22 18:08:21 +00:00
Henrik Levkowetz
d5460b8f7f
Django 1.9: Merged work forward to copy of latest release.
...
- Legacy-Id: 12621
2016-12-22 17:30:50 +00:00
Henrik Levkowetz
bfc44dea82
Django 1.9: Added an alternative implementation of urls() which derives an url pattern name from the callable, in order to maintain DRY for url patterns.
...
- Legacy-Id: 12617
2016-12-22 17:20:29 +00:00
Henrik Levkowetz
3944ab95cc
Django 1.9: Supplied a required argument to TemplateDoesNotExist()
...
- Legacy-Id: 12616
2016-12-22 17:14:51 +00:00
Henrik Levkowetz
471bbde4d5
Django 1.9: Adjusted import path
...
- Legacy-Id: 12615
2016-12-22 17:13:26 +00:00
Henrik Levkowetz
ec0d6a7e4f
Merged in [12593] from rjsparks@nostrum.com:
...
Send mail to team secretaries when a review is explicitly requested. Change the From and Subject for assignment emails to reviewers to make it clearer what the review is for and who assigned it. Fixes #2053 and #2114 .
- Legacy-Id: 12602
Note: SVN reference [12593] has been migrated to Git commit 10f4892eae
2016-12-21 18:01:00 +00:00
Henrik Levkowetz
7e6baf15b7
Merged in [12588] from rjsparks@nostrum.com:
...
Change how we display review text to follow the tecnique used with other large blocks of pasted or imported text (shepherds writeups for instance). Fixes #2104 .
- Legacy-Id: 12600
Note: SVN reference [12588] has been migrated to Git commit 7c182375af
2016-12-21 17:26:03 +00:00
Henrik Levkowetz
8e9858379b
Fixed some pyflakes and form initialization issues with the upgrade to DurationField.
...
- Legacy-Id: 12599
2016-12-21 17:03:39 +00:00
Henrik Levkowetz
67b2fc1107
Extended the form fields used for duration to accept additional formats, including formats the secretariat are currently using, in order to avoid trouble with the TimedeltaField --> DurationField transition.
...
- Legacy-Id: 12598
2016-12-21 15:26:32 +00:00
Robert Sparks
10f4892eae
Send mail to team secretaries when a review is explicitly requested. Change the From and Subject for assignment emails to reviewers to make it clearer what the review is for and who assigned it. Fixes #2053 and #2114 . Commit ready for merge.
...
- Legacy-Id: 12593
2016-12-19 22:32:03 +00:00
Robert Sparks
7c182375af
Change how we display review text to follow the tecnique used with other large blocks of pasted or imported text (shepherds writeups for instance). Fixes #2104 . Commit ready for merge.
...
- Legacy-Id: 12588
2016-12-19 20:38:51 +00:00
Henrik Levkowetz
481a96c935
Changed the handling of skip tests and messages in order to show which tests will be skipped, and why, at the start of a test run.
...
- Legacy-Id: 12568
2016-12-17 21:49:53 +00:00
Henrik Levkowetz
b14e981e66
Merged in [12520] from rjsparks@nostrum.com:
...
Slight refactor of the review models to capture review team settings. Allows configuring review teams to get automatic suggestions for reviews or not. Provides a better admin for creating/managing review teams. Fixes #2048 and #2072 .
- Legacy-Id: 12544
Note: SVN reference [12520] has been migrated to Git commit b24bdb5bc3
2016-12-15 20:55:40 +00:00
Henrik Levkowetz
65481b5df7
Moved warnings settings from manage.py and test_runner.py to one single place, settings.py. Decreased the verbosity level when invoking 'loaddata' from the test runner.
...
- Legacy-Id: 12535
2016-12-15 13:25:20 +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
Robert Sparks
b24bdb5bc3
Slight refactor of the review models to capture review team settings. Allows configuring review teams to get automatic suggestions for reviews or not. Provides a better admin for creating/managing review teams. Fixes #2048 and #2072 . Commit ready for merge.
...
- Legacy-Id: 12520
2016-12-14 23:26:32 +00:00
Henrik Levkowetz
03d90163a5
Merged django-1.8 work forward to copy of 6.39.1
...
- Legacy-Id: 12504
2016-12-10 19:32:46 +00:00
Henrik Levkowetz
2978798f39
Made serialization work for RegexStringValidator
...
- Legacy-Id: 12492
2016-12-09 12:40:21 +00:00
Henrik Levkowetz
57eb5844e5
Merged in [12489] from rjsparks@nostrum.com:
...
Save a new reviewrequest for each team requested in the request form. Fixes #2094 .
- Legacy-Id: 12491
Note: SVN reference [12489] has been migrated to Git commit 4fff1ab101e4f7cd27dc8ded889e09905866076f
2016-12-09 12:01:48 +00:00
Henrik Levkowetz
2c27d5c611
Moved optional text wrapping before html escaping in markup_unicode(), used by get_unicode_document_content(). Fixes a problem with lines being wrapped when they should not be.
...
- Legacy-Id: 12480
2016-12-08 16:27:05 +00:00
Henrik Levkowetz
217b31f109
Made the RegexStringValidator deconstructible so we can generate migrations.
...
- Legacy-Id: 12476
2016-12-07 19:28:01 +00:00
Henrik Levkowetz
6304bfda69
Fixed template_coverage_collection initialisation. Tweaked a message. Updated coverage numbers.
...
- Legacy-Id: 12471
2016-12-07 11:33:33 +00:00
Henrik Levkowetz
db7e554c5e
Changed to using TestCase from ietf.utils, and turned off coverage checking when loading templates in TemplateChecksTestCase.
...
- Legacy-Id: 12470
2016-12-07 11:31:31 +00:00
Henrik Levkowetz
b628a0844b
Changed to using TestCase from ietf.utils in some places, for consistent test-suite failure output.
...
- Legacy-Id: 12467
2016-12-07 11:03:32 +00:00
Henrik Levkowetz
7dfbe51913
Don't count the template loading done in TemplateChecksTestCase towards template coverage numbers.
...
- Legacy-Id: 12464
2016-12-06 15:55:39 +00:00
Henrik Levkowetz
e4ce339235
Merged in [12461] from rjsparks@nostrum.com:
...
Added migration to fetch text from reviews in the mail archives and populate the review documents. Fixes #2064 . Will patch into production.
- Legacy-Id: 12463
Note: SVN reference [12461] has been migrated to Git commit 63a9599bafdcacf49f1bb374b2156d8473da93d1
2016-12-05 21:03:49 +00:00
Henrik Levkowetz
8f6e51839f
Fixed some additional places to use the new settings.TEMPLATES structure.
...
- Legacy-Id: 12459
2016-12-05 19:04:27 +00:00
Henrik Levkowetz
14776bae70
Merged django18 work forward to r12447
...
- Legacy-Id: 12455
2016-12-05 15:03:40 +00:00
Henrik Levkowetz
0bb7854591
Merged django18 work forward to 6.39
...
- Legacy-Id: 12449
2016-12-05 14:01:25 +00:00
Henrik Levkowetz
b897519fff
Changed the test runner to use the verbosity set on the command line when loading fixtures.
...
- Legacy-Id: 12446
2016-12-05 12:56:53 +00:00
Henrik Levkowetz
5959b3a46a
Added a validator for the reviewer settings' Filter Regexp field, to make sure that we don't later hit exceptions when trying to compile and use the regexp entered.
...
- Legacy-Id: 12439
2016-12-01 21:30:39 +00:00
Henrik Levkowetz
b914f46313
Merged in ^/branch/iola/review-tracker-r12128@12397, bringing in the review tool functionality described in RFC7735. This adds the ability to set up review management pages for review teams such as genart, secdir, opsdir, etc.; letting the review team secretaries manage requested and completed reviews; letting the reviewers keep track of and document their reviews, and more. See the RFC for full specification, and the branch commit log for a full commit history.
...
- Legacy-Id: 12419
2016-11-29 14:54:19 +00:00
Henrik Levkowetz
cec0f33817
Removed unused stuff.
...
- Legacy-Id: 12409
2016-11-28 21:20:28 +00:00
Henrik Levkowetz
53d68af9cd
Adapted the utils template tests to the new template handling in Django 1.8.
...
- Legacy-Id: 12407
2016-11-28 21:05:17 +00:00
Henrik Levkowetz
554ec2d78c
Removed an unused import
...
- Legacy-Id: 12406
2016-11-28 21:04:15 +00:00
Henrik Levkowetz
623ce0e1bd
Merged in [12378] from rjsparks@nostrum.com:
...
Change the lines saying that a test has failed to make it easier to cut-paste to run the failed test again.
- Legacy-Id: 12386
Note: SVN reference [12378] has been migrated to Git commit be51bc2e78
2016-11-18 10:45:40 +00:00
Robert Sparks
be51bc2e78
Change the lines saying that a test has failed to make it easier to cut-paste to run the failed test again. Commit ready for merge.
...
- Legacy-Id: 12378
2016-11-17 02:52:45 +00:00
Henrik Levkowetz
964d34282f
Added common patterns for template file names to ignore when testing template parsing and template test coverage.
...
- Legacy-Id: 12354
2016-11-16 02:14:32 +00:00
Henrik Levkowetz
bb7d3b476f
Tweaked the create_group_wiki management command and its test to show more information on failures.
...
- Legacy-Id: 12273
2016-11-07 17:13:09 +00:00
Henrik Levkowetz
888bd44a10
Stash the test results summary in ./.testresults instead of ./testresults, to avoid visual littering.
...
- Legacy-Id: 12272
2016-11-07 17:11:48 +00:00
Henrik Levkowetz
8d1aca19cc
Rewrote the template coverage loader function to a proper template loader class.
...
- Legacy-Id: 12261
2016-11-03 20:51:06 +00:00
Henrik Levkowetz
f7cf00b7ec
Use get_or_create when creating test data, to avoid duplicate key warnings.
...
- Legacy-Id: 12259
2016-11-03 20:48:38 +00:00
Henrik Levkowetz
7b6407dfed
Rewrote the test runner command-line switch declarations to use parser.add_argument() instead of the now unsupported option_list class attribute.
...
- Legacy-Id: 12251
2016-11-03 20:07:22 +00:00
Henrik Levkowetz
1d6853037e
Updated the create_group_wikis management command with additional switches to make it easier to do test deployment of individual wikis.
...
- Legacy-Id: 12240
2016-10-30 18:10:41 +00:00
Henrik Levkowetz
aec77c2385
Rewrote Document.href() to not do database queries when possible, as that has a big performance impact. Fixed a number of tests which relied on href() not doing the right thing for simplified test data. Added caching of canonical_name(), which can be quite heavy. Additional refactoring in a number of places, to use better test data and avoid test failures for good code :-)
...
- Legacy-Id: 12226
2016-10-28 16:59:42 +00:00
Henrik Levkowetz
a1934d1713
Refined the sql debug view at the bottom of each page. Added a column showing the WHERE clause, as that is quite helpful in working out where a given query is coming from. Added an sql_debug template variable to make it easier to switch between the sql debug view and using the django-debug-toolbar.
...
- Legacy-Id: 12225
2016-10-28 16:46:05 +00:00
Henrik Levkowetz
681395ff8e
Added a column to the debug view of sql queries which indicate whether a query originated in view code or template rendering.
...
- Legacy-Id: 12217
2016-10-26 18:49:58 +00:00
Henrik Levkowetz
27cd21155c
Fixed a bug in testing for directory existence in the test setup.
...
- Legacy-Id: 12185
2016-10-19 22:38:28 +00:00
Henrik Levkowetz
c22842a7c4
Made the wiki glue test skippable, in case the python subversion bindings are unavailable. Added creation of temporary directories also for the svn repositores created for wikis during testing.
...
- Legacy-Id: 12183
2016-10-19 21:14:20 +00:00
Henrik Levkowetz
ba5c17ecfd
Merged in a management command which provides glue code for creation and maintenance of Trac issue tracker and wiki installations per group. New groups of type wg, rg, and area will autmatically receive a Trac instance.
...
- Legacy-Id: 12182
2016-10-19 18:08:05 +00:00
Henrik Levkowetz
f9b4955880
Tweaked the settings a bit, to avoid problems if changing TRAC_WIKI_DIR_ROOT after TRAC_WIKI_DIR_PATTERN has been set. Added a --wiki-dir-pattern switch to the management command.
...
- Legacy-Id: 12181
2016-10-19 14:56:57 +00:00
Henrik Levkowetz
d400b88239
Added a test for the create_group_wikis management command.
...
- Legacy-Id: 12180
2016-10-19 14:53:58 +00:00
Henrik Levkowetz
41945d5525
Reverted unintended commit
...
- Legacy-Id: 12179
2016-10-19 14:47:17 +00:00
Henrik Levkowetz
b2aae7dc35
Ignore the virtualenv-created directories under env/
...
- Legacy-Id: 12178
2016-10-19 14:44:44 +00:00
Henrik Levkowetz
887455c1d5
Make sure to not include draft name in the title extracted from draft text.
...
- Legacy-Id: 12176
2016-10-19 12:18:59 +00:00
Ole Laursen
4b987436c0
Fix a missing HttpResponseForbidden in review statistics, make the
...
review test code use a separate reviewer and reviewsecretary user to
avoid confounding things - also let these use Unicode in their names
to check for Unicode trouble.
- Legacy-Id: 12175
2016-10-19 11:58:49 +00:00
Henrik Levkowetz
f33eab6770
Install custom wiki pages before default pages, as we refuse to overwrite an existing page.
...
- Legacy-Id: 12174
2016-10-18 19:32:19 +00:00
Henrik Levkowetz
4cd3c484be
New management command create_group_wikis. Work in progress.
...
- Legacy-Id: 12149
2016-10-14 15:03:13 +00:00
Ole Laursen
958ba5ba95
Make new branch from trunk and merge in review-tracker-r11921
...
- Legacy-Id: 12129
2016-10-13 16:38:47 +00:00