Commit graph

818 commits

Author SHA1 Message Date
Henrik Levkowetz 306431319a Added a couple of meeting material crawls to check that internal material links aren't broken.
- Legacy-Id: 14861
2018-03-18 16:10:14 +00:00
Henrik Levkowetz 7f0de265e9 Check attribute isn't None before accessing sub-attributes.
- Legacy-Id: 14860
2018-03-18 15:14:58 +00:00
Henrik Levkowetz 274ba90e2f Merged in [14844] from adam@nostrum.com:
Fixing 'href' field for https://datatracker.ietf.org/meeting/<meeting-num>/json.
 - Legacy-Id: 14858
Note: SVN reference [14844] has been migrated to Git commit 2e8740cca8
2018-03-18 12:49:00 +00:00
Henrik Levkowetz 72e20478a8 Added another materials docname-with-rev regexe.
- Legacy-Id: 14857
2018-03-18 12:17:11 +00:00
Henrik Levkowetz d827f7415e Fixed two materials docname-with-rev regexes that were too narrow.
- Legacy-Id: 14856
2018-03-18 10:58:29 +00:00
Henrik Levkowetz e0ca40bdf2 Merged in [14842] from rcross@amsl.com:
Add check for deleted session when scheduling.  Fixes #2450.
 - Legacy-Id: 14847
Note: SVN reference [14842] has been migrated to Git commit 7211cf399b
2018-03-17 16:01:26 +00:00
Adam Roach 2e8740cca8 Fixing 'href' field for https://datatracker.ietf.org/meeting/<meeting-num>/json. Commit ready for merge.
- Legacy-Id: 14844
2018-03-17 15:21:59 +00:00
Ryan Cross 7211cf399b Add check for deleted session when scheduling. Fixes #2450. Commit ready for merge
- Legacy-Id: 14842
2018-03-17 15:10:20 +00:00
Henrik Levkowetz e29aa990a6 Tweaked a setting for better readability.
- Legacy-Id: 14840
2018-03-17 13:00:56 +00:00
Henrik Levkowetz 9341f96832 Tweaked the document sanitizer to insert a charset meta tag after sanitization.
- Legacy-Id: 14832
2018-03-16 11:13:03 +00:00
Henrik Levkowetz c3e05fd194 Fixed a mistaken change in session urls.
- Legacy-Id: 14831
2018-03-16 10:27:19 +00:00
Henrik Levkowetz e0b33fd9ca Tweaked a test case to make it easier to get at failures.
- Legacy-Id: 14829
2018-03-15 13:47:32 +00:00
Henrik Levkowetz b439c019a4 Whitespace fix.
- Legacy-Id: 14828
2018-03-15 13:46:30 +00:00
Henrik Levkowetz c2016859a8 Made the materials_document() view function more robust in handling various materials document names.
- Legacy-Id: 14827
2018-03-15 13:45:54 +00:00
Henrik Levkowetz dedf681c2d Updated the meeting materials document view to handle urls with revisions.
- Legacy-Id: 14825
2018-03-14 22:13:27 +00:00
Henrik Levkowetz 278d868d28 Added handling for when file magic doesn't return a definitive encoding for a file. Added a test case to excercise error cases.
- Legacy-Id: 14782
2018-03-13 16:45:50 +00:00
Henrik Levkowetz 8cc61e0cf7 Changed the meeting materials uploads to use the upload file encoding found by file-magic when decoding the upload content, and also return errors to the user if decoding the upload fails. Fixes issue #2469. This will also have the benefit (since we're saving with utf-8 encoding after decoding) of having meeting materials consistently stored with a consistent encoding on the server.
- Legacy-Id: 14781
2018-03-13 14:00:51 +00:00
Henrik Levkowetz c4bb28325a Feed back encoding information to the FileUploadForm when doing mime type validation, for later use in decoding.
- Legacy-Id: 14777
2018-03-13 13:51:00 +00:00
Henrik Levkowetz 5e147af541 Tweaked some icalendar urls to avoid collisions.
- Legacy-Id: 14765
2018-03-11 21:21:09 +00:00
Henrik Levkowetz 1954fc1d9f Tweaked the iCalendar urls, and added a test for interim meeting iCalendar files.
- Legacy-Id: 14764
2018-03-10 18:06:54 +00:00
Henrik Levkowetz a11cdd3b20 Expanded iCanendar generation to include interim meetings.
- Legacy-Id: 14763
2018-03-10 11:25:10 +00:00
Henrik Levkowetz cd10ba5669 Made some per-group and per-session iCalendar links show only if occurring in the future.
- Legacy-Id: 14750
2018-03-08 22:47:00 +00:00
Henrik Levkowetz b92ad2f992 Added sanitization of uploaded html content for session agendas and minutes, and did some refactoring of the upload form classes.
- Legacy-Id: 14738
2018-03-06 15:55:30 +00:00
Henrik Levkowetz 91ee536322 Renamed some datetime fields from 'time' to 'modified', to match their semantics, and changed them to use auto_now=True. This should fix an issue with outdated timestamps on some meeting-related objects.
- Legacy-Id: 14724
2018-03-03 14:44:58 +00:00
Henrik Levkowetz 578960c9f6 Tweaked some meeting-related admin classes for better search and display.
- Legacy-Id: 14721
2018-03-02 16:42:20 +00:00
Henrik Levkowetz 3564ba18fa Added a test for the per-group and per-session ical pages.
- Legacy-Id: 14719
2018-03-02 16:40:36 +00:00
Henrik Levkowetz 92864c233d Refactored ical_agenda() to be more general. Added parameters and code to permit generation of per-group and per-session ical pages. Added url entries for per-group and per-session ical pages. Changed some parameter names to better reflect their semantics ('session'->'acronym').
- Legacy-Id: 14717
2018-03-02 16:37:58 +00:00
Henrik Levkowetz 6e1d4d45d8 Added some missing migrations
- Legacy-Id: 14697
2018-02-25 20:08:37 +00:00
Henrik Levkowetz 1ed8e967e7 Merged in ^/personal/henrik/6.72.1-django-1.11@14676: Upgrade to Django 1.11
- Legacy-Id: 14695
2018-02-25 19:55:16 +00:00
Henrik Levkowetz dcbd28f048 Adjusted ordering for a number of meeting-related models to make the most relevant entries appear first in lists and drop-downs. Fixes issue #2457.
- Legacy-Id: 14694
2018-02-23 22:12:53 +00:00
Henrik Levkowetz 742ad090fc Changed the floorplan short string from 2 to 3 characters, in order to support things like London Hilton Metropole's level -3E, 3rd lower ground floor East.
- Legacy-Id: 14685
2018-02-22 22:40:56 +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 06362ec046 Got rid of old migrations and created new initial migrations.
- Legacy-Id: 14662
2018-02-21 23:46:22 +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 671ad54cc7 Work around mixed return types for get_meeting_schedule()
- Legacy-Id: 14643
2018-02-15 17:20:57 +00:00
Henrik Levkowetz 47e45c532b Merged in [14634] from rjsparks@nostrum.com:
Simplified the view that lets the secretariat see and change timeslot types. Fixes #2313.
 - Legacy-Id: 14635
Note: SVN reference [14634] has been migrated to Git commit 012d51b63c
2018-02-09 18:15:01 +00:00
Robert Sparks 012d51b63c Simplified the view that lets the secretariat see and change timeslot types. Fixes #2313. Commit ready for merge.
- Legacy-Id: 14634
2018-02-09 17:05:11 +00:00
Henrik Levkowetz f3d94abefe Re-worked create_proceedings_templates() so it does not blow up if it's run a second time for a given meeting.
- Legacy-Id: 14621
2018-02-07 11:59:46 +00:00
Henrik Levkowetz 2687c8d839 Added a workaround for libmagic mislabelling plain text content with a line beginning with 'virtual' as text/x-c++.
- Legacy-Id: 14586
2018-01-30 08:29:21 +00:00
Henrik Levkowetz ccec044511 Fixed a type issue with [14556]
- Legacy-Id: 14559
Note: SVN reference [14556] has been migrated to Git commit a438ff85e8
2018-01-23 22:27:49 +00:00
Henrik Levkowetz a438ff85e8 Made the MeetingFactory produce ietf meetings with dates appropriate for the numbers. Fixes random failures in test_eligible().
- Legacy-Id: 14556
2018-01-23 21:41:47 +00:00
Henrik Levkowetz 07fd714c88 Refined the URL patterns and handling of alternative meeting material file formats, which were broken by an earlier refactoring (v6.57.0). Fixes issue #2436.
- Legacy-Id: 14521
2018-01-14 21:09:28 +00:00
Henrik Levkowetz c5c4bde5e6 Dead code removal.
- Legacy-Id: 14412
2017-12-11 18:38:56 +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 660c81c272 Tweaked the file content read refactoring in [14406] to try latin-1 conversion if unicode doesn't work.
- Legacy-Id: 14410
Note: SVN reference [14406] has been migrated to Git commit 967ece7e7d
2017-12-10 17:48:09 +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 8a43f7aedf Added better handling for attempted (mistaken) uploads to unscheduled sessions.
- Legacy-Id: 14388
2017-12-04 13:55:16 +00:00
Henrik Levkowetz 98d234cd86 Refactored the handling of BallotDocEvent in tests, only creating them as needed, in preparation for stricter checks on state transitions to avoid mismatches between state and ballot.
- Legacy-Id: 14380
2017-11-30 16:02:31 +00:00
Henrik Levkowetz e29218f947 Bugfix
- Legacy-Id: 14317
2017-11-06 23:04:58 +00:00
Henrik Levkowetz a0d3d0b2c3 Tweaked the show-important-dates flag migration.
- Legacy-Id: 14316
2017-11-06 20:36:44 +00:00