Henrik Levkowetz
c6cdbf8ca8
Added a new field Person.plain as a fallback for names where plain_name() produces the wrong result. Fixes issue #3020 .
...
- Legacy-Id: 18147
2020-07-11 20:22:23 +00:00
Henrik Levkowetz
94d2171c22
Removed unused imports.
...
- Legacy-Id: 18088
2020-06-27 17:38:43 +00:00
Henrik Levkowetz
cb9006eb26
Changed skip messages from test suites to use print() instead of sys.stderr.write(), to match other output from the test runner.
...
- Legacy-Id: 18087
2020-06-27 17:32:02 +00:00
Henrik Levkowetz
8c90c53463
Added meeting registration 'affiliation' field to the OAuth2 'registration' scope, so that Meetecho will have the information needed build bluesheets.
...
- Legacy-Id: 18070
2020-06-26 19:26:28 +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
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
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
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
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
bc05e7a8d0
Refactored many instances of msg.get_payload(decode=True).decode('utf-8') and similar to get_payload_text(msg), which uses msg.get_charset() to get the actual charset to do the decoding, in a consistent manner. Also removed some instances of force_str, but more remain.
...
- Legacy-Id: 17807
2020-05-16 20:20:05 +00:00
Henrik Levkowetz
69a5d0817d
Refined the GUI for personal API endpoints so that endpoints for which one does not have the right Roles do not show in the GUI, and added a supporting method on Person objects. Updated tests accordingly.
...
- Legacy-Id: 17643
2020-04-15 17:22:06 +00:00
Henrik Levkowetz
726fcbf27d
Removed all __future__ imports.
...
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz
566971a6ae
Removed further six usage.
...
- Legacy-Id: 17386
2020-03-05 15:10:33 +00:00
Henrik Levkowetz
8c6eb3a30a
Python2/3 compatibility: Changed the use of open() and StringIO to io.open() etc.
...
- Legacy-Id: 16458
2019-07-15 19:14:04 +00:00
Henrik Levkowetz
f8d4c3c9a6
More assertContains() and BytesIO() related changes.
...
- Legacy-Id: 16411
2019-07-07 12:45:57 +00:00
Henrik Levkowetz
0679eaa8d4
Removed unused imports.
...
- Legacy-Id: 16402
2019-07-04 21:06:57 +00:00
Henrik Levkowetz
f480799af9
Undid unintentional bulk commit
...
- Legacy-Id: 16401
2019-07-04 21:04:46 +00:00
Henrik Levkowetz
fc09a59950
Added decode() of command pipe output.
...
- Legacy-Id: 16400
2019-07-04 21:01:39 +00:00
Henrik Levkowetz
97a555936d
Changed a large number of test assertions to use assertContains() and removed separate, now unnecessary,status_code checks. Also changed many assertTrue(... in ...) to use assertIn().
...
- Legacy-Id: 16346
2019-06-30 21:03:34 +00:00
Henrik Levkowetz
15e74e89cb
Converted instances of assertTrue(text in response.content) to the recommended assertContains(response, text), and similar for assertFalse(... in ...)
...
- Legacy-Id: 16336
2019-06-29 13:43:31 +00:00
Henrik Levkowetz
d7f5c84182
Initial 2to3 patch with added copyright statement updates.
...
- Legacy-Id: 16309
2019-06-27 14:40:54 +00:00
Henrik Levkowetz
db12f2b948
Fixed some name versus pk issues lingering after the Document/DocAlias primary key refactoring. Fixes issue #2729 .
...
- Legacy-Id: 16288
2019-06-19 12:57:52 +00:00
Henrik Levkowetz
426870b766
Merged in the Document and DocAlias primary key change and m2m work in ^/personal/henrik/6.96.1-docalias.
...
- Legacy-Id: 16261
2019-06-15 12:00:48 +00:00
Henrik Levkowetz
815602351f
This is a series of 50 migrations that changes the Document and DocAlias
...
primary keys from character strings to integers, and makes corresponding code
changes.
This was prompted by database limitations discovered when trying to make
DocAlias use a m2m document field; with 255 long strings as primary keys for
Document and DocAlias this violated the MySQL database limitations.
Changing the primary keys to integers should also improve efficiency.
Due to the data migrations which create the new integer primary keys and adds
corresponding integer foreign keys matching the previous string foreign keys
in all tables having foreign keys to Document and DocAlias, some of these
migrations take a long time. The total set of migrations are expected to have
a runtime on the order of 2 hours.
- Legacy-Id: 16237
2019-06-10 11:32:46 +00:00
Henrik Levkowetz
8726e74709
Merged in a refactoring of document review code from rjsparks@nostrum.com. This introduces ReviewAssignments, letting us do multiple assingments for a given RevieRequest, without conflating the assignments and their results with the request itself.
...
- Legacy-Id: 16177
2019-04-30 16:54:06 +00:00
Henrik Levkowetz
bb4fe3fbbf
Undid previous commit
...
- Legacy-Id: 16153
2019-04-22 19:22:42 +00:00
Robert Sparks
0856990683
Checkpoint. Most tests do not fail. Oddness with an API resource, and with one template's coverage
...
- Legacy-Id: 16031
2019-03-14 18:39:40 +00:00
Henrik Levkowetz
753f34fba1
Merged in [15702] from johnl@taugh.com:
...
Allow email as well as username when logging in.
- Legacy-Id: 15739
Note: SVN reference [15702] has been migrated to Git commit e4dd65d9f9
2018-11-08 06:42:32 +00:00
Robert Sparks
02e85340f6
use factories for ietf.ietfauth.tests. Commit ready for merge
...
- Legacy-Id: 15399
2018-07-19 18:30:49 +00:00
Henrik Levkowetz
2522082979
Changed the email origin field during test to hold user.username in order to exercise more of the code. Changed the EmailFactory to also use user.username as origin.
...
- Legacy-Id: 15172
2018-05-26 08:32:20 +00:00
Henrik Levkowetz
5f37a71889
Added origin information to all places where we create email address entries.
...
- Legacy-Id: 15127
2018-05-05 12:40:30 +00:00
Henrik Levkowetz
53c4ac36db
Removed the Person.address field, which is not being used. This was a legacy from the 2001 perl-based datatracker tables. Fixes issue #2504 .
...
- Legacy-Id: 15095
2018-04-27 14:00:33 +00:00
Henrik Levkowetz
a08c8dc76f
Added an API endpoint to support automation of IESG ballot position posting, at /api/iesg/position. Added tests for the API endpoint, and updated the apikey validation decorator tests. Tweaked the decorator to handle a weakness found during testing.
...
- Legacy-Id: 14429
2017-12-17 21:55:27 +00:00
Henrik Levkowetz
e7209c6e50
Added a new personal event table to keep track of personal API key logins, and a management command to send out reports about activity to users with API keys. Added a weekly cronjob script to trigger weekly reports, and a monthly script for future use. Added a @require_api_key decorator to validate API keys for API key views and log in the API key owner. Modified the API key management urls to use create and disable rather than add and delete. Updated the API key list view. Added an API placeholder view function for ballot position setting, for test purposes. Added tests for the decorator and management command.
...
- Legacy-Id: 14426
2017-12-16 18:37:52 +00:00
Henrik Levkowetz
152261a869
Added new infrastructure for personal API keys, to generate, view, and delete them.
...
- Legacy-Id: 14423
2017-12-14 14:30:59 +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
Lars Eggert
8a70e9773d
Fix various "RemovedInDjango20Warning" warnings. Commit ready for merge.
...
- Legacy-Id: 13112
2017-03-25 19:16:45 +00:00
Henrik Levkowetz
a94c33fd6e
Added an alert on the login form, to be shown if a user's password has been cleared. Adjusted url reverse strings to match the changed view function.
...
- Legacy-Id: 12918
2017-02-25 15:50:47 +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
efc77762be
Added the ability for logged-in users to change their login (username) to any of the active email addresses of the account. Fixes ticket #2052 .
...
- Legacy-Id: 12843
2017-02-15 16:59:23 +00:00
Henrik Levkowetz
7dea44e626
Added a change password page, and linked to it from the account profile page and user menu. Added zxcvbn-based browser-side password strength estimation on the various password setting, re-setting, and changing forms. Added a change password test. Changed ietfauth/urls.py to not use the deprecated string form for views in urlpatterns.
...
- Legacy-Id: 12798
2017-02-09 17:03:44 +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
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
Ole Laursen
a177dc616b
Fix a couple of bugs, add test for reviewer overview page
...
- Legacy-Id: 12081
2016-10-04 20:22:11 +00:00
Ole Laursen
6da25e6bd9
Add personal review overview page for reviewers, add page for editing
...
reviewer availability settings, emailing the reviewer/secretary as
necessary, add tests for these pages. Fix a bunch of bugs.
- Legacy-Id: 11998
2016-09-19 16:05:32 +00:00
Ole Laursen
afccaa0b4d
Handle Person.ascii in edit profile better to try to ensure that
...
people fill it in correctly. Blank it out if it's unchanged from name
and use unidecode to set it automatically (with a warning if it
actually converts something). Branch ready for merge.
- Legacy-Id: 11752
2016-08-03 14:20:13 +00:00
Henrik Levkowetz
6fa181763b
Changed the code test coverage checking to never register coverage counts for tests that are sometimes skipped. Removed now unwanted skip settings from the releasetest settings.
...
- Legacy-Id: 11453
2016-06-21 20:39:28 +00:00
Henrik Levkowetz
016f912ef7
Changed some field names from address to email.
...
- Legacy-Id: 11385
2016-06-15 15:49:28 +00:00
Henrik Levkowetz
fed2a04445
Increased the requirements for account creation, and added a form where the secretariat can add whitelisting to make account creation possible for addresses that don't fulfil the default requirements.
...
- Legacy-Id: 11374
2016-06-14 21:39:12 +00:00
Henrik Levkowetz
78ed9334d2
Skip the htpasswd update test which uses an external binary if the binary isn't found Fixes the failing OS X test.
...
- Legacy-Id: 11323
2016-06-11 23:40:20 +00:00