Commit graph

9961 commits

Author SHA1 Message Date
Henrik Levkowetz a827c482c2 Removed the wsgi.py warning about starting without virtualenv; this is normal under Py3.
- Legacy-Id: 18058
2020-06-24 20:48:01 +00:00
Henrik Levkowetz e8094b2016 Fixed a config error in settings_testcrawl
- Legacy-Id: 18057
2020-06-24 20:47:15 +00:00
Henrik Levkowetz 27da6e86d4 Widgets' .render() method now must accept an additional keyword argument (renderer); adjusted the code accordingly (including a library patch -- pull request also submitted).
- Legacy-Id: 18056
2020-06-24 20:44:47 +00:00
Henrik Levkowetz 6459638fad Adjusted the code to the 2.1 attribute name change from ._size to .size in upload file objects.
- Legacy-Id: 18054
2020-06-24 20:42:05 +00:00
Henrik Levkowetz 06fa5e517a Adjusted the code to the changed signature of admin.utils.get_deleted_objects()
- Legacy-Id: 18053
2020-06-24 20:39:27 +00:00
Henrik Levkowetz 7c7c5da39f Changed the 2.1 removed django.contrib.auth.views.logout to LogoutView.
- Legacy-Id: 18052
2020-06-24 20:36:46 +00:00
Henrik Levkowetz dc7581fef4 Changed NullBoleanField() to BooleanField(null=True), according to the 2.1 upgrade recommendations.
- Legacy-Id: 18051
2020-06-24 20:33:57 +00:00
Henrik Levkowetz ddf874bc77 Fixed an issue in a test function that could occasionally fail incorrectly.
- Legacy-Id: 18045
2020-06-24 11:07:11 +00:00
Henrik Levkowetz e493377a52 Fixed a problem with the code to update missing person record association in a meeting registration record.
- Legacy-Id: 18044
2020-06-24 11:03:49 +00:00
Henrik Levkowetz 595dcb75e9 Fixed a silly bug in [18040]. 'settings' isn't a dictionary.
- Legacy-Id: 18043
Note: SVN reference [18040] has been migrated to Git commit e1ed51b0b6
2020-06-23 21:16:02 +00:00
Henrik Levkowetz 649831e7c7 Added a default logger and level for 'django.security' log items, to route them to our regular syslog. This will give us more information about failures to retrieve session info, and also things like 404 responses, which will already be captured in the apache log but with less info. May need revisiting if it proves to cause excessive logging.
- Legacy-Id: 18042
2020-06-23 20:47:58 +00:00
Henrik Levkowetz ed8e578a07 Separated the session cache from the default cache, using slightly different settings, in order to not drop sessions when a new release is deployed.
- Legacy-Id: 18041
2020-06-23 20:41:26 +00:00
Henrik Levkowetz e1ed51b0b6 Fixed a logging issue when running the test crawler.
- Legacy-Id: 18040
2020-06-23 20:38:33 +00:00
Robert Sparks f7b1ce1fce Remove abandoned charters from any future telechats. Fixes #3003. Commit ready for merge.
- Legacy-Id: 18037
2020-06-22 21:22:54 +00:00
Robert Sparks da0c81d78f Tweak to title of the page used to complete reviews. Fixes #2767. Commit ready to merge.
- Legacy-Id: 18036
2020-06-22 20:32:58 +00:00
Henrik Levkowetz 5ea79b87dd Set version info and settings back to development mode
- Legacy-Id: 18031
2020-06-22 13:59:28 +00:00
Henrik Levkowetz c4f454f996 Set version info to release version 7.4.0 before branching.
- Legacy-Id: 18029
2020-06-22 13:59:08 +00:00
Henrik Levkowetz 66d2fd8604 Merged in [18021] from rjsparks@nostrum.com:
A little less waste creating meeting/interim test data.
 - Legacy-Id: 18024
Note: SVN reference [18021] has been migrated to Git commit ba41f9ba95
2020-06-22 13:18:12 +00:00
Henrik Levkowetz 0f17e03121 Merged in [18020] from rjsparks@nostrum.com:
Construct Faker objects used for person name generation only once. Results in a roughly 20% speedup of the test-suite.
 - Legacy-Id: 18023
Note: SVN reference [18020] has been migrated to Git commit c60cc1b1a0
2020-06-22 12:58:44 +00:00
Robert Sparks ba41f9ba95 A little less waste creating meeting/interim test data. Commit ready for merge.
- Legacy-Id: 18021
2020-06-19 21:45:15 +00:00
Robert Sparks c60cc1b1a0 Construct Faker objects used for person name generation only once. Results in a roughly 20% speedup of the test-suite. Commit ready for merge.
- Legacy-Id: 18020
2020-06-19 19:54:50 +00:00
Henrik Levkowetz 820e30d99d Merged in [18016] from rjsparks@nostrum.com:
Ensure UTC time is shown throughout the interim request, approval, and announcement workflow. Fixes #2974.
 - Legacy-Id: 18017
Note: SVN reference [18016] has been migrated to Git commit 64de3fcd8c
2020-06-18 15:02:27 +00:00
Robert Sparks 64de3fcd8c Ensure UTC time is shown throughout the interim request, approval, and announcement workflow. Fixes #2974. Commit ready for merge.
- Legacy-Id: 18016
2020-06-17 22:15:39 +00:00
Henrik Levkowetz 4033785d40 With the draft submission cutoff date before a meeting set to the meeting start date (with the intention to have no blackout), the fact that submission re-open time is midnight _local_ time led to a blackout period of a few hours after midnight UTC for meeting timezones with midnight later than UTC. Changed this to give no blackout time when cutoff-date == meeting.date
- Legacy-Id: 18014
2020-06-17 18:04:03 +00:00
Henrik Levkowetz 9b672fc801 The registration system creates separate records for hackathon and session registration, but in order to provide OAuth2 registration information to for instance Meetecho we want just one consolidated record. Changed the handling of notifications from the registration system to aggregate reg_type and ticket_type information in one record.
- Legacy-Id: 18011
2020-06-17 15:44:37 +00:00
Henrik Levkowetz bf230a738b Added a test suite switch to optionally show logging output. Normally this is suppressed while running tests. In production, it goes to syslog's user facility. With --show-logging, it will go to the console when running tests.
- Legacy-Id: 18010
2020-06-17 15:05:57 +00:00
Henrik Levkowetz a6a99a449f Removed a debug statement
- Legacy-Id: 18009
2020-06-17 14:56:26 +00:00
Henrik Levkowetz b0b9bb4ce9 Added code in the OpenID registration scope to look for registration matches also by email, to handle the case where somebody registered with a new email and only added it to the datatracker later. In this case, we would not have connected up the registration and the person record when first notified.
- Legacy-Id: 18008
2020-06-17 13:31:55 +00:00
Henrik Levkowetz 26dbcc85be Set version info and settings back to development mode
- Legacy-Id: 18005
2020-06-16 21:16:41 +00:00
Henrik Levkowetz 5c68b60a84 Set version info to release version 7.3.2 before branching.
- Legacy-Id: 18003
2020-06-16 21:16:21 +00:00
Henrik Levkowetz a5ccd3a806 Merged in [17993] from rjsparks@nostrum.com:
Make test_interim_send_announcement a little more time_zone aware.
 - Legacy-Id: 17997
Note: SVN reference [17993] has been migrated to Git commit 02a3e9a708
2020-06-16 13:21:40 +00:00
Henrik Levkowetz af87bf8e1b Merged in [17992] from rjsparks@nostrum.com:
Improve admin form validation for used_roles.
 - Legacy-Id: 17996
Note: SVN reference [17992] has been migrated to Git commit c69556efe1
2020-06-16 12:59:46 +00:00
Sasha Romijn fe23d2f799 Modify dummy meeting script to match IETF 106 better.
- Legacy-Id: 17995
2020-06-15 20:53:00 +00:00
Sasha Romijn 9dd0035a19 Fix migrations after rebase.
- Legacy-Id: 17994
2020-06-15 20:51:46 +00:00
Robert Sparks 02a3e9a708 Make test_interim_send_announcement a little more time_zone aware. Commit ready for merge.
- Legacy-Id: 17993
2020-06-15 20:20:34 +00:00
Robert Sparks c69556efe1 Improve admin form validation for used_roles. Commit ready for merge.
- Legacy-Id: 17992
2020-06-15 19:14:42 +00:00
Sasha Romijn 6e026926f0 Rebase automatic-scheduler-2 onto 7.3.2.dev0
- Legacy-Id: 17990
2020-06-15 12:29:39 +00:00
Sasha Romijn ec1ee89e89 - Increase penalty of timerange and area meeting overlap
- Fix incidental bug in schedule optimiser
- Fix unused import
 - Legacy-Id: 17988
2020-06-15 09:16:48 +00:00
Henrik Levkowetz 3589ea2cd9 Fixed two mypy issues with utils.log code to set loggin handlers.
- Legacy-Id: 17987
2020-06-14 18:32:45 +00:00
Henrik Levkowetz 0a7648b7de Improved the handling of logger enabling entries in UTILS_LOGGER_LEVELS to set a handler if none exists for a given logger.
- Legacy-Id: 17981
2020-06-13 21:31:31 +00:00
Henrik Levkowetz b03b2e2477 Tweaked the OpenID Connect 'profile' grant description.
- Legacy-Id: 17980
2020-06-13 21:29:37 +00:00
Henrik Levkowetz cb0817175e Tweaked the showloggers command help text.
- Legacy-Id: 17979
2020-06-13 21:28:32 +00:00
Henrik Levkowetz c5f6883624 Fixed a couple of mypy errors.
- Legacy-Id: 17977
2020-06-12 22:05:03 +00:00
Henrik Levkowetz 96bbf3457a The datatracker logs directly to syslog, but some python libraries send debug logging to the python logging module. Added a python logging syslog handler to the django logging setup, in order to make it easier to turn on built-in logging from external modules when needed.
- Legacy-Id: 17976
2020-06-12 20:35:56 +00:00
Henrik Levkowetz 1cc9712ddf Changed the OpenID profile data description to match what the datatracker actually shares.
- Legacy-Id: 17975
2020-06-12 16:17:06 +00:00
Henrik Levkowetz 77524a333b Added a management command to list registered loggers, in order to see which can be configured in settings_local with the UTILS_LOGGER_LEVELS settings.
- Legacy-Id: 17974
2020-06-12 15:00:15 +00:00
Henrik Levkowetz 682036321d Reorganized the python logging setup slightly, and added a possibility to configure logging levels for individual loggers in settings_local.py
- Legacy-Id: 17973
2020-06-12 14:41:41 +00:00
Henrik Levkowetz eeba4ea992 Removed an unnecessary entry from the OIDC auth request arguments in test_oidc_code_auth().
- Legacy-Id: 17972
2020-06-12 14:39:54 +00:00
Henrik Levkowetz 033da559d2 Set version info and settings back to development mode
- Legacy-Id: 17968
2020-06-10 20:59:26 +00:00
Henrik Levkowetz 6d3e07be12 Set version info to release version 7.3.1 before branching.
- Legacy-Id: 17966
2020-06-10 20:59:06 +00:00
Henrik Levkowetz ae6b39459f Updated API resources for MeetingRegistration.
- Legacy-Id: 17961
2020-06-10 18:22:47 +00:00
Henrik Levkowetz 567449d3d2 Merged in [17908] from rjsparks@nostrum.com:
Add used_roles to Group and default_used_roles to GroupFeatures. Dynamically build the group edit form to provide a field for all used_roles. Fixes #2785 and #2572. Partially addresses #2160.
 - Legacy-Id: 17960
Note: SVN reference [17908] has been migrated to Git commit 2862727d02
2020-06-10 12:58:29 +00:00
Henrik Levkowetz 980de4fac0 Removed an unused import
- Legacy-Id: 17959
2020-06-10 11:32:24 +00:00
Henrik Levkowetz 6e30b36515 Expanded the test case for api_new_meeting_registration() to test both the existing and new account case, and that additional table fields are set appropriately.
- Legacy-Id: 17958
2020-06-09 21:06:09 +00:00
Henrik Levkowetz 8547432583 Updated the api_new_meeting_registration() endpoint to set all provided fields correctly. Fixes a bug that left some fields unset.
- Legacy-Id: 17957
2020-06-09 21:04:12 +00:00
Henrik Levkowetz 61f01721c6 Added some code to set the meeting attendance flag when Meetecho pulls OAuth2 profile data for session participation between the start and end dates for a meeting.
- Legacy-Id: 17956
2020-06-09 21:01:49 +00:00
Henrik Levkowetz efcdc4d917 Updated meeting attendance and nomcom eligibility calculations to take the MeetingRegistration.attendance flag into account.
- Legacy-Id: 17955
2020-06-09 21:00:07 +00:00
Henrik Levkowetz 8a6026ce6e Added a MeetingRegistration.attended field, to keep apart meeting attendence and meeting registration before attendance.
- Legacy-Id: 17954
2020-06-09 20:58:35 +00:00
Henrik Levkowetz 59487f5627 Fixed an issue with multiple objects matching a registsration record fetched from the registration system (this has been caused by not correctly detecting changes in registration system details).
- Legacy-Id: 17953
2020-06-09 19:42:11 +00:00
Henrik Levkowetz 956ddaf3cf Fixed an incorrect admin site search field specification.
- Legacy-Id: 17951
2020-06-09 18:26:45 +00:00
Henrik Levkowetz 3e008518c9 With ticket_type and reg_type fields now part of MeetingRegistratoin, removed the conditional handling of these attributes in the OpenID 'registration' scope handler.
- Legacy-Id: 17949
2020-06-09 14:00:47 +00:00
Henrik Levkowetz 516a2af54d Set version info and settings back to development mode
- Legacy-Id: 17946
2020-06-08 20:18:38 +00:00
Henrik Levkowetz 0a82b60138 Set version info to release version 7.3.0 before branching.
- Legacy-Id: 17944
2020-06-08 20:18:16 +00:00
Henrik Levkowetz ec5d159b4f Added a new API endpoint to be used by the registration system, to trigger account creation.
- Legacy-Id: 17941
2020-06-08 19:51:10 +00:00
Henrik Levkowetz 2416a46f5e Refactored some account creation code to re-use the email sending part in the registration system notification api for new meeting registrations.
- Legacy-Id: 17940
2020-06-08 19:49:30 +00:00
Henrik Levkowetz 275e48681d Updated the email template that goes out for password setting on account creation, to give directions also for the case when the user already has a pre-existing account. Updated a test to match.
- Legacy-Id: 17939
2020-06-08 19:48:05 +00:00
Henrik Levkowetz 228f00287b Added migrations for model changes
- Legacy-Id: 17938
2020-06-08 19:28:15 +00:00
Henrik Levkowetz 49bf6090d0 Updated the @require_api_key decorator to not check for recent login dates for staff (which would include robots)
- Legacy-Id: 17937
2020-06-08 19:24:42 +00:00
Henrik Levkowetz c3b05d41b8 Removed an API meeting resource field which is not present in the database any more.
- Legacy-Id: 17936
2020-06-08 19:21:50 +00:00
Henrik Levkowetz 0ba2c93d7f Added a showapikeys management command, to be able to easily see the api keys.
- Legacy-Id: 17935
2020-06-08 19:20:27 +00:00
Henrik Levkowetz 542c165907 Added a migration to create login and person records for the mail-archive and registration-system users.
- Legacy-Id: 17934
2020-06-08 19:19:25 +00:00
Henrik Levkowetz ff0279e7ae Added a new role 'Robot', for use with reg-system and mail-archive automated accesses.
- Legacy-Id: 17933
2020-06-08 19:16:23 +00:00
Henrik Levkowetz c01dcddea1 Added reg_type and ticket_type to the MeetingRegistration model.
- Legacy-Id: 17932
2020-06-08 19:14:21 +00:00
Henrik Levkowetz 40fac7a283 Set version info and settings back to development mode
- Legacy-Id: 17929
2020-06-07 12:08:35 +00:00
Henrik Levkowetz b46ddbe754 Set version info to release version 7.2.0 before branching.
- Legacy-Id: 17927
2020-06-07 12:08:16 +00:00
Henrik Levkowetz 65c919b325 Added OpenID support through django-oidc-provider, with tests using the certified python oic module.
- Legacy-Id: 17919
2020-06-06 21:01:21 +00:00
Henrik Levkowetz 5a2a255bcb Added django urlconfig namespace support in ietf.utils.test.get_callbacks() (needed when testing the reverse lookups in templates for oidc_provider).
- Legacy-Id: 17917
2020-06-06 20:19:54 +00:00
Henrik Levkowetz cd186fa04b Tweaked patch.py for Py3 compatibility.
- Legacy-Id: 17916
2020-06-06 20:17:31 +00:00
Henrik Levkowetz 0ca29a80c2 Tweaked log.unreachable() and log.assertion() for Py3 compatibility.
- Legacy-Id: 17915
2020-06-06 20:17:04 +00:00
Henrik Levkowetz 4139d17308 Added a factory function OidClientRecordFactory for OpenID testing
- Legacy-Id: 17914
2020-06-06 20:15:18 +00:00
Henrik Levkowetz b9b36dc124 Tweaked the meetecho access API fallback response to use person.plain_name instead of person.name.
- Legacy-Id: 17913
2020-06-06 20:13:54 +00:00
Robert Sparks 2862727d02 Add used_roles to Group and default_used_roles to GroupFeatures. Dynamically build the group edit form to provide a field for all used_roles. Fixes #2785 and #2572. Partially addresses #2160. Commit ready for merge.
- Legacy-Id: 17908
2020-06-04 21:05:33 +00:00
Sasha Romijn d0386b8524 Add link to docs in automatic schedule builder.
- Legacy-Id: 17907
2020-06-02 17:39:25 +00:00
Sasha Romijn 69fbd46b27 Save automatic schedules as public=False visible=True
- Legacy-Id: 17906
2020-06-01 15:03:46 +00:00
Sasha Romijn a0b6c6dcfc Add capacity optimiser to automatic scheduler.
- Legacy-Id: 17905
2020-06-01 14:12:39 +00:00
Sasha Romijn fc2693370e Improved initial session scheduling for tight schedules
- Legacy-Id: 17904
2020-06-01 12:26:21 +00:00
Sasha Romijn 2c49e7b2dd Add missing BusinessConstraint resource/admin
- Legacy-Id: 17903
2020-06-01 10:09:27 +00:00
Sasha Romijn 69a5752a00 Fix incorrect timerange name in create_dummy_meeting command
- Legacy-Id: 17902
2020-06-01 09:27:25 +00:00
Sasha Romijn 57d8ffb27a Re-introduce Group.meeting_seen_as_area and use it in automatic scheduler
- Legacy-Id: 17901
2020-06-01 09:25:51 +00:00
Sasha Romijn 468afdcbe3 Fix tests to account for meetings starting on a Sunday
- Legacy-Id: 17900
2020-06-01 09:22:37 +00:00
Sasha Romijn 38aaa38a0b Don't schedule sessions on Sunday in schedule builder.
- Legacy-Id: 17899
2020-06-01 09:19:18 +00:00
Sasha Romijn 2f8dfe8c78 Removed Python 2 compatibility for schedule builder as it's obsolete
- Legacy-Id: 17896
2020-05-29 12:49:51 +00:00
Sasha Romijn 1aad1bee48 Add Python 2 compatibility for schedule builder with functools32
- Legacy-Id: 17895
2020-05-29 12:14:51 +00:00
Sasha Romijn c8e0a83b47 Add new model for business logic meeting constraint costs, update existing constraint costs, and small improvements in tests
- Legacy-Id: 17894
2020-05-29 12:03:50 +00:00
Sasha Romijn cbcb5a2bd2 Add schedule saving to automatic scheduler, various cleanups
- Legacy-Id: 17893
2020-05-28 19:47:30 +00:00
Henrik Levkowetz 186e2ae67b Decorated post_submission() with @transaction.atomic, and did some slight refactoring of code related to post_submission() calls and submission events. This was triggered by a submission left in an intermediate state because of a WSGI timeout (leading to a 504 error).
- Legacy-Id: 17892
2020-05-28 15:01:33 +00:00
Sasha Romijn a75c29c231 Add partially completed automatic scheduler.
- Legacy-Id: 17891
2020-05-28 12:59:44 +00:00
Henrik Levkowetz 29a8264647 Set version info and settings back to development mode
- Legacy-Id: 17881
2020-05-21 23:12:28 +00:00
Henrik Levkowetz 15bf49d4b3 Set version info to release version 7.1.0 before branching.
- Legacy-Id: 17879
2020-05-21 23:12:08 +00:00
Henrik Levkowetz 40f38a343b Merged in [17864] from housley@vigilsec.com:
Add /meeting/<num>/agenda pages to the slowpages cache. While I was in the template, I also did a recent ticket. Fixes #2992.
 - Legacy-Id: 17876
Note: SVN reference [17864] has been migrated to Git commit 5dc4931f87
2020-05-21 22:36:24 +00:00