Commit graph

179 commits

Author SHA1 Message Date
Robert Sparks 0afe496aa3
fix: preserve RelatedDocument references to subseries 2023-10-31 15:52:11 -05:00
Robert Sparks 1b32fde588
fix: cleaner sync test (#6372) 2023-09-26 17:11:10 -05:00
Robert Sparks 8732dcb706
fix: bring tests up current. add subseries names to rfc view. fix html. 2023-09-22 12:40:15 -05:00
Robert Sparks 48cb06d20d
fix: subseries specific docevent types. get_or_create contain relationship. remove spurious " 2023-09-21 16:38:41 -05:00
Robert Sparks 0390f1868f
feat: subseries 2023-09-21 12:54:17 -05:00
Robert Sparks 96fae0c436
feat: remove DocAlias 2023-08-19 13:17:21 -05:00
Robert Sparks 5489fea9f7
fix: untangle stats and iana sync 2023-08-19 12:58:01 -05:00
Robert Sparks 3b067a468a
fix: name corrections, flake removal 2023-08-17 16:34:26 -05:00
Robert Sparks 7441413032
chore: merge in and adjust rfceditor.py changes 2023-08-17 16:03:17 -05:00
Robert Sparks 9b59717b39
Merge branch 'feat/rfc' into nomoredocalias 2023-08-17 15:55:49 -05:00
Jennifer Richards 4706ac2a37
fix: Restore old handling of draft-iesg state
Missing state -> idexists, idexists -> idexists, anything
else becomes pub.
2023-08-16 11:53:58 -03:00
Robert Sparks 383899c5c4
chore: checkpoint: docalias mostly removed 2023-08-15 16:49:17 -05:00
Jennifer Richards 80a361c3c8
test: Check that no logs are emitted in test_rfc_index 2023-08-14 14:27:26 -03:00
Jennifer Richards b565f104d8
test: Don't mix stream states in test_rfc_index()
Make the test a better simulation of actual practice.
2023-08-14 14:09:37 -03:00
Jennifer Richards cf470a4680
fix: Use correct stream slugs 2023-08-14 14:08:48 -03:00
Jennifer Richards 06adb25e43
fix: Set draft-iesg state to "pub" when a draft is published 2023-08-14 13:37:24 -03:00
Jennifer Richards 92460319d1
refactor: Refactor handling of draft stream states 2023-08-14 13:06:48 -03:00
Jennifer Richards f9ca1bc9d6
test: Test behavior of verified-errata tag
Also add comments flagging the near-miss between doc-id
and RFC number in the test_rfc_index() test data. It's
unclear whether these were intended to match, but the
test was self-consistent so I am not changing it.
2023-08-14 12:15:09 -03:00
Jennifer Richards aff4c2d0db
fix: Drop leading 0s from RFC doc-id 2023-08-11 12:04:15 -03:00
Jennifer Richards a66457bfaf
test: Remove python lint 2023-08-10 18:01:11 -03:00
Jennifer Richards 92ad44e70c
test: Test more fields on the rfc doc 2023-08-10 17:53:35 -03:00
Jennifer Richards ab99972d76
fix: Check state correctly 2023-08-10 17:44:37 -03:00
Jennifer Richards 8b636216d0
feat: describe change as "set" or "changed" as appropriate 2023-08-10 17:35:12 -03:00
Jennifer Richards 39ccea92f9
feat: Set published state on rfc doc 2023-08-10 17:01:06 -03:00
Jennifer Richards 7535df3eeb
feat: Set more fields on rfc doc 2023-08-10 17:00:08 -03:00
Jennifer Richards fd1d425db6
feat: Log warning if rfc index refers to unknown draft 2023-08-10 16:12:01 -03:00
Jennifer Richards e898e43bc8
fix: Only consider rfcs for updates/obsoletes targets 2023-08-10 16:09:53 -03:00
Jennifer Richards 112ac906dc
test: Confirm changes are returned for draft and rfc 2023-08-10 16:01:34 -03:00
Jennifer Richards 4437796bc3
test: Update test_rfc_index() 2023-08-10 15:43:10 -03:00
Jennifer Richards 542b87209d
chore: Eliminate python lint 2023-08-10 14:59:55 -03:00
Jennifer Richards eaf8d459ec
fix: Only match draft docs to rfc index draft name 2023-08-10 14:58:32 -03:00
Jennifer Richards c37e3b4a39
refactor: Consolidate draft handling 2023-08-10 14:29:02 -03:00
Jennifer Richards 4f9a2316ef
style: Run Black and use f-strings / str.format() 2023-08-10 14:10:49 -03:00
Jennifer Richards 87bd9bbd6d
feat: Use rfc doc type when updating from rfc index 2023-08-10 10:36:49 -03:00
Jennifer Richards f464f3172d
chore: Add type annotation to complex return value 2023-08-09 11:42:36 -03:00
Jennifer Richards 1df5450790
style: Run Black on update_docs_from_rfc_index() 2023-08-09 11:40:00 -03:00
Jennifer Richards bb7445575b
test: Remove unused assignment lint 2023-07-28 10:57:16 -07:00
Robert Sparks 189c32194d
test: construct the right kind of document for the rfc-index tests 2023-07-20 13:25:12 -05:00
Robert Sparks 51c22d8e6c
fix: repairs reflecting removal of DocAlias from the RelatedDocument models 2023-07-20 13:03:58 -05:00
Robert Sparks db670dadc5
chore: continued refactor 2023-06-30 17:27:27 -05:00
Jennifer Richards b5d9e9b14c
refactor: Replace deprecated django.utils.http.urlquote 2023-05-12 18:27:51 -03:00
Jennifer Richards 07e26dd52e
refactor: Replace deprecated force_text with force_str 2023-05-09 15:21:50 -03:00
Robert Sparks f010766654
Merge remote-tracking branch 'ietf-tools/main' into feat/postgres 2023-02-27 12:55:47 -06:00
Robert Sparks c38ade6e1b
feat: treat django auth username as case insensitive throughout the datatracker (#5165)
* feat: insensitive username matching at django authentication

* feat: use iexact when using the User object manager

* fix: more places to ignore username case

* fix: remove unused management command

* fix: avoid get when probing for object existance

* fix: force lowercase new usernames in secr/rolodex

* fix: use explicit arguments when creating user
2023-02-21 10:01:03 -06:00
Lars Eggert 81ffad9852
fix: add distinct() to sync/discrepancies (#5167)
Fixes #5129
2023-02-17 09:54:07 -06:00
Lars Eggert f8b48f4c43
fix: use Internet-Draft more consistently across the UI (#5104)
* s/Internet Draft/Internet-Draft/i

* s/draft/Internet-Draft/i or s/draft/I-D/i

* s/ID/I-D/

* Fix tests

* a -> an

* Undo case-change to ASCII

* Address code review comments

* Add migrations

* Add merged migration

* fix: straighten out migrations

* fix: finish straightening out migrations

---------

Co-authored-by: Robert Sparks <rjsparks@nostrum.com>
2023-02-11 10:09:28 -06:00
Lars Eggert 220be21998
chore: Use codespell to fix typos in code. (#4797)
* chore: Use codespell to fix typos in code.

Second part of replacement of #4651

@rjsparks, I probably need to revert some things here, and I also
still need to add that new migration - how do I do that?

* Revert migrations

* Migrate "Whitelisted" to "Allowlisted"

* TEST_COVERAGE_MASTER_FILE -> TEST_COVERAGE_MAIN_FILE

* Fix permissions

* Add suggestions from @jennifer-richards
2022-12-07 15:10:35 -06:00
Lars Eggert 6eabd4a3a1
chore: Use codespell to fix typos in comments. (#4794)
First part of replacement of #4651
2022-11-28 10:36:36 -06:00
Jennifer Richards 0ca02aad1f
refactor: accept tz name in timezone util methods and refactor iana-changes-updates script (#4444)
* refactor: accept tz name strings in ietf.utils.timezone methods

* refactor: use explicitly tz-aware math for iana-changes-updates script

* chore: remove unused "local_timezone_to_utc()" method helper
2022-09-13 13:16:36 -03:00
Jennifer Richards 4084d7d557
fix: record and interpret RFC pub dates in correct timezone (#4421)
* fix: use PST8PDT for published_rfc event timestamps

* fix: find RFCs by PST8PDT year in RfcFeed

* refactor: add const RPC_TZINFO to represent RFC publication timezone

* chore: remove (rather than fix) unused template tags

* fix: always return RPC_TZINFO-local date from Document.pub_date()

* refactor: convert 'published' flag to a Boolean to reflect its usage

* fix: display doc publication dates in correct time zones

* fix: fix various small issues breaking tests
2022-09-08 14:51:19 -03:00