Jennifer Richards
32054111df
fix: fix failing tests and eliminate naive datetime warnings ( #4402 )
...
* test: fix timestamp construction in several doc tests
* refactor: rename date2datetime to datetime_from_date and clarify code
* chore: helper to get tzinfo for PRODUCTION_TIMEZONE
* fix: fix timezone handling in make_last_call()
* test: fix datetime generation in doc.tests_charter
* refactor: remove PRODUCTION_TIMEZONE setting
Replaces the PRODUCTION_TIMEZONE setting with a constant,
DEADLINE_TZINFO, in ietf.utils.timezone.
* test: be more careful about timezone in tests_charter.py
* test: be more careful about timezone in doc/tests.py
* fix: fix timezone handling affecting doc.tests_draft
* fix: fix timezone handling affecting tests_irsg_ballot.py
* fix: fix timezone handling affecting tests_review.py
* fix: fix timezone handling affecting last ietf.doc tests
* fix: fix timezone handling affecting last ietf.group tests
* fix: fix timezone handling affecting ietf.iesg tests
* fix: handle timezones in get_8989_eligibility_querysets
* fix: handle timezones affecting ietfauth tests
* fix: return tz-aware datetime from utc_from_string
* fix: specify timezone for constants in ipr_rfc_number()
* fix: specify tz for ipr deadlines
* fix: handle timezones affecting liaisons tests
* fix: treat leap day in get_8989_eligibility_querysets()
Manual cherry-pick of 248d6474
* test: treat leap day properly in nomcom tests
* fix: fix timezone handling affecting nomcom tests
* test: fix timezone handling in review tests
* fix: fix timezone handling affecting secr.meetings tests
* fix: handle both pytz and zoneinfo timezones in ietf.utils.timezone
* fix: fix timezone handling affecting secr.proceedings tests
* refactor: use make_aware() helper in secr.meetings tests
* test: fix timezone handling in secr.telechat tests
* fix: fix timezone handling affecting stats tests
* fix: eliminate tz-naive helpers affecting sync email parsing
* fix: include timezone data when serializing DeletedEvent data
* fix: fix timezone handling affecting sync tests
* style: remove unused import
2022-09-01 13:07:28 -03:00
Jennifer Richards
ebebdbed3e
refactor: replace datetime.now and datetime.today with timezone.now ( #4211 )
...
* refactor: replace datetime.now with timezone.now
* refactor: migrate model fields to use timezone.now as default
* refactor: replace datetime.today with timezone.now
datetime.datetime.today() is equivalent to datetime.datetime.now(); both
return a naive datetime with the current local time.
* refactor: rephrase datetime.now(tz) as timezone.now().astimezone(tz)
This is effectively the same, but is less likely to encourage accidental
use of naive datetimes.
* refactor: revert datetime.today() change to old migrations
* refactor: change a missed datetime.now to timezone.now
* chore: renumber timezone_now migration
* chore: renumber migrations
2022-08-25 13:45:16 -03:00
Jennifer Richards
067ae17b4e
fix: do not set user
template var in ietfauth views ( #4216 )
...
Lets the `user` variable pick up `request.user`.
Fixes #3568
2022-07-15 13:37:25 -05:00
Lars Eggert
c09fd9dad2
chore: Use URL resolver in more places ( #4104 )
...
* chore: Use URL resolver more
* Use settings.IDTRACKER_BASE_URL
* More fixes
* Use URL resolver for things under /accounts
* Use URL resolver for things under /stream
* Use URL resolver for things under /iesg
* Use URL resolver for things under /meeting
* Fix bugs
* Use URL resolver for things under /help
* Use URL resolver for things under /ipr
* More changes
* Revert vnu.jar
* Fix typos
* Address review comments by @rjsparks
Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2022-06-22 14:10:16 -05:00
Robert Sparks
8b90ecd4aa
feat: add pronouns to Person and oidc claims. Fixes #4043 . ( #4059 )
...
* feat: add pronouns
* fix: include migrations
* fix: correct daggers on person form.
* fix: clean pronouns
* feat: add choices to pronouns
* feat: show pronouns on public profile
* feat: add pronouns to oidc userinfo
* fix: move pronouns to new claim. Add tests.
* fix: improve html generated by new widget
* feat: use a MultiWidget for pronouns
* refactor: use two fields on Person for the two types of pronoun entry.
* chore: update copyrights
2022-06-21 15:02:02 -05:00
rpcross
698f031b7f
feat: separate MeetingRegistration rows for each registration type. updates the registration API ( #3641 )
...
* Registration API Update
- change MeetingRegistration.reg_type field to hold only one type
- allow multiple MeetingRegistration records per person/meeting
(one for each reg_type)
* Fix scope claims
* Add meeting 114 to MeetingRegistration migration
* fix: update stats views for MeetingRegistration model use changes
* refactor: remove unused imports
2022-06-16 15:39:34 -05:00
Robert Sparks
c89f7c89c5
feat: begin supporting the new rfc editor model ( #3960 )
...
* feat: restructure rfcedtype groups. add rpc, rswg, rsab.
* feat: show rfc editor groups on menu
* feat: add the editorial stream
* fix: repair broken html and extent dest coverage.
* chore: address Lars review comment
* chore: update copyright notices.
2022-05-20 12:22:17 -05:00
Lars Eggert
3234f1a121
test: Validate HTML rendered during tests ( #3782 )
2022-04-07 13:30:38 -03:00
Jennifer Richards
686a9150b3
Merge remote-tracking branch 'origin/main' into personal/jennifer/7.45.1.dev0.bootstrap-merge
...
# Conflicts:
# ietf/templates/meeting/session_buttons_include.html
2022-03-04 15:14:52 -04:00
Robert Sparks
e3aa43eea5
Merged in [19967] from rjsparks@nostrum.com:
...
From Kesara Rathnayake: Expire password reset links on use, password change through other mechanics, login, or a short configurable time (initially one hour). Patched in at 7.45.0.p2.
- Legacy-Id: 19968
Note: SVN reference [19967] has been migrated to Git commit 682392081bddbd1b8653df9135388e6b7c48ee1c
2022-02-23 18:30:27 +00:00
Jennifer Richards
6c260a5b7e
Merge 7.45.1.dev0 into Bootstrap 5 update branch. Made a first pass at reconciling differences.
...
- Legacy-Id: 19945
2022-02-17 20:09:49 +00:00
Lars Eggert
cc723ce449
More fixes.
...
- Legacy-Id: 19899
2022-01-31 19:17:50 +00:00
Jennifer Richards
c4bf508cd8
Do not redirect user to the logout page when logging in. Fixes #3478 . Commit ready for merge.
...
- Legacy-Id: 19876
2022-01-24 17:34:29 +00:00
Robert Sparks
f7a9e0a1f9
Remove the manual intervention step for account creation. Commit ready for merge.
...
- Legacy-Id: 19858
2022-01-19 18:10:30 +00:00
Lars Eggert
9c05373699
More fixes.
...
- Legacy-Id: 19856
2022-01-18 20:04:55 +00:00
Lars Eggert
c68446ae93
More select2 and test fixes.
...
- Legacy-Id: 19781
2021-12-14 18:19:12 +00:00
Lars Eggert
e9fd78128c
Interim commit
...
- Legacy-Id: 19765
2021-12-09 18:26:53 +00:00
Lars Eggert
f974fd3c04
Fix more things
...
- Legacy-Id: 19762
2021-12-09 06:41:00 +00:00
Kesara Rathnayake
43513ed2f5
Adds private app authentication API for bibxml. Fixes #3480 . Commit ready for merge.
...
- Legacy-Id: 19711
2021-11-25 04:26:30 +00:00
Robert Sparks
5c28a85cf1
Merged in [19555] from jennifer@painless-security.com:
...
Use temporary directories instead of 'real' filesystem for tests. Fixes #3414 .
- Legacy-Id: 19561
Note: SVN reference [19555] has been migrated to Git commit 81d9234d54
2021-11-08 18:16:56 +00:00
Jennifer Richards
81d9234d54
Use temporary directories instead of "real" filesystem for tests. Fixes #3414 . Commit ready for merge.
...
- Legacy-Id: 19555
2021-11-05 19:45:57 +00:00
Robert Sparks
3a553c4863
Use friendlier language when requiring manual assistance with account creation. Fixes #3445 . Commit ready for merge.
...
- Legacy-Id: 19464
2021-10-26 23:38:44 +00:00
Robert Sparks
6351ce86c2
Provide a dots oidc claim for online badges. Commit ready for merge.
...
- Legacy-Id: 19437
2021-10-18 21:39:00 +00:00
Robert Sparks
21f5a55e2f
Only show roles in active roups in the oidc roles claim. Fixes #3424 . Commit ready for merge.
...
- Legacy-Id: 19412
2021-10-11 19:08:46 +00:00
Kesara Rathnayake
90297bc2ab
Fixes API authentication issue. Commit ready for merge.
...
- Legacy-Id: 19393
2021-10-01 04:43:54 +00:00
Kesara Rathnayake
6292e528fd
Improves API authentication tests. Relates to #3412 . Commit ready for merge.
...
- Legacy-Id: 19392
2021-09-24 10:01:03 +00:00
Robert Sparks
b99eecc1ae
Bring the factory-boy and Faker dependencies forward through some minor breaking changes. Stop using the deprecated fr_QC locale in Faker. Commit ready for merge.
...
- Legacy-Id: 19270
2021-08-03 22:22:35 +00:00
Robert Sparks
dcd372a928
Restrict editor access in all states but proposed.
...
- Legacy-Id: 19205
2021-07-08 19:16:58 +00:00
Robert Sparks
c906a8e654
Use a cdn for the oidc profile photo url. Commit ready for merge.
...
- Legacy-Id: 19176
2021-07-01 15:56:53 +00:00
Robert Sparks
4dcd2cbaa6
Merged in [19104] from rjsparks@nostrum.com:
...
Allow people to volunteer for NomCom via the datatracker.
- Legacy-Id: 19109
Note: SVN reference [19104] has been migrated to Git commit 86102b9980
2021-06-10 23:12:01 +00:00
Robert Sparks
86102b9980
Allow people to volunteer for NomCom via the datatracker. Commit ready for merge.
...
- Legacy-Id: 19104
2021-06-10 20:35:50 +00:00
Ryan Cross
92f2d02207
Fix /api/v2/person/person to work with Robot apikey. Commit ready for merge.
...
- Legacy-Id: 19101
2021-06-09 18:13:17 +00:00
Robert Sparks
80798f8dfa
Avoid duplicate choices for person api endpoints.
...
- Legacy-Id: 19082
2021-06-04 21:45:16 +00:00
Robert Sparks
3697180cc1
Reverted merge of timezone-aware migration efforts.
...
- Legacy-Id: 18792
2021-01-12 16:54:20 +00:00
Henrik Levkowetz
774e752a54
Snapshot of timezone-aware datatracker code. Tests pass, and the test-crawler shows only expected differences. Trunk changes merged in up to r18768.
...
- Legacy-Id: 18770
2020-12-16 23:53:37 +00:00
Henrik Levkowetz
f41fd1867d
Upgraded the required versions of mypy and django-stubs to the latest that support Django 2.2. Fixed some issues found by after the upgrades.
...
- Legacy-Id: 18717
2020-11-22 21:13:36 +00:00
Henrik Levkowetz
bee0dc9aa1
Added a person name validation step to prevent names using 'anonymous'.
...
- Legacy-Id: 18597
2020-10-11 15:10:27 +00:00
Henrik Levkowetz
ac5e88b82b
Added a context processor to make settings generally available in page templates. Split the SECRETARIAT_TICKET_EMAIL setting into SECRETARIAT_ACTION_EMAIL and SECRETARIAT_INFO_EMAIL, with different addresses. Updated places with hardcoded ietf-action@ietf.org addresses to use the settings value, and updated some places to use ietf-infor@ietf.org instead of the ietf-action address. Fixes issue #3081 .
...
- Legacy-Id: 18501
2020-09-17 11:10:27 +00:00
Henrik Levkowetz
2956d51ee9
Updated coverage data and tweaked an OpenIDtest and scope description.
...
- Legacy-Id: 18485
2020-09-11 10:48:44 +00:00
Henrik Levkowetz
e6f6f4697a
OpenID already has a photo URL as part of the 'profile' scope. Added the the datatracker photo url to the returned OpenID 'profile' scope information when a profile photo is available.
...
- Legacy-Id: 18484
2020-09-10 21:45:21 +00:00
Henrik Levkowetz
57938b039d
Converted many cases of plain-text 403 messages to use a properly styled page instead, with a login link when appropriate. Also changed some API endpoint 400 responses to a more correct 403.
...
- Legacy-Id: 18339
2020-08-06 10:59:52 +00:00
Henrik Levkowetz
e4bc508abc
Merged in [18298] from rjsparks@nostrum.com:
...
Convert IRTF area groups into their own group type rather than attempting to overload AG. Fixes #3027 .
- Legacy-Id: 18320
Note: SVN reference [18298] has been migrated to Git commit 2b10465aa7
2020-07-30 14:27:17 +00:00
Henrik Levkowetz
8ac37a3f51
Added some normalisation of the reg_type and ticket_type entries in the OIDC registration scope.
...
- Legacy-Id: 18301
2020-07-28 21:04:28 +00:00
Robert Sparks
2b10465aa7
Convert IRTF area groups into their own group type rather than attempting to overload AG. Fixes #3027 . Commit ready for merge.
...
- Legacy-Id: 18298
2020-07-28 18:54:44 +00:00
Henrik Levkowetz
ae6513f1c9
Improved the handling in the OpenID Connect userinfo response of multiple meeting registrations with different email addresses for the same person.
...
- Legacy-Id: 18286
2020-07-28 14:01:20 +00:00
Henrik Levkowetz
606cedd796
Merged in the ExtResource work from rjsparks@nostrum.com, based on a feature request and contributions from rsalz@akamai.com. This provides external resource models for Person, Group, and Document models, as a generalisation of the previous related-URL concept. This provides a consistent labelling and classification of URLs and other resources related to a Group, Document, or Person. The GroupURL (and similar) classes will be removed in a later step. Some DocumentURL instances (such as auth48 URLs) remain to convert, as they have come in with other merged-in work while the ExtResource work was in transit.
...
- Legacy-Id: 18192
2020-07-20 01:58:26 +00:00
Henrik Levkowetz
d8b11c4293
Removed an unused and unnecessary API endpoint, now that gather.town has gotten OpenID Connect authentication working.
...
- Legacy-Id: 18190
2020-07-17 19:33:15 +00:00
Henrik Levkowetz
1239e91b72
Removed a duplicate management command.
...
- Legacy-Id: 18188
2020-07-17 15:57:23 +00:00
Robert Sparks
6227162e53
Updated mgmt command to find github repos to back up. Improved test coverage of branch changes. Branch ready for merge.
...
- Legacy-Id: 18163
2020-07-13 17:36:34 +00:00
Robert Sparks
99df95d542
Cleaned up created names. Improved validation during migration. Cleaned up migration output. Cleaned the last of the awp includes from secr views. Removed now unused secr templates. Build extresource urls correctly during submission and when creating group wikis.
...
- Legacy-Id: 18158
2020-07-13 16:03:39 +00:00