Commit graph

6761 commits

Author SHA1 Message Date
Ole Laursen 9d8874d8b1 Add a suggestion to fix the country name when submitting a draft in
case we can't parse it and it's not empty, add page with list of
countries (to be able to refer people to it), add ISO codes as country
aliases - the country alias code is now more intelligent with respect
to case so it's easier to keep these aliases explicitly
 - Legacy-Id: 12862
2017-02-16 17:56:23 +00:00
Ole Laursen 4501cd65d7 Speed up a couple of the stats queries
- Legacy-Id: 12861
2017-02-16 15:26:29 +00:00
Ole Laursen 9492e1ee85 Improve EU explanation
- Legacy-Id: 12860
2017-02-16 15:24:31 +00:00
Ole Laursen d06f56fc0d Adjust unknown bin in the affiliation statistics too, adjust wording
- Legacy-Id: 12859
2017-02-16 12:32:03 +00:00
Ole Laursen 1a0e4599c5 Adjust the way authors with unknown countries are counted and improve
the explanation of how the numbers have come to be
 - Legacy-Id: 12858
2017-02-16 12:23:45 +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 a20d4f50ef Update the fixtures with the country information
- Legacy-Id: 12847
2017-02-15 18:48:14 +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
Ole Laursen 0d5bc33283 Fix some test errors
- Legacy-Id: 12787
2017-02-06 11:35:28 +00:00
Ole Laursen ea93001c63 Remove debug output
- Legacy-Id: 12786
2017-02-03 18:54:23 +00:00
Ole Laursen ef251c6bc7 Add author affiliation chart.
Also add a model for registering an alias for an affiliation so that
we can group affiliations that are considered the same for statistical
purposes, and a model for registering unimportant endings like Inc.
and GmbH.

Affiliation grouping is done through three means: stripping
uninteresting endings, merging entries that only differ in case and
aliases that map from case-insensitive alias to name.

Stripping endings and merging based on case seem to reduce the number
of needed manually maintained aliases greatly.
 - Legacy-Id: 12785
2017-02-03 18:49:43 +00:00
Ole Laursen 3954dc047d Remove extra t
- Legacy-Id: 12767
2017-01-31 16:39:19 +00:00
Ole Laursen a9525ab4f4 Revamp stats selector UI a bit to accomodate statistics counting
authors (instead of documents), add stats with documents per author
 - Legacy-Id: 12766
2017-01-31 16:32:20 +00:00
Ole Laursen b645a8c0f9 Expand document stats test
- Legacy-Id: 12753
2017-01-30 14:01:40 +00:00
Ole Laursen 631295f7db Fix a couple of bugs
- Legacy-Id: 12752
2017-01-30 14:00:05 +00:00
Ole Laursen ce2180971a Revamp choice parsing a bit in statistics section, add time choice to
documents to be able to choose between all time and recent drafts
 - Legacy-Id: 12751
2017-01-30 13:34:17 +00:00
Ole Laursen 3395d6f445 Add simple back-filling of affiliation on authors to backfilling script
- Legacy-Id: 12750
2017-01-30 13:33:25 +00:00
Ole Laursen 8fdb0047e1 Add migration for converting existing Submission.authors to JSON
- Legacy-Id: 12746
2017-01-27 16:12:10 +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 698965e3d1 Fix one last fake email addresses that managed to escape the migration
- Legacy-Id: 12743
2017-01-27 12:33:05 +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
Ole Laursen e381dac958 Fix matching pattern in test to be more generic
- Legacy-Id: 12729
2017-01-25 11:29:45 +00:00
Ole Laursen 0479600ed0 Simple wording fix
- Legacy-Id: 12663
2017-01-17 13:53:13 +00:00
Ole Laursen 76bcab6efc Show formal languages used on new submissions and make the field
editable, also add it to the test with a simple JSON example
 - Legacy-Id: 12662
2017-01-17 13:52:16 +00:00
Ole Laursen f4555c4269 Fix another spacing bug on the submit page
- Legacy-Id: 12661
2017-01-17 13:50:41 +00:00
Ole Laursen 1850a26b23 Add words and formal languages to Submission, set them in the submit
view, clean up submit view a bit to avoid duplicated attribute setting
code
 - Legacy-Id: 12660
2017-01-16 17:37:23 +00:00
Ole Laursen b3d75af1af Fix a spacing bug in the submission HTML
- Legacy-Id: 12659
2017-01-16 17:34:46 +00:00
Ole Laursen 641d92cf49 Add many-to-many field with formal languages to Document and add formal
language statistics
 - Legacy-Id: 12658
2017-01-16 17:06:54 +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 6378594033 Add word count and submit format statistics
- Legacy-Id: 12656
2017-01-16 11:36:38 +00:00
Ole Laursen 34a9f36534 Add helper for getting word count from draft
- Legacy-Id: 12655
2017-01-16 11:35:48 +00:00
Ole Laursen 656ed8c89d Add statistics for pages in documents, refactoring a bit to share more code
- Legacy-Id: 12639
2017-01-10 18:27:15 +00:00
Ole Laursen 13f3b4ed1a Add simple test for document stats
- Legacy-Id: 12631
2017-01-06 16:46:28 +00:00
Ole Laursen 7dc370baa3 Improve wording a bit in the document statistics, turn of chart
animation, it makes the page seem sluggish
 - Legacy-Id: 12630
2017-01-06 15:31:32 +00:00
Ole Laursen dac430c84e Add branch from trunk @r12628 for the author statistics project, add document statistics page with the first statistics with the number of authors per document
- Legacy-Id: 12629
2017-01-06 15:10:49 +00:00
Henrik Levkowetz 334445d0d0 Added a warnings ignore for an issue which pops up on ietfa.
- Legacy-Id: 12626
2016-12-22 19:44:34 +00:00
Henrik Levkowetz 725ce16c4c Added a variation on the manage.py script which will pick up our local python virtualenv under env/. This is for use when invoking django management commands externally, for instance in email pipelines from /etc/aliases.
- Legacy-Id: 12625
2016-12-22 19:43:30 +00:00
Henrik Levkowetz c7a0d74481 Set version info and settings back to development mode
- Legacy-Id: 12613
2016-12-22 10:08:42 +00:00
Henrik Levkowetz d7488e4e88 Set version info to release version 6.40.3 before branching.
- Legacy-Id: 12611
2016-12-22 10:08:35 +00:00
Henrik Levkowetz 1456862c4e Merged in [12606] from rjsparks@nostrum.com:
Tweak the docevent description for the event noting that a chartering effort has been abandoned. Fixes #2099.
 - Legacy-Id: 12608
Note: SVN reference [12606] has been migrated to Git commit 6091d3c6a3
2016-12-21 22:34:51 +00:00
Robert Sparks 6091d3c6a3 Tweak the docevent description for the event noting that a chartering effort has been abandoned. Fixes #2099. Commit ready for merge.
- Legacy-Id: 12606
2016-12-21 22:14:58 +00:00
Henrik Levkowetz 24c9751df4 Merged in [12596] from rjsparks@nostrum.com:
Show other completed reviews of a document on page showing the status of a review request. Fixes #2083.
 - Legacy-Id: 12605
Note: SVN reference [12596] has been migrated to Git commit 2bad0b0bcd
2016-12-21 19:19:31 +00:00
Henrik Levkowetz 4486b3192f Merged in [12595] from rjsparks@nostrum.com:
Improve the team review content templates. Related to #2075.
 - Legacy-Id: 12604
Note: SVN reference [12595] has been migrated to Git commit 6ca953ae24
2016-12-21 18:52:12 +00:00
Henrik Levkowetz e0abd068f9 Merged in [12594] from rjsparks@nostrum.com:
Provide templates for directly entered review contents for those teams/review-types that have them. Fixes #2075.
 - Legacy-Id: 12603
Note: SVN reference [12594] has been migrated to Git commit fbd2cd493d
2016-12-21 18:14:25 +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 7686ce736c Merged in [12589] from rjsparks@nostrum.com:
Show additional details about a review request when completing it. Fixes #2112.
 - Legacy-Id: 12601
Note: SVN reference [12589] has been migrated to Git commit 128fec09bd
2016-12-21 17:38:02 +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